[gmp-ecm] New upstream release.
Jerry James
jjames at fedoraproject.org
Mon Jan 23 18:02:37 UTC 2012
commit d2103890373313616ba2c37247ddf926c0ffc202
Author: Jerry James <loganjerry at gmail.com>
Date: Mon Jan 23 11:02:24 2012 -0700
New upstream release.
.gitignore | 2 +-
gmp-ecm.spec | 26 +++++++++++++++++++++-----
sources | 2 +-
3 files changed, 23 insertions(+), 7 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index fe68a4c..98721df 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1 @@
-/ecm-6.3.tar.gz
+/ecm-6.4.tar.gz
diff --git a/gmp-ecm.spec b/gmp-ecm.spec
index e500cf7..fb4b084 100644
--- a/gmp-ecm.spec
+++ b/gmp-ecm.spec
@@ -1,13 +1,11 @@
Name: gmp-ecm
-Version: 6.3
-Release: 2%{?dist}
+Version: 6.4
+Release: 1%{?dist}
Summary: Elliptic Curve Method for Integer Factorization
Group: Applications/Engineering
License: LGPLv2+ and GPLv2+
URL: http://gforge.inria.fr/projects/ecm/
-# We have to get a new source URL every time the version changes.
-# This means there's no reason to have %%{version} in it.
-Source0: http://gforge.inria.fr/frs/download.php/26838/ecm-6.3.tar.gz
+Source0: http://gforge.inria.fr/frs/download.php/30052/ecm-%{version}.tar.gz
BuildRequires: docbook-style-xsl
BuildRequires: gmp-devel
@@ -71,6 +69,13 @@ FLGS="--enable-shared --enable-openmp --enable-shellcmd --disable-assert"
--disable-static --enable-sse2 --enable-asm-redc \
CFLAGS="$RPM_OPT_FLAGS -march=pentium4 -Wa,--noexecstack" \
LDFLAGS="-Wl,-z,noexecstack -lgmp -lgomp"
+
+# Workaround bz 759376 amd eliminate hardcoded rpaths
+sed -e "s/func_apped/func_append/" \
+ -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
+ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
+ -i libtool
+
rm -f ecm-params.h
ln -s ecm-params.h.pentium4 ecm-params.h
make %{?_smp_mflags}
@@ -85,6 +90,13 @@ ln -s ecm-params.h.default ecm-params.h
# SSE2 instructions is 32-bit only).
%configure ${FLGS} --disable-sse2 CFLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack" \
LDFLAGS="-Wl,-z,noexecstack -lgmp -lgomp"
+
+# Workaround bz 759376 amd eliminate hardcoded rpaths
+sed -e "s/func_apped/func_append/" \
+ -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
+ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
+ -i libtool
+
make --eval='.SECONDARY:' %{?_smp_mflags}
@@ -107,6 +119,7 @@ cp -p .sse2/libecm.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/sse2
%check
+export LD_LIBRARY_PATH=`pwd`/.libs
make check
@@ -137,6 +150,9 @@ make check
%changelog
+* Mon Jan 23 2012 Jerry James <loganjerry at gmail.com> - 6.4-1
+- New upstream release
+
* Sat Jan 7 2012 Jerry James <loganjerry at gmail.com> - 6.3-2
- Rebuild for GCC 4.7
diff --git a/sources b/sources
index f6c2a34..dfca6a6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b30b59e48d65c94e3b034a0296b02c1b ecm-6.3.tar.gz
+c7e973462df3d1e3e0a7d9ba3130f57c ecm-6.4.tar.gz
More information about the scm-commits
mailing list