Name: mpir Version: 2.6.0 Release: 2%{?dist} Summary: A library for arbitrary precision arithmetic Group: System Environment/Libraries License: LGPLv3+ URL: http://www.mpir.org/ Source0: http://www.mpir.org/%{name}-%{version}.tar.lzma BuildRequires: m4 BuildRequires: yasm %description MPIR is an open source multiprecision integer library derived from version 4.2.1 of the GMP (GNU Multi Precision) project. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q # Convert ISO-8859-1 files to UTF-8, preserving timestamps for fil in AUTHORS NEWS; do iconv --from=ISO-8859-1 --to=UTF-8 $fil -o $fil.conv touch -r $fil $fil.conv mv -f $fil.conv $fil done # Convert Windows-style line endings to Unix-style for fil in doc/devel/* doc/isa_abi_headache; do sed 's/\r//' $fil > $fil.conv touch -r $fil $fil.conv mv -f $fil.conv $fil done %build %configure --disable-static --enable-cxx \ CCAS="gcc -c -Wa,--noexecstack" \ LIBS="-lrt" \ LDFLAGS="$RPM_LD_FLAGS -Wl,--as-needed -Wl,-z,noexecstack" # Remove YASM, just use the system yasm rm -rf yasm/* ln -s %{_bindir}/yasm yasm/ cat > yasm/Makefile << EOT all install check: /bin/true EOT # Get rid of undesirable hardcoded rpaths; workaround libtool reordering # -Wl,--as-needed after all the libraries. sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ -e 's|^LTCC="gcc|LTCC="gcc -Wl,--as-needed|' \ -e 's|^CC="gcc|CC="gcc -Wl,--as-needed|' \ -e 's|^CC="g++|CC="g++ -Wl,--as-needed|' \ -i libtool # Compile export LD_LIBRARY_PATH=`pwd`/.libs make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} find %{buildroot} -name '*.la' -exec rm -f {} ';' rm -rf %{buildroot}%{_infodir}/dir mv doc/devel doc/html %check export LD_LIBRARY_PATH=`pwd`/.libs make check %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel /sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || : %postun devel if [ $1 = 0 ] ; then /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || : fi %files %doc AUTHORS COPYING COPYING.LIB NEWS README %{_libdir}/*.so.* %files devel %doc doc/html doc/isa_abi_headache %{_includedir}/* %{_libdir}/*.so %{_infodir}/mpir.info* %changelog * Wed Dec 5 2012 Jerry James <loganjerry@gmail.com> - 2.6.0-2 - Drop ExcludeArch; s390/s390x systems use the generic mpn support * Fri Nov 9 2012 Jerry James <loganjerry@gmail.com> - 2.6.0-1 - New upstream release - Drop libtool typo fix; fixed upstream - Fix libtool workaround for -Wl,--as-needed * Thu Oct 4 2012 Jerry James <loganjerry@gmail.com> - 2.5.2-1 - New upstream release - Link with -lrt to get the clock_* functions - Convince libtool to use -Wl,--as-needed appropriately * Wed Sep 12 2012 Jerry James <loganjerry@gmail.com> - 2.5.1-1 - New upstream release - License change to LPGLv3+ - Support for s390 / s390x has been dropped - Minor spec file cleanups * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8 - Rebuilt for c++ ABI breakage * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Thu Jun 16 2011 Dan Horák <dan[at]danny.cz> - 1.3.1-6 - add s390x support from GMP * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Tue Mar 16 2010 Mark Chappell <tremble@fedoraproject.org> - 1.3.1-4 - Fix the RHEL build * Fri Mar 05 2010 Mark Chappell <tremble@fedoraproject.org> - 1.3.1-3 - Include HTML documentation - Include demos * Thu Mar 04 2010 Mark Chappell <tremble@fedoraproject.org> - 1.3.1-2 - Ensure consistent use of macros - Avoid multilib conflict due to modified timestamp on AUTHORS doc - Replace perl find and replace with sed * Wed Feb 17 2010 M D Chappell <tremble@tremble.org.uk> - 1.3.1-1 - Initial build