[gromacs] Get rid of execstack.
Jussi Lehtola
jussilehtola at fedoraproject.org
Sun Feb 13 18:50:52 UTC 2011
commit 5b702d1475e928be57def5a7c9ae1b1aed0c14cf
Author: Jussi Lehtola <jussilehtola at fedoraproject.org>
Date: Sun Feb 13 20:50:27 2011 +0200
Get rid of execstack.
gromacs.spec | 17 +++++++----------
1 files changed, 7 insertions(+), 10 deletions(-)
---
diff --git a/gromacs.spec b/gromacs.spec
index ff1480c..b4fae87 100644
--- a/gromacs.spec
+++ b/gromacs.spec
@@ -32,6 +32,8 @@ BuildRequires: fftw-devel
BuildRequires: gsl-devel
BuildRequires: libxml2-devel
BuildRequires: libX11-devel
+# To get rid of executable stacks
+BuildRequires: prelink
Requires: gromacs-common = %{version}-%{release}
@@ -446,14 +448,6 @@ cd ..
## Now, the rest of the necessary stuff
-# Fix location of libraries
-%ifarch x86_64 sparc64
-mv %{buildroot}/usr/lib/*.so* %{buildroot}%{_libdir}/
-# and pkgconfig files
-mkdir -p %{buildroot}%{_libdir}/pkgconfig/
-mv %{buildroot}/usr/lib/pkgconfig/* %{buildroot}%{_libdir}/pkgconfig/
-%endif
-
# Install manual & packager's note
install -cpm 644 %{SOURCE1} .
install -cpm 644 %{SOURCE6} README.fedora
@@ -502,6 +496,9 @@ mv %{buildroot}%{_bindir}/completion.csh .
# Remove .la files
find %{buildroot} -name *.la -exec rm -rf {} \;
+# Get rid of executable stacks
+find %{buildroot} -name *.so.* -exec execstack -c {} \;
+
# Post install for libs. MPI packages don't need this.
%post libs -p /sbin/ldconfig
@@ -600,8 +597,8 @@ rm -rf %{buildroot}
%changelog
-* Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.5.3-4
-- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+* Sun Feb 13 2011 Jussi Lehtola <jussilehtola at fedoraproject.org> - 4.5.3-4
+- Get rid of executable stacks.
* Mon Feb 07 2011 Dan Horák <dan[at]danny.cz> - 4.5.3-3
- conditionalize OpenMPI support
More information about the scm-commits
mailing list