diff --git a/eclib.spec b/eclib.spec index c000338..b0c3a3f 100644 --- a/eclib.spec +++ b/eclib.spec @@ -2,7 +2,7 @@ Name: eclib Version: 20120830 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Library for Computations on Elliptic Curves Group: Development/Libraries License: GPLv3+ @@ -18,7 +18,7 @@ BuildRequires: pari-devel Patch0: %{name}-ntl-underlink.patch %description -John Cremona's programs for enumerating and computating with elliptic +John Cremona's programs for enumerating and computing with elliptic curves defined over the rational numbers. @@ -39,8 +39,8 @@ Development libraries and headers for %{name}. # do not want rpath pushd src rm -f ltmain.sh - libtoolize - autoreconf + libtoolize -fi + autoreconf -fi popd %build @@ -53,6 +53,15 @@ pushd src %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|^LTCC="gcc"|LTCC="gcc -Wl,--as-needed"|' \ + -e 's|^CC="g++"|CC="g++ -Wl,--as-needed"|' \ + -i libtool + make %{?_smpflags} popd @@ -100,6 +109,10 @@ make -C src check LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir} %changelog +* 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.