Blame SPECS/pth.spec

438a1a
Summary:        The GNU Portable Threads library
438a1a
Name:           pth
438a1a
Version:        2.0.7
438a1a
Release:        23%{?dist}
438a1a
License:        LGPLv2+
438a1a
Group:          System Environment/Libraries
438a1a
URL:            http://www.gnu.org/software/pth/
438a1a
Source:         ftp://ftp.gnu.org/gnu/pth/pth-%{version}.tar.gz
438a1a
Source1:        ftp://ftp.gnu.org/gnu/pth/pth-%{version}.tar.gz.sig
438a1a
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
438a1a
438a1a
# Fedora customization, keep -g in the compiler options
438a1a
Patch1:         pth-2.0.7-dont-remove-gcc-g.patch
438a1a
# Fedora customization, fix arch-dependent conflicts in pth-config script
438a1a
Patch2:         pth-2.0.7-config-script.patch
438a1a
# Fedora customization, let build fail if running test_std fails
438a1a
Patch3:         pth-2.0.7-test_std.patch
438a1a
# bz 744740 / patch from Mikael Pettersson
438a1a
Patch4: pth-2.0.7-linux3.patch
438a1a
438a1a
%description
438a1a
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
438a1a
which provides non-preemptive priority-based scheduling for multiple
438a1a
threads of execution ("multithreading") inside server applications.
438a1a
All threads run in the same address space of the server application,
438a1a
but each thread has it's own individual program-counter, run-time
438a1a
stack, signal mask and errno variable.
438a1a
438a1a
%package devel
438a1a
Summary:        Development headers and libraries for GNU Pth
438a1a
Group:          Development/Libraries
438a1a
Requires:       %{name}%{?_isa} = %{version}-%{release}
438a1a
438a1a
%description devel
438a1a
Development headers and libraries for GNU Pth.
438a1a
438a1a
438a1a
%prep
438a1a
%setup -q
438a1a
%patch1 -p1 -b .dont-remove-gcc-g
438a1a
%patch2 -p1 -b .config-script
438a1a
%patch3 -p1 -b .test_std
438a1a
%patch4 -p1 -b .no-linux3
438a1a
438a1a
438a1a
%build
438a1a
OUR_CFLAGS="${RPM_OPT_FLAGS} -D_FILE_OFFSET_BITS=64"
438a1a
438a1a
%ifarch %{arm}
438a1a
OUR_CFLAGS=$(echo "${OUR_CFLAGS}" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2/-D_FORTIFY_SOURCE=0/g')
438a1a
# guard
438a1a
echo "${OUR_CFLAGS}" | grep FORTIFY_SOURCE=0
438a1a
%endif
438a1a
438a1a
CFLAGS="${OUR_CFLAGS}"
438a1a
%configure --disable-static ac_cv_func_sigstack='no'
438a1a
438a1a
# Work around multiarch conflicts in the pth-config script in order
438a1a
# to complete patch2. Make the script choose between /usr/lib and
438a1a
# /usr/lib64 at run-time.
438a1a
if [ "%_libdir" == "/usr/lib64" ] ; then
438a1a
    if grep -e '^pth_libdir="/usr/lib64"' pth-config ; then
438a1a
        sed -i -e 's!^pth_libdir="/usr/lib64"!pth_libdir="/usr/lib"!' pth-config
438a1a
    else
438a1a
        echo "ERROR: Revisit the multiarch pth_libdir fixes for pth-config!"
438a1a
        exit 1
438a1a
    fi
438a1a
fi
438a1a
if [ -v OUR_CFLAGS ] && grep -e "${OUR_CFLAGS}" pth-config ; then
438a1a
    # Remove our extra CFLAGS from the pth-config script, since they
438a1a
    # don't belong in there.
438a1a
    [ -n "${OUR_CFLAGS}" ] && sed -i -e "s!${OUR_CFLAGS}!!g" pth-config
438a1a
else
438a1a
    echo "ERROR: Revisit the multiarch CFLAGS fix for pth-config!"
438a1a
    exit 1
438a1a
fi
438a1a
438a1a
# this is necessary; without it make -j fails
438a1a
make pth_p.h
438a1a
make %{?_smp_mflags}
438a1a
438a1a
438a1a
%check
438a1a
make test
438a1a
l=$($(pwd)/pth-config --libdir)
438a1a
if [ "%{_libdir}" == "/usr/lib64" ]; then
438a1a
    [ "$l" == "/usr/lib64" ]
438a1a
fi
438a1a
438a1a
438a1a
%install
438a1a
rm -rf $RPM_BUILD_ROOT
438a1a
make DESTDIR=${RPM_BUILD_ROOT} install
438a1a
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
438a1a
438a1a
438a1a
%clean
438a1a
rm -rf $RPM_BUILD_ROOT
438a1a
438a1a
438a1a
%post -p /sbin/ldconfig
438a1a
438a1a
%postun -p /sbin/ldconfig
438a1a
438a1a
438a1a
%files
438a1a
%defattr(-,root,root,-)
438a1a
%doc ANNOUNCE AUTHORS COPYING ChangeLog HISTORY NEWS PORTING README
438a1a
%doc SUPPORT TESTS THANKS USERS
438a1a
%{_libdir}/*.so.*
438a1a
438a1a
%files devel
438a1a
%defattr(-,root,root,-)
438a1a
%doc HACKING
438a1a
%{_bindir}/*
438a1a
%{_includedir}/*
438a1a
%{_libdir}/*.so
438a1a
%{_mandir}/*/*
438a1a
%{_datadir}/aclocal/*
438a1a
438a1a
438a1a
%changelog
438a1a
* Fri Aug 1 2014 Jeff Law <law@redhat.com>  - 2.0.7-23
438a1a
- update pth-config for ppc64le
438a1a
438a1a
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.0.7-22
438a1a
- Mass rebuild 2014-01-24
438a1a
438a1a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.7-21
438a1a
- Mass rebuild 2013-12-27
438a1a
438a1a
* Thu Nov 14 2013 Jeff Law <law@redhat.com>  - 2.0.7-20
438a1a
- update pth-config for Aarch64
438a1a
438a1a
* Wed Feb 20 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-19
438a1a
- Build with -D_FILE_OFFSET_BITS=64 to get stat64 in pth_high.c
438a1a
- Guard the ARM CFLAGS sed substitution.
438a1a
438a1a
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-18
438a1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
438a1a
438a1a
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-17
438a1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
438a1a
438a1a
* Sat Jun 16 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-16
438a1a
- Apply Linux 3 configure check patch from Mikael Pettersson (#744740).
438a1a
438a1a
* Wed Jan  4 2012 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-15
438a1a
- rebuild for GCC 4.7 as requested
438a1a
438a1a
* Wed Nov 16 2011 Dan Horák <dan[at]danny.cz> - 2.0.7-14
438a1a
- update pth-config for s390x and sparc64
438a1a
438a1a
* Mon Oct 31 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-13
438a1a
- Let build fail if test_std fails.
438a1a
- Fix previous commit, so pth-config CFLAGS check passes again.
438a1a
438a1a
* Mon Oct 31 2011 Chris Tyler <chris@tylers.info> - 2.0.7-12
438a1a
- Removed FORTIFY_SOURCE for %%{arm} archs per Ajay Ramaswamy <ajayr@krithika.net>
438a1a
- See https://bugzilla.redhat.com/show_bug.cgi?id=750243
438a1a
438a1a
* Fri Sep 16 2011 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-11
438a1a
- Use %%_isa in -devel package dependency.
438a1a
- Use %%_libdir not %%ifarch in %%check section.
438a1a
438a1a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-10
438a1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
438a1a
438a1a
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-9
438a1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
438a1a
438a1a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.7-8
438a1a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
438a1a
438a1a
* Sat May 31 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-7
438a1a
- Drop "|| :" from check section. It failed to build for mdomsch
438a1a
  in Rawhide today.
438a1a
438a1a
* Fri Feb 08 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-6
438a1a
- rebuilt for GCC 4.3 as requested by Fedora Release Engineering
438a1a
438a1a
* Sun Oct 21 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-5
438a1a
- Patch pth-config.
438a1a
  This shall fix the multiarch conflict in pth-devel (#342961).
438a1a
  It must not return -I/usr/include and -L/usr/{lib,lib64} either,
438a1a
  since these are default search paths already.
438a1a
- Replace the config.status CFLAGS sed expr with a patch.
438a1a
438a1a
* Tue Aug 21 2007 Michael Schwendt <mschwendt@fedoraproject.org>
438a1a
- rebuilt
438a1a
438a1a
* Thu Aug  2 2007 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-2
438a1a
- Clarify licence (LGPLv2+).
438a1a
438a1a
* Sat Nov 25 2006 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.7-1
438a1a
- Update to 2.0.7 (very minor maintenance updates only).
438a1a
438a1a
* Mon Aug 28 2006 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.6-3
438a1a
- rebuilt
438a1a
438a1a
* Mon May 22 2006 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.6-2
438a1a
- Insert -g into CFLAGS after configure script removes it.
438a1a
- Disable configure check for obsolete sigstack(), which segfaults.
438a1a
438a1a
* Thu Feb 16 2006 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.6-1
438a1a
- Update to 2.0.6.
438a1a
438a1a
* Fri Oct  7 2005 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.5-1
438a1a
- Update to 2.0.5.
438a1a
- Don't build static archive.
438a1a
438a1a
* Fri May 13 2005 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.4-3
438a1a
- rebuilt
438a1a
438a1a
* Thu Apr  7 2005 Michael Schwendt <mschwendt@fedoraproject.org> - 2.0.4-2
438a1a
- rebuilt
438a1a
438a1a
* Thu Feb 24 2005 Michael Schwendt <mschwendt@fedoraproject.org> - 0:2.0.4-1
438a1a
- Update to 2.0.4.
438a1a
- Remove ancient changelog entries which even pre-date Fedora.
438a1a
438a1a
* Tue Dec 14 2004 Michael Schwendt <mschwendt@fedoraproject.org> - 0:2.0.3-1
438a1a
- Update to 2.0.3, minor and common spec adjustments + LGPL, %%check,
438a1a
  use URLs for official GNU companion sites.
438a1a
438a1a
* Thu Oct 07 2004 Adrian Reber <adrian@lisas.de> - 0:2.0.2-0.fdr.2
438a1a
- iconv-ing spec to utf8
438a1a
438a1a
* Wed Oct 06 2004 Adrian Reber <adrian@lisas.de> - 0:2.0.2-0.fdr.1
438a1a
- Update to 2.0.2 and current Fedora guidelines.
438a1a
- added workaround for make -j problem
438a1a
438a1a
* Sat Mar 22 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.0.0-0.fdr.1
438a1a
- Update to 2.0.0 and current Fedora guidelines.
438a1a
- Exclude %%{_libdir}/*.la
438a1a
438a1a
* Fri Feb  7 2003 Ville Skyttä <ville.skytta at iki.fi> - 1.4.1-1.fedora.1
438a1a
- First Fedora release, based on Ryan Weaver's work.
438a1a
- Move (most of) docs to main package.
438a1a