diff --git a/tng-gcc12.patch b/tng-gcc12.patch new file mode 100644 index 0000000..2636ae4 --- /dev/null +++ b/tng-gcc12.patch @@ -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 ) diff --git a/tng.spec b/tng.spec index f04e85a..c767f11 100644 --- a/tng.spec +++ b/tng.spec @@ -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 - 1.8.2-2 +- Fix build error + * Mon Jul 27 2020 maminjie - 1.8.2-1 - package init