Get rid of rpath.
This commit is contained in:
parent
535dd3a630
commit
c128117ef1
35
fftw.spec
35
fftw.spec
@ -1,6 +1,6 @@
|
|||||||
Name: fftw
|
Name: fftw
|
||||||
Version: 3.2.2
|
Version: 3.2.2
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: A Fast Fourier Transform library
|
Summary: A Fast Fourier Transform library
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
@ -78,36 +78,44 @@ export F77=gfortran
|
|||||||
|
|
||||||
CONFIG_FLAGS="--enable-shared --disable-dependency-tracking --enable-threads"
|
CONFIG_FLAGS="--enable-shared --disable-dependency-tracking --enable-threads"
|
||||||
pushd double
|
pushd double
|
||||||
%configure $CONFIG_FLAGS
|
%configure $CONFIG_FLAGS
|
||||||
make %{?_smp_mflags}
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
pushd single
|
pushd single
|
||||||
%configure $CONFIG_FLAGS --enable-single
|
%configure $CONFIG_FLAGS --enable-single
|
||||||
make %{?_smp_mflags}
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
pushd long
|
pushd long
|
||||||
%configure $CONFIG_FLAGS --enable-long-double
|
%configure $CONFIG_FLAGS --enable-long-double
|
||||||
make %{?_smp_mflags}
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||||
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
make %{?_smp_mflags}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
pushd double
|
pushd double
|
||||||
make install DESTDIR=${RPM_BUILD_ROOT}
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
||||||
cp -a AUTHORS COPYING COPYRIGHT ChangeLog NEWS README* TODO ../
|
cp -a AUTHORS COPYING COPYRIGHT ChangeLog NEWS README* TODO ../
|
||||||
cp -a doc/ ../
|
cp -a doc/ ../
|
||||||
popd
|
popd
|
||||||
pushd single
|
pushd single
|
||||||
make install DESTDIR=${RPM_BUILD_ROOT}
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
||||||
popd
|
popd
|
||||||
pushd long
|
pushd long
|
||||||
make install DESTDIR=${RPM_BUILD_ROOT}
|
make install DESTDIR=${RPM_BUILD_ROOT}
|
||||||
popd
|
popd
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
rm -f ${RPM_BUILD_ROOT}%{_infodir}/dir
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
rm -f ${RPM_BUILD_ROOT}%{_libdir}/*.la
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
bdir=`pwd`
|
||||||
|
export LD_LIBRARY_PATH=$bdir/single/.libs:$bdir/single/threads/.libs:$bdir/double/.libs:$bdir/double/threads/.libs:$bdir/long/.libs:$bdir/long/threads/.libs
|
||||||
make -C single check
|
make -C single check
|
||||||
make -C double check
|
make -C double check
|
||||||
make -C long check
|
make -C long check
|
||||||
@ -151,6 +159,9 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Jan 9 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.2.2-4
|
||||||
|
- Get rid of rpath.
|
||||||
|
|
||||||
* Sat Jan 9 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.2.2-3
|
* Sat Jan 9 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 3.2.2-3
|
||||||
- Branch out developers' manual to -doc.
|
- Branch out developers' manual to -doc.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user