Compare commits
12 Commits
cb023761da
...
f5ea914bfc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f5ea914bfc | ||
|
|
db51cb194d | ||
|
|
c0029bd901 | ||
|
|
0be63e15fb | ||
|
|
e784f746a0 | ||
|
|
fc568ed3be | ||
|
|
6e91990b07 | ||
|
|
3be412a06d | ||
|
|
596003402a | ||
|
|
d6ef959f1b | ||
|
|
e5c18b6665 | ||
|
|
d94414280d |
46
fftw.spec
46
fftw.spec
@ -1,5 +1,6 @@
|
|||||||
%bcond_without openmpi
|
%bcond_with openmpi
|
||||||
%bcond_without mpich
|
%bcond_with mpich
|
||||||
|
%define debug_package %{nil}
|
||||||
|
|
||||||
%if %{with mpich}
|
%if %{with mpich}
|
||||||
%global mpi_list %{?mpi_list} mpich
|
%global mpi_list %{?mpi_list} mpich
|
||||||
@ -10,16 +11,17 @@
|
|||||||
|
|
||||||
Name: fftw
|
Name: fftw
|
||||||
Version: 3.3.8
|
Version: 3.3.8
|
||||||
Release: 5
|
Release: 11
|
||||||
Summary: A C subroutine library for computing the discrete Fourier transform
|
Summary: A C subroutine library for computing the discrete Fourier transform
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.fftw.org
|
URL: http://www.fftw.org
|
||||||
Source0: http://www.fftw.org/fftw-%{version}.tar.gz
|
Source0: http://www.fftw.org/fftw-%{version}.tar.gz
|
||||||
BuildRequires: gcc-gfortran autoconf automake libtool time perl-interpreter
|
BuildRequires: gcc-gfortran autoconf automake libtool time perl-interpreter gcc_secure make
|
||||||
|
|
||||||
%global quad 0
|
%global quad 0
|
||||||
|
# disable quad-precision compile tempoary
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%global quad 1
|
%global quad 0
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with mpich}
|
%if %{with mpich}
|
||||||
@ -194,7 +196,9 @@ This package includes help documentation and manuals related to %{name}
|
|||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
source /etc/profile.d/modules.sh
|
source /etc/profile.d/modules.sh
|
||||||
|
%endif
|
||||||
autoreconf -vfi
|
autoreconf -vfi
|
||||||
export F77=gfortran
|
export F77=gfortran
|
||||||
|
|
||||||
@ -240,6 +244,7 @@ build_section --enable-long-double
|
|||||||
%endif
|
%endif
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
for mpi in %{mpi_list}
|
for mpi in %{mpi_list}
|
||||||
do
|
do
|
||||||
module load mpi/${mpi}-%{_arch}
|
module load mpi/${mpi}-%{_arch}
|
||||||
@ -263,6 +268,7 @@ do
|
|||||||
cd ..
|
cd ..
|
||||||
module unload mpi/${mpi}-%{_arch}
|
module unload mpi/${mpi}-%{_arch}
|
||||||
done
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%install
|
%install
|
||||||
function install_section()
|
function install_section()
|
||||||
@ -271,7 +277,9 @@ function install_section()
|
|||||||
find %{buildroot}%{_libdir}/${mpi}/lib -name libfftw\* -a \! -name \*_mpi.\* -delete
|
find %{buildroot}%{_libdir}/${mpi}/lib -name libfftw\* -a \! -name \*_mpi.\* -delete
|
||||||
rm -r %{buildroot}%{_libdir}/${mpi}/{bin,share}
|
rm -r %{buildroot}%{_libdir}/${mpi}/{bin,share}
|
||||||
}
|
}
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
source /etc/profile.d/modules.sh
|
source /etc/profile.d/modules.sh
|
||||||
|
%endif
|
||||||
|
|
||||||
%make_install -C single
|
%make_install -C single
|
||||||
%make_install -C double
|
%make_install -C double
|
||||||
@ -283,6 +291,7 @@ source /etc/profile.d/modules.sh
|
|||||||
|
|
||||||
%global delete_la find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
%global delete_la find $RPM_BUILD_ROOT -type f -name "*.la" -delete
|
||||||
|
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
for mpi in %{mpi_list}
|
for mpi in %{mpi_list}
|
||||||
do
|
do
|
||||||
module load mpi/${mpi}-%{_arch}
|
module load mpi/${mpi}-%{_arch}
|
||||||
@ -291,12 +300,18 @@ do
|
|||||||
install_section long
|
install_section long
|
||||||
module unload mpi/${mpi}-%{_arch}
|
module unload mpi/${mpi}-%{_arch}
|
||||||
done
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
rm -f %{buildroot}%{_infodir}/dir
|
rm -f %{buildroot}%{_infodir}/dir
|
||||||
%delete_la
|
%delete_la
|
||||||
|
|
||||||
|
find %{buildroot} -type f -name '*.so*' -exec strip '{}' ';'
|
||||||
|
find %{buildroot} -type f -name 'fftw*-wisdom*' -exec strip '{}' ';'
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
source /etc/profile.d/modules.sh
|
source /etc/profile.d/modules.sh
|
||||||
|
%endif
|
||||||
mydir=`pwd`
|
mydir=`pwd`
|
||||||
|
|
||||||
export LD_LIBRARY_PATH=$mydir/single/.libs:$mydir/single/threads/.libs
|
export LD_LIBRARY_PATH=$mydir/single/.libs:$mydir/single/threads/.libs
|
||||||
@ -311,6 +326,7 @@ make %{?_smp_mflags} -C long check
|
|||||||
make %{?_smp_mflags} -C quad check
|
make %{?_smp_mflags} -C quad check
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{with mpich} || %{with openmpi}
|
||||||
for mpi in %{mpi_list}
|
for mpi in %{mpi_list}
|
||||||
do
|
do
|
||||||
module load mpi/${mpi}-%{_arch}
|
module load mpi/${mpi}-%{_arch}
|
||||||
@ -321,6 +337,7 @@ do
|
|||||||
make %{?_smp_mflags} -C ${mpi}-long/mpi check
|
make %{?_smp_mflags} -C ${mpi}-long/mpi check
|
||||||
module unload mpi/${mpi}-%{_arch}
|
module unload mpi/${mpi}-%{_arch}
|
||||||
done
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%post libs-single -p /sbin/ldconfig
|
%post libs-single -p /sbin/ldconfig
|
||||||
%postun libs-single -p /sbin/ldconfig
|
%postun libs-single -p /sbin/ldconfig
|
||||||
@ -345,6 +362,7 @@ fi
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/fftw*-wisdom*
|
%{_bindir}/fftw*-wisdom*
|
||||||
|
%exclude /usr/lib/debug/usr/bin/fftw*-wisdom*
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
|
|
||||||
@ -443,6 +461,24 @@ fi
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 28 2022 baizhonggui <baizhonggui@huawei.com> - 3.3.8-11
|
||||||
|
- Strip the binary fftw*-wisdom* symbol
|
||||||
|
|
||||||
|
* Mon Mar 7 2022 liyanan <liyanan32@huawei.com> - 3.3.8-10
|
||||||
|
- Fix self build fail
|
||||||
|
|
||||||
|
* Fri Mar 4 2022 baizhonggui <baizhonggui@huawei.com> - 3.3.8-9
|
||||||
|
- Strip the symbol table
|
||||||
|
|
||||||
|
* Fri Jan 7 2022 baizhonggui <baizhonggui@huawei.com> - 3.3.8-8
|
||||||
|
- disable the unused debuginfo to fix build fail
|
||||||
|
|
||||||
|
* Tue May 26 2020 Captain Wei <captain.a.wei@gmail.com> - 3.3.8-7
|
||||||
|
- isable quad-precision compile tempoary
|
||||||
|
|
||||||
|
* Wed Jan 15 2020 zhangrui <zhangrui182@huawei.com> - 3.3.8-6
|
||||||
|
- fix selfbuild fail
|
||||||
|
|
||||||
* Thu Dec 19 2019 zhujunhao <zhujunhao5@huawei.com> - 3.3.8-5
|
* Thu Dec 19 2019 zhujunhao <zhujunhao5@huawei.com> - 3.3.8-5
|
||||||
- Modify for x86 build fail
|
- Modify for x86 build fail
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user