Compare commits

...

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
f5ea914bfc
!21 [sync] PR-20: 同步22.03-LTS分支修复解决自编译失败
From: @openeuler-sync-bot 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
2022-11-28 11:18:01 +00:00
wk333
db51cb194d Sync 22.03-LTS for fix build error
(cherry picked from commit b0bce5b7dbebda0748c633c0fb191c24e573ef87)
2022-11-28 17:37:42 +08:00
openeuler-ci-bot
c0029bd901
!8 fix build failed in 22.03:LTS:Next
Merge pull request !8 from baizg1107/openEuler-22.03-LTS-Next
2022-01-08 11:33:11 +00:00
bzg1107
0be63e15fb fix build failed 2022-01-03 23:36:04 +08:00
openeuler-ci-bot
e784f746a0 !7 modify spec and add yaml file
Merge pull request !7 from Captain.Wei/master
2020-05-26 15:28:43 +08:00
Captain
fc568ed3be disable quad-precision compile tempoary again 2020-05-26 15:05:25 +08:00
Captain
6e91990b07 add changelog 2020-05-26 14:30:34 +08:00
Captain
3be412a06d disable quad-precision compile tempoary 2020-05-26 14:20:56 +08:00
Captain Wei
596003402a add yaml file 2020-05-11 14:32:18 +08:00
openeuler-ci-bot
d6ef959f1b !4 fix self build fail
Merge pull request !4 from Anonymous_Z/anonymous_z
2020-01-15 16:44:10 +08:00
zhanglu
e5c18b6665 fix selfbuild 2020-01-15 16:18:25 +08:00
zhanglu
d94414280d fix selfbuild 2020-01-15 15:29:47 +08:00
2 changed files with 45 additions and 5 deletions

View File

@ -1,5 +1,6 @@
%bcond_without openmpi
%bcond_without mpich
%bcond_with openmpi
%bcond_with mpich
%define debug_package %{nil}
%if %{with mpich}
%global mpi_list %{?mpi_list} mpich
@ -10,16 +11,17 @@
Name: fftw
Version: 3.3.8
Release: 5
Release: 11
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
BuildRequires: gcc-gfortran autoconf automake libtool time perl-interpreter gcc_secure make
%global quad 0
# disable quad-precision compile tempoary
%ifarch x86_64
%global quad 1
%global quad 0
%endif
%if %{with mpich}
@ -194,7 +196,9 @@ 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
@ -240,6 +244,7 @@ build_section --enable-long-double
%endif
cd ..
%if %{with mpich} || %{with openmpi}
for mpi in %{mpi_list}
do
module load mpi/${mpi}-%{_arch}
@ -263,6 +268,7 @@ do
cd ..
module unload mpi/${mpi}-%{_arch}
done
%endif
%install
function install_section()
@ -271,7 +277,9 @@ 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
@ -283,6 +291,7 @@ 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}
@ -291,12 +300,18 @@ 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
@ -311,6 +326,7 @@ 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}
@ -321,6 +337,7 @@ 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
@ -345,6 +362,7 @@ fi
%files
%{_bindir}/fftw*-wisdom*
%exclude /usr/lib/debug/usr/bin/fftw*-wisdom*
%files libs
@ -443,6 +461,24 @@ 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

4
fftw.yaml Normal file
View File

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