!2 Fix build error
From: @wu-leilei Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
c2572fb56e
15
tng-gcc12.patch
Normal file
15
tng-gcc12.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff -Nur a/src/tests/md_openmp.f b/src/tests/md_openmp.f
|
||||||
|
--- a/src/tests/md_openmp.f 2018-03-28 18:39:54.000000000 +0800
|
||||||
|
+++ b/src/tests/md_openmp.f 2023-07-23 18:20:01.290716484 +0800
|
||||||
|
@@ -35,9 +35,9 @@
|
||||||
|
c
|
||||||
|
c None
|
||||||
|
c
|
||||||
|
- implicit none
|
||||||
|
+ use omp_lib
|
||||||
|
|
||||||
|
- include 'omp_lib.h'
|
||||||
|
+ implicit none
|
||||||
|
|
||||||
|
integer nd
|
||||||
|
parameter ( nd = 3 )
|
||||||
8
tng.spec
8
tng.spec
@ -10,11 +10,12 @@ beginning of the file.
|
|||||||
|
|
||||||
Name: tng
|
Name: tng
|
||||||
Version: 1.8.2
|
Version: 1.8.2
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Trajectory Next Generation binary format manipulation library
|
Summary: Trajectory Next Generation binary format manipulation library
|
||||||
License: BSD and zlib
|
License: BSD and zlib
|
||||||
URL: https://github.com/gromacs/tng
|
URL: https://github.com/gromacs/tng
|
||||||
Source0: https://github.com/gromacs/tng/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/gromacs/tng/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: tng-gcc12.patch
|
||||||
BuildRequires: cmake >= 3.1
|
BuildRequires: cmake >= 3.1
|
||||||
%global cmake3 %{cmake}
|
%global cmake3 %{cmake}
|
||||||
BuildRequires: doxygen gcc gcc-gfortran zlib-devel
|
BuildRequires: doxygen gcc gcc-gfortran zlib-devel
|
||||||
@ -38,7 +39,7 @@ BuildArch: noarch
|
|||||||
This package contains the documentation.
|
This package contains the documentation.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%autosetup -n %{name}-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir build && cd build
|
mkdir build && cd build
|
||||||
@ -85,5 +86,8 @@ popd
|
|||||||
%{_docdir}/%{name}
|
%{_docdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jul 23 2023 wulei <wu_lei@hoperun.com> - 1.8.2-2
|
||||||
|
- Fix build error
|
||||||
|
|
||||||
* Mon Jul 27 2020 maminjie <maminjie1@huawei.com> - 1.8.2-1
|
* Mon Jul 27 2020 maminjie <maminjie1@huawei.com> - 1.8.2-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user