Author: tpg
Date: Thu Feb 15 02:44:28 2007
New Revision: 121276

Added:
   packages/cooker/pth/current/SOURCES/pth-2.0.0-parallel-make.patch
   packages/cooker/pth/current/SOURCES/pth-2.0.0-pth-config.in.patch
   packages/cooker/pth/current/SOURCES/pth-2.0.7.tar.gz   (contents, props 
changed)
   packages/cooker/pth/current/SOURCES/pth-2.0.7.tar.gz.sig   (contents, props 
changed)
Removed:
   packages/cooker/pth/current/SOURCES/pth-2.0.0-automake18.patch.bz2
   packages/cooker/pth/current/SOURCES/pth-2.0.0-parallel-make.patch.bz2
   packages/cooker/pth/current/SOURCES/pth-2.0.0-pth-config.in.patch.bz2
   packages/cooker/pth/current/SOURCES/pth-2.0.3.tar.gz
   packages/cooker/pth/current/SOURCES/pth-2.0.3.tar.gz.sig
Modified:
   packages/cooker/pth/current/SPECS/pth.spec

Log:
- new version
- drop patch 3
- spec file clean

Added: packages/cooker/pth/current/SOURCES/pth-2.0.0-parallel-make.patch
==============================================================================
--- (empty file)
+++ packages/cooker/pth/current/SOURCES/pth-2.0.0-parallel-make.patch   Thu Feb 
15 02:44:28 2007
@@ -0,0 +1,10 @@
+--- pth-2.0.0/Makefile.in.parallel     2003-12-09 15:11:06.497386632 +0800
++++ pth-2.0.0/Makefile.in      2003-12-09 15:11:19.100470672 +0800
+@@ -440,6 +440,7 @@
+ pth_syscall.lo: pth_syscall.c pth_p.h pth_vers.c pth.h pth_acdef.h pth_acmac.h
+ pth_tcb.lo: pth_tcb.c pth_p.h pth_vers.c pth.h pth_acdef.h pth_acmac.h
+ pth_time.lo: pth_time.c pth_p.h pth_vers.c pth.h pth_acdef.h pth_acmac.h
++pth_uctx.lo: pth_p.h
+ pth_util.lo: pth_util.c pth_p.h pth_vers.c pth.h pth_acdef.h pth_acmac.h
+ pth_vers.lo: pth_vers.c pth_vers.c
+ pthread.o: pthread.c pthread.h pth_p.h pth_vers.c pth.h pth_acdef.h 
pth_acmac.h

Added: packages/cooker/pth/current/SOURCES/pth-2.0.0-pth-config.in.patch
==============================================================================
--- (empty file)
+++ packages/cooker/pth/current/SOURCES/pth-2.0.0-pth-config.in.patch   Thu Feb 
15 02:44:28 2007
@@ -0,0 +1,17 @@
+diff -urN pth-2.0.0-orig/pth-config.in pth-2.0.0/pth-config.in
+--- pth-2.0.0-orig/pth-config.in       2003-01-01 23:45:06.000000000 +0800
++++ pth-2.0.0/pth-config.in    2004-05-19 23:18:46.301148256 +0800
+@@ -109,11 +109,11 @@
+             output="$output $pth_acdir"
+             ;;
+         --cflags)
+-            output="$output -I$pth_includedir"
++            output="$output"
+             output_extra="$output_extra $pth_cflags"
+             ;;
+         --ldflags)
+-            output="$output -L$pth_libdir"
++            output="$output"
+             output_extra="$output_extra $pth_ldflags"
+             ;;
+         --libs)

Added: packages/cooker/pth/current/SOURCES/pth-2.0.7.tar.gz
==============================================================================
Binary file. No diff available.

Added: packages/cooker/pth/current/SOURCES/pth-2.0.7.tar.gz.sig
==============================================================================
Binary file. No diff available.

Modified: packages/cooker/pth/current/SPECS/pth.spec
==============================================================================
--- packages/cooker/pth/current/SPECS/pth.spec  (original)
+++ packages/cooker/pth/current/SPECS/pth.spec  Thu Feb 15 02:44:28 2007
@@ -1,22 +1,18 @@
-%define version 2.0.3
-%define release 3mdk
-
 %define major  20
 %define libname_orig lib%{name}
 %define libname %mklibname %{name} %{major}
 
 Summary:       GNU Pth - GNU Portable Threads
 Name:          pth
-Version:       %{version}
-Release:       %{release}
+Version:       2.0.7
+Release:       %mkrel 1
 License:       LGPL
 Group:         System/Libraries
 URL:           http://www.gnu.org/software/pth/
 Source0:       ftp://ftp.gnu.org/pub/gnu/pth/%{name}-%{version}.tar.gz
 Source1:       ftp://ftp.gnu.org/pub/gnu/pth/%{name}-%{version}.tar.gz.sig
-Patch1:                %{name}-2.0.0-pth-config.in.patch.bz2
-Patch2:                %{name}-2.0.0-parallel-make.patch.bz2
-Patch3:                %{name}-2.0.0-automake18.patch.bz2
+Patch1:                %{name}-2.0.0-pth-config.in.patch
+Patch2:                %{name}-2.0.0-parallel-make.patch
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 
 %description
@@ -62,35 +58,35 @@
 %setup -q
 %patch1 -p1 -b .cflags-ldflags
 %patch2 -p1 -b .parallel
-%patch3 -p1 -b .automake18
 
 %build
 %configure2_5x --enable-optimize=yes --enable-pthread=no
 %make
-make test
+%check test
 
 %install
-rm -rf $RPM_BUILD_ROOT
+[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
+
 %makeinstall_std
 
-%multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/pth-config
+%multiarch_binaries  %{buildroot}%{_bindir}/pth-config
 
 %post -n %{libname} -p /sbin/ldconfig
 %postun        -n %{libname} -p /sbin/ldconfig
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
 
 %files -n %{libname}
-%defattr(-,root,root)
+%defattr(644,root,root,755)
 %doc COPYING
-%{_libdir}/lib*.so.*
+%attr(755,root,root) %{_libdir}/lib*.so.%{major}*
 
 %files -n %{libname}-devel
-%defattr(-,root,root)
+%defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS PORTING README THANKS
-%{_bindir}/pth-config
-%multiarch %{multiarch_bindir}/pth-config
+%attr(755,root,root) %{_bindir}/pth-config
+%multiarch %attr(755,root,root) %{multiarch_bindir}/pth-config
 %{_datadir}/aclocal/*.m4
 %{_includedir}/*
 %{_libdir}/lib*.a

Reply via email to