From 1a0f19f67a549494e52c860e2e84d575853c8549 Mon Sep 17 00:00:00 2001 From: sagitter Date: Fri, 16 Jan 2015 14:37:02 +0100 Subject: [PATCH] Built on EPEL7 --- metis.spec | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/metis.spec b/metis.spec index 57bbad3..cee4d19 100644 --- a/metis.spec +++ b/metis.spec @@ -1,6 +1,6 @@ Name: metis Version: 5.1.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Serial Graph Partitioning and Fill-reducing Matrix Ordering License: ASL 2.0 and BSD and LGPLv2+ Group: Development/Libraries @@ -24,7 +24,7 @@ Patch2: %{name}-width-datatype.patch ## This patch sets up GKREGEX, GKRAND, libsuffix options to the Makefiles Patch4: %{name}-GKREGEX-GKRAND-LIBSUFFIX-fix.patch -%if 0%{?rhel} +%if 0%{?el6} BuildRequires: cmake28 Conflicts: cmake < 2.8 %else @@ -68,7 +68,7 @@ fi # Build metis cd build -%if 0%{?rhel} +%if 0%{?el6} %cmake28 \ %else %cmake \ @@ -101,7 +101,7 @@ pushd build %make_install ## Generate manpages from binaries -%if 0%{?rhel} +%if 0%{?el6} LD_PRELOAD=%{buildroot}%{_libdir}/lib%{name}.so.0 \ help2man --version-option="%{version}" -n "Partitions a graph into a specified number of parts." \ -N --output="gpmetis.1" -h -help %{buildroot}%{_bindir}/gpmetis @@ -146,7 +146,12 @@ popd %postun -p /sbin/ldconfig %files -%doc LICENSE.txt Changelog manual/manual.pdf +%doc Changelog manual/manual.pdf +%if 0%{?fedora} +%license LICENSE.txt +%else +%doc LICENSE.txt +%endif %{_bindir}/* %{_mandir}/man1/*.1.gz %{_libdir}/lib%{name}.so.* @@ -157,6 +162,10 @@ popd %{_libdir}/lib%{name}.so %changelog +* Thu Jan 15 2015 Antonio Trande - 5.1.0-5 +- Built on EPEL7 +- Used new macro %%license + * Sun Aug 17 2014 Fedora Release Engineering - 5.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild