Summary: The GNU Portable Threads library Name: pth Version: 2.0.7 Release: 2 License: LGPLv2+ Group: System Environment/Libraries URL: http://www.gnu.org/software/pth/ Source: ftp://ftp.gnu.org/gnu/pth/pth-%{version}.tar.gz Source1: ftp://ftp.gnu.org/gnu/pth/pth-%{version}.tar.gz.sig Patch0: pth-%{version}-aix.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Pth is a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for multiple threads of execution ("multithreading") inside server applications. All threads run in the same address space of the server application, but each thread has it's own individual program-counter, run-time stack, signal mask and errno variable. %package devel Summary: Development headers and libraries for GNU Pth Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel Development headers and libraries for GNU Pth. %prep %setup -q %patch0 %build # setup environment for 32-bit and 64-bit builds export AR="ar -X32_64" export NM="nm -X32_64" # first build the 64-bit version export CC="gcc -maix64" export CFLAGS="-O" ./configure \ --prefix=%{_prefix} \ --enable-static --enable-shared \ --with-fdsetsize=1024 make %{?_smp_mflags} cp .libs/libpth.so.20 . make distclean # now build the 32-bit version export CC="gcc" ./configure \ --prefix=%{_prefix} \ --enable-static --enable-shared \ --with-fdsetsize=1024 make %{?_smp_mflags} # add the 64-bit shared objects to the shared library containing already the # 32-bit shared objects ${AR} -q .libs/libpth.a ./libpth.so.20 %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc ANNOUNCE AUTHORS COPYING ChangeLog HISTORY NEWS PORTING README %doc SUPPORT TESTS THANKS USERS %{_libdir}/*.a %files devel %defattr(-,root,root,-) %doc HACKING %{_bindir}/* %{_includedir}/* %{_libdir}/*.la %{_mandir}/*/* %{_datadir}/aclocal/* %changelog * Thu Jan 03 2008 Michael Perzl - 2.0.7-2 - included both 32-bit and 64-bit shared objects * Fri Oct 05 2007 Michael Perzl - 2.0.7-1 - first version for AIX V5.1 and higher