%global with_allprogs 0 Name: eclib Version: 20120830 Release: 1%{?dist} Summary: Library for Computations on Elliptic Curves Group: Development/Libraries License: GPLv3+ URL: http://www.warwick.ac.uk/~masgaj/ Source0: http://sagemath.org/packages/standard/eclib-%{version}.spkg BuildRequires: gmp-devel BuildRequires: libtool BuildRequires: ntl-devel BuildRequires: pari-devel Patch0: %{name}-ntl-underlink.patch %description John Cremona's programs for enumerating and computating with elliptic curves defined over the rational numbers. %package devel Summary: Development Files for %{name} Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} Requires: ntl-devel%{?_isa} %description devel Development libraries and headers for %{name}. %prep %setup -q %patch0 -p1 # do not want rpath pushd src rm -f ltmain.sh libtoolize autoreconf popd %build pushd src %configure \ --disable-static \ --enable-shared \ %if %{with_allprogs} --enable-allprogs %else --disable-allprogs %endif make %{?_smp_mflags} popd %install make DESTDIR=$RPM_BUILD_ROOT -C src install rm -f $RPM_BUILD_ROOT%{_libdir}/*.la mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} mv $RPM_BUILD_ROOT%{_docdir}/%{name}/* \ $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} rmdir $RPM_BUILD_ROOT%{_docdir}/%{name} %if !%{with_allprogs} rm $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/progs.txt %endif %check make -C src check LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc src/AUTHORS %doc src/COPYING %doc src/NEWS %doc src/README %doc SPKG.txt %if %{with_allprogs} %{_bindir}/* %else %{_bindir}/mwrank %endif %{_libdir}/libec.so.* %{_mandir}/man1/mwrank.1* %files devel %{_includedir}/%{name} %{_libdir}/libec.so %changelog * 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.