%global with_allprogs 0 Name: eclib Version: 20170815 Release: 1%{?dist} Summary: Library for Computations on Elliptic Curves License: GPLv2+ URL: http://homepages.warwick.ac.uk/~masgaj/mwrank/ Source0: https://github.com/JohnCremona/eclib/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: boost-devel BuildRequires: flint-devel BuildRequires: gcc-c++ BuildRequires: gmp-devel BuildRequires: libtool BuildRequires: ntl-devel BuildRequires: pari-devel # Workaround for the addition of an iszero macro to math.h Patch0: %{name}-iszero.patch # Fix a name clash with boost Patch1: %{name}-scalar.patch %description John Cremona's programs for enumerating and computing with elliptic curves defined over the rational numbers. %package devel Summary: Development Files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Requires: ntl-devel%{?_isa} %description devel Development libraries and headers for %{name}. %prep %setup -q %patch0 %patch1 # Fix tests and programs on ARM sed -i 's/^LIBS.*/& -lpthread/' tests/Makefile.am sed -i 's/^LIBS.*/& -lpthread/' progs/Makefile.am # autoconf is not run by upstream autoreconf -fi %build # FLINT_LEVEL 2 assumes that the C int type == half the width of a limb_t. # This is only true on 64 bit platforms. if [ %{__isa_bits} = "64" ]; then export CPPFLAGS="-I %{_includedir}/flint -DFLINT_LEVEL=2" else export CPPFLAGS="-I %{_includedir}/flint" fi %configure \ --disable-static \ --enable-shared \ --with-flint \ %if %{with_allprogs} --enable-allprogs %else --disable-allprogs %endif # 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|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \ -i libtool make %{?_smpflags} %install make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT%{_libdir}/*.la %if !%{with_allprogs} rm $RPM_BUILD_ROOT%{_docdir}/%{name}/{g0n,howto,progs}.txt %endif %check make check LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS NEWS README README.md doc/mwrank %license COPYING %if %{with_allprogs} %{_bindir}/* %else %{_bindir}/mwrank %endif %{_libdir}/libec.so.* %{_mandir}/man1/mwrank.1* %files devel %doc doc/g0n.txt %{_includedir}/%{name} %{_libdir}/libec.so %changelog * Fri Sep 29 2017 Jerry James - 20170815-1 - New upstream release * Wed Aug 02 2017 Fedora Release Engineering - 20170330-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Sun Jul 30 2017 Florian Weimer - 20170330-5 - Rebuild with binutils fix for ppc64le (#1475636) * Wed Jul 26 2017 Fedora Release Engineering - 20170330-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Mon Jul 24 2017 Björn Esser - 20170330-3 - Rebuilt for Boost 1.64 * Mon May 15 2017 Fedora Release Engineering - 20170330-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Thu Mar 30 2017 Jerry James - 20170330-1 - New upstream release * Tue Feb 07 2017 Kalev Lember - 20160720-5 - Rebuilt for Boost 1.63 * Wed Nov 9 2016 Paul Howarth - 20160720-4 - Rebuild for pari 2.9.0 * Thu Oct 20 2016 Jerry James - 20160720-3 - Rebuild for NTL 10.1.0 - Add -iszero patch to fix breakage with newer glibc versions * Mon Sep 5 2016 Jerry James - 20160720-2 - Rebuild for NTL 9.11.0 * Mon Jul 25 2016 Jerry James - 20160720-1 - New upstream release * Thu Jun 2 2016 Jerry James - 20160215-4 - Rebuild for NTL 9.9.1 * Fri Apr 29 2016 Jerry James - 20160215-3 - Rebuild for NTL 9.8.0 * Sat Mar 19 2016 Jerry James - 20160215-2 - Rebuild for NTL 9.7.0 * Sat Feb 20 2016 Jerry James - 20160215-1 - New upstream release * Wed Feb 03 2016 Fedora Release Engineering - 20160101-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Jan 23 2016 Jerry James - 20160101-2 - Rebuild for boost 1.60.0 * Sat Jan 9 2016 Jerry James - 20160101-1 - New upstream release * Fri Dec 4 2015 Jerry James - 20150827-3 - Rebuild for NTL 9.6.2 * Fri Oct 16 2015 Jerry James - 20150827-2 - Rebuild for NTL 9.4.0 * Sat Sep 19 2015 Jerry James - 20150827-1 - New upstream release (bz 1257389) * Wed Jun 17 2015 Fedora Release Engineering - 20120830-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon May 18 2015 Jerry James - 20120830-13 - Rebuild for NTL 9.1.1 * Sat May 9 2015 Jerry James - 20120830-12 - Rebuild for NTL 9.1.0 * Sat May 02 2015 Kalev Lember - 20120830-11 - Rebuilt for GCC 5 C++11 ABI change * Mon Feb 2 2015 Jerry James - 20120830-10 - Rebuild for NTL 8.1.2 * Thu Jan 15 2015 Jerry James - 20120830-9 - Rebuild for NTL 8.1.0 * Tue Oct 28 2014 Jerry James - 20120830-8 - Rebuild for NTL 6.2.1 - Fix license handling * Sat Aug 16 2014 Fedora Release Engineering - 20120830-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 20120830-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Apr 2 2014 Jerry James - 20120830-5 - Rebuild for NTL 6.1.0 * Sat Aug 03 2013 Fedora Release Engineering - 20120830-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Mon May 6 2013 Jerry James - 20120830-3 - Rebuild for NTL 6.0.0 - autoreconf already calls libtoolize; don't need to call the latter - drop now unneeded -ntl-underlink patch * Wed Mar 27 2013 Jerry James - 20120830-2 - Add -fi to libtoolize and autoreconf invocations to get updates (bz 925294) - Modify libtool to get rid of unused direct library dependencies and rpaths * Sat Jan 26 2013 pcpa - 20120830-1 - Update to latest upstream release. * Wed Jul 18 2012 Fedora Release Engineering - 20120428-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jul 10 2012 pcpa - 20120428-1 - Update to latest upstream release. - Rework package build that now uses autotools instead of hand made Makefiles. * Thu Jul 5 2012 pcpa - 20100711-5 - Install mwrank binary as it is required by sagemath. - Install mwrank documentation. * Wed Jul 4 2012 pcpa - 20100711-4 - Rebuild with newer pari. * Tue Feb 28 2012 Fedora Release Engineering - 20100711-3 - Rebuilt for c++ ABI breakage * Tue Jan 10 2012 Jerry James - 20100711-2 - Rebuild for GCC 4.7 * Thu Oct 20 2011 Marcela Mašláňová - 20100711-1.2 - rebuild with new gmp without compat lib * Mon Oct 10 2011 Peter Schiffer - 20100711-1.1 - rebuild with new gmp * Mon May 23 2011 Jerry James - 20100711-1 - New upstream version - Drop unnecessary elements of the spec file (BuildRoot, clean script, etc.) - Convert previous patches into sed expressions - Add compiler warning elimination patch - Eliminate unused direct shared library dependencies - Fix the FSF's address to make rpmlint shut up - Add documentation to -devel * Tue Feb 08 2011 Fedora Release Engineering - 20080310-10.p10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Aug 19 2010 Thomas Spura - 20080310-9.p10 - update to patched version * Fri Jul 24 2009 Fedora Release Engineering - 20080310-9.p7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon May 18 2009 Conrad Meyer - 20080310-8.p7 - Make only shared libs. * Fri May 8 2009 Conrad Meyer - 20080310-7.p7 - Kill parallel make to fix the build (thanks Mamoru Tasaka). * Sun Mar 22 2009 Conrad Meyer - 20080310-6.p7 - Incorporate Michael Schwendt's patch to fix the build process (thanks again :)). * Fri Mar 20 2009 Conrad Meyer - 20080310-5.p7 - Changed BR on ntl-devel to ntl-static. * Fri Mar 20 2009 Conrad Meyer - 20080310-4.p7 - Fixed path in %%check section. * Thu Mar 19 2009 Conrad Meyer - 20080310-3.p7 - Move libraries back to _libdir proper and add main package. - Added check section (thanks Michael Schwendt) commented out because it doesn't pass right now. - Add a versioned SONAME. * Wed Mar 18 2009 Conrad Meyer - 20080310-2.p7 - Fix soname mess. - Use install -p. * Sat Dec 13 2008 Conrad Meyer - 20080310-1.p7 - Initial package.