!2 Fix build error

From: @wu-leilei 
Reviewed-by: @caodongxia 
Signed-off-by: @caodongxia
This commit is contained in:
openeuler-ci-bot 2023-07-24 03:15:11 +00:00 committed by Gitee
commit c2572fb56e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 21 additions and 2 deletions

15
tng-gcc12.patch Normal file
View 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 )

View File

@ -10,11 +10,12 @@ beginning of the file.
Name: tng
Version: 1.8.2
Release: 1
Release: 2
Summary: Trajectory Next Generation binary format manipulation library
License: BSD and zlib
URL: https://github.com/gromacs/tng
Source0: https://github.com/gromacs/tng/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: tng-gcc12.patch
BuildRequires: cmake >= 3.1
%global cmake3 %{cmake}
BuildRequires: doxygen gcc gcc-gfortran zlib-devel
@ -38,7 +39,7 @@ BuildArch: noarch
This package contains the documentation.
%prep
%setup -q
%autosetup -n %{name}-%{version} -p1
%build
mkdir build && cd build
@ -85,5 +86,8 @@ popd
%{_docdir}/%{name}
%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
- package init