Summary: The GNU Portable Threads library Name: pth Version: 2.0.7 Release: 31%{?dist} License: LGPLv2+ 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 # Fedora customization, keep -g in the compiler options Patch1: pth-2.0.7-dont-remove-gcc-g.patch # Fedora customization, fix arch-dependent conflicts in pth-config script Patch2: pth-2.0.7-config-script.patch # Fedora customization, let build fail if running test_std fails Patch3: pth-2.0.7-test_std.patch # bz 744740 / patch from Mikael Pettersson Patch4: pth-2.0.7-linux3.patch BuildRequires: gcc %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 Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development headers and libraries for GNU Pth. %prep %setup -q %patch1 -p1 -b .dont-remove-gcc-g %patch2 -p1 -b .config-script %patch3 -p1 -b .test_std %patch4 -p1 -b .no-linux3 %build OUR_CFLAGS="${RPM_OPT_FLAGS} -D_FILE_OFFSET_BITS=64" %ifarch %{arm} OUR_CFLAGS=$(echo "${OUR_CFLAGS}" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=0/g') # guard echo "${OUR_CFLAGS}" | grep FORTIFY_SOURCE=0 %endif CFLAGS="${OUR_CFLAGS}" %configure --disable-static ac_cv_func_sigstack='no' # Work around multiarch conflicts in the pth-config script in order # to complete patch2. Make the script choose between /usr/lib and # /usr/lib64 at run-time. if [ "%_libdir" == "/usr/lib64" ] ; then if grep -e '^pth_libdir="/usr/lib64"' pth-config ; then sed -i -e 's!^pth_libdir="/usr/lib64"!pth_libdir="/usr/lib"!' pth-config else echo "ERROR: Revisit the multiarch pth_libdir fixes for pth-config!" exit 1 fi fi if [ -v OUR_CFLAGS ] && grep -e "${OUR_CFLAGS}" pth-config ; then # Remove our extra CFLAGS from the pth-config script, since they # don't belong in there. [ -n "${OUR_CFLAGS}" ] && sed -i -e "s!${OUR_CFLAGS}!!g" pth-config else echo "ERROR: Revisit the multiarch CFLAGS fix for pth-config!" exit 1 fi # this is necessary; without it make -j fails make pth_p.h make %{?_smp_mflags} %check make test l=$($(pwd)/pth-config --libdir) if [ "%{_libdir}" == "/usr/lib64" ]; then [ "$l" == "/usr/lib64" ] fi %install %make_install rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{!?_licensedir:%global license %%doc} %license COPYING %doc ANNOUNCE AUTHORS ChangeLog HISTORY NEWS PORTING README %doc SUPPORT TESTS THANKS USERS %{_libdir}/*.so.* %files devel %doc HACKING %{_bindir}/* %{_includedir}/* %{_libdir}/*.so %{_mandir}/*/* %{_datadir}/aclocal/* %changelog * Mon Oct 2 2017 Michal Toman - 2.0.7-31 - Use lib64 on 64-bit MIPS * Thu Aug 03 2017 Fedora Release Engineering - 2.0.7-30 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Thu Jul 27 2017 Fedora Release Engineering - 2.0.7-29 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 2.0.7-28 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 2.0.7-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Thu Jun 18 2015 Fedora Release Engineering - 2.0.7-26 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 2.0.7-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Thu Jul 31 2014 Tom Callaway - 2.0.7-24 - fix license handling * Sat Jun 07 2014 Fedora Release Engineering - 2.0.7-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Apr 3 2014 Michael Schwendt - 2.0.7-22 - Use %%make_install macro - Delete obsolete spec items (Group tag, Buildroot, %%defattr, %%clean) - Delete superfluous aarch* patch - Update pth-config for ppc64le arch (#1083540) * Sun Aug 04 2013 Fedora Release Engineering - 2.0.7-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon Mar 25 2013 Michael Schwendt - 2.0.7-20 - Merge updates for aarch64 (#926383). * Wed Feb 20 2013 Michael Schwendt - 2.0.7-19 - Build with -D_FILE_OFFSET_BITS=64 to get stat64 in pth_high.c - Guard the ARM CFLAGS sed substitution. * Thu Feb 14 2013 Fedora Release Engineering - 2.0.7-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Sat Jul 21 2012 Fedora Release Engineering - 2.0.7-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Sat Jun 16 2012 Michael Schwendt - 2.0.7-16 - Apply Linux 3 configure check patch from Mikael Pettersson (#744740). * Wed Jan 4 2012 Michael Schwendt - 2.0.7-15 - rebuild for GCC 4.7 as requested * Wed Nov 16 2011 Dan Horák - 2.0.7-14 - update pth-config for s390x and sparc64 * Mon Oct 31 2011 Michael Schwendt - 2.0.7-13 - Let build fail if test_std fails. - Fix previous commit, so pth-config CFLAGS check passes again. * Mon Oct 31 2011 Chris Tyler - 2.0.7-12 - Removed FORTIFY_SOURCE for %%{arm} archs per Ajay Ramaswamy - See https://bugzilla.redhat.com/show_bug.cgi?id=750243 * Fri Sep 16 2011 Michael Schwendt - 2.0.7-11 - Use %%_isa in -devel package dependency. - Use %%_libdir not %%ifarch in %%check section. * Wed Feb 09 2011 Fedora Release Engineering - 2.0.7-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Sun Jul 26 2009 Fedora Release Engineering - 2.0.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Thu Feb 26 2009 Fedora Release Engineering - 2.0.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat May 31 2008 Michael Schwendt - 2.0.7-7 - Drop "|| :" from check section. It failed to build for mdomsch in Rawhide today. * Fri Feb 08 2008 Michael Schwendt - 2.0.7-6 - rebuilt for GCC 4.3 as requested by Fedora Release Engineering * Sun Oct 21 2007 Michael Schwendt - 2.0.7-5 - Patch pth-config. This shall fix the multiarch conflict in pth-devel (#342961). It must not return -I/usr/include and -L/usr/{lib,lib64} either, since these are default search paths already. - Replace the config.status CFLAGS sed expr with a patch. * Tue Aug 21 2007 Michael Schwendt - rebuilt * Thu Aug 2 2007 Michael Schwendt - 2.0.7-2 - Clarify licence (LGPLv2+). * Sat Nov 25 2006 Michael Schwendt - 2.0.7-1 - Update to 2.0.7 (very minor maintenance updates only). * Mon Aug 28 2006 Michael Schwendt - 2.0.6-3 - rebuilt * Mon May 22 2006 Michael Schwendt - 2.0.6-2 - Insert -g into CFLAGS after configure script removes it. - Disable configure check for obsolete sigstack(), which segfaults. * Thu Feb 16 2006 Michael Schwendt - 2.0.6-1 - Update to 2.0.6. * Fri Oct 7 2005 Michael Schwendt - 2.0.5-1 - Update to 2.0.5. - Don't build static archive. * Fri May 13 2005 Michael Schwendt - 2.0.4-3 - rebuilt * Thu Apr 7 2005 Michael Schwendt - 2.0.4-2 - rebuilt * Thu Feb 24 2005 Michael Schwendt - 0:2.0.4-1 - Update to 2.0.4. - Remove ancient changelog entries which even pre-date Fedora. * Tue Dec 14 2004 Michael Schwendt - 0:2.0.3-1 - Update to 2.0.3, minor and common spec adjustments + LGPL, %%check, use URLs for official GNU companion sites. * Thu Oct 07 2004 Adrian Reber - 0:2.0.2-0.fdr.2 - iconv-ing spec to utf8 * Wed Oct 06 2004 Adrian Reber - 0:2.0.2-0.fdr.1 - Update to 2.0.2 and current Fedora guidelines. - added workaround for make -j problem * Sat Mar 22 2003 Ville Skyttä - 0:2.0.0-0.fdr.1 - Update to 2.0.0 and current Fedora guidelines. - Exclude %%{_libdir}/*.la * Fri Feb 7 2003 Ville Skyttä - 1.4.1-1.fedora.1 - First Fedora release, based on Ryan Weaver's work. - Move (most of) docs to main package.