Compare commits

..

No commits in common. "f5ea914bfcc29cf8fcc96278ca334dceeb20f946" and "cb023761dadab7699c0c0518ad72a0afe62521eb" have entirely different histories.

2 changed files with 5 additions and 45 deletions

View File

@ -1,6 +1,5 @@
%bcond_with openmpi
%bcond_with mpich
%define debug_package %{nil}
%bcond_without openmpi
%bcond_without mpich
%if %{with mpich}
%global mpi_list %{?mpi_list} mpich
@ -11,17 +10,16 @@
Name: fftw
Version: 3.3.8
Release: 11
Release: 5
Summary: A C subroutine library for computing the discrete Fourier transform
License: GPLv2+
URL: http://www.fftw.org
Source0: http://www.fftw.org/fftw-%{version}.tar.gz
BuildRequires: gcc-gfortran autoconf automake libtool time perl-interpreter gcc_secure make
BuildRequires: gcc-gfortran autoconf automake libtool time perl-interpreter
%global quad 0
# disable quad-precision compile tempoary
%ifarch x86_64
%global quad 0
%global quad 1
%endif
%if %{with mpich}
@ -196,9 +194,7 @@ This package includes help documentation and manuals related to %{name}
%autosetup -p1
%build
%if %{with mpich} || %{with openmpi}
source /etc/profile.d/modules.sh
%endif
autoreconf -vfi
export F77=gfortran
@ -244,7 +240,6 @@ build_section --enable-long-double
%endif
cd ..
%if %{with mpich} || %{with openmpi}
for mpi in %{mpi_list}
do
module load mpi/${mpi}-%{_arch}
@ -268,7 +263,6 @@ do
cd ..
module unload mpi/${mpi}-%{_arch}
done
%endif
%install
function install_section()
@ -277,9 +271,7 @@ function install_section()
find %{buildroot}%{_libdir}/${mpi}/lib -name libfftw\* -a \! -name \*_mpi.\* -delete
rm -r %{buildroot}%{_libdir}/${mpi}/{bin,share}
}
%if %{with mpich} || %{with openmpi}
source /etc/profile.d/modules.sh
%endif
%make_install -C single
%make_install -C double
@ -291,7 +283,6 @@ source /etc/profile.d/modules.sh
%global delete_la find $RPM_BUILD_ROOT -type f -name "*.la" -delete
%if %{with mpich} || %{with openmpi}
for mpi in %{mpi_list}
do
module load mpi/${mpi}-%{_arch}
@ -300,18 +291,12 @@ do
install_section long
module unload mpi/${mpi}-%{_arch}
done
%endif
rm -f %{buildroot}%{_infodir}/dir
%delete_la
find %{buildroot} -type f -name '*.so*' -exec strip '{}' ';'
find %{buildroot} -type f -name 'fftw*-wisdom*' -exec strip '{}' ';'
%check
%if %{with mpich} || %{with openmpi}
source /etc/profile.d/modules.sh
%endif
mydir=`pwd`
export LD_LIBRARY_PATH=$mydir/single/.libs:$mydir/single/threads/.libs
@ -326,7 +311,6 @@ make %{?_smp_mflags} -C long check
make %{?_smp_mflags} -C quad check
%endif
%if %{with mpich} || %{with openmpi}
for mpi in %{mpi_list}
do
module load mpi/${mpi}-%{_arch}
@ -337,7 +321,6 @@ do
make %{?_smp_mflags} -C ${mpi}-long/mpi check
module unload mpi/${mpi}-%{_arch}
done
%endif
%post libs-single -p /sbin/ldconfig
%postun libs-single -p /sbin/ldconfig
@ -362,7 +345,6 @@ fi
%files
%{_bindir}/fftw*-wisdom*
%exclude /usr/lib/debug/usr/bin/fftw*-wisdom*
%files libs
@ -461,24 +443,6 @@ fi
%endif
%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
- Modify for x86 build fail

View File

@ -1,4 +0,0 @@
version_control: github
src_repo: FFTW/fftw3
tag_prefix: ^fftw-
seperator: .