From 635a0ea454403b408ca6ca515a55ef738115add4 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 7 Apr 2017 19:11:29 +0900 Subject: [PATCH] Group and %defattr are only needed for rhel5 --- macros.ghc-extra | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macros.ghc-extra b/macros.ghc-extra index 189953a..9d98fda 100644 --- a/macros.ghc-extra +++ b/macros.ghc-extra @@ -17,7 +17,7 @@ print(string.sub(pv, string.find(pv, "[%d.]+$")))\ %define basepkg %{ghc_prefix}-%{pkgname}\ %package -n %{basepkg}\ Summary: Haskell %{pkgname} library\ -%if 0%{?rhel} && 0%{?rhel} < 7\ +%if 0%{?rhel} && 0%{?rhel} < 6\ Group: System/Libraries\ %endif\ %{?1:Version: %{pkgver}}\ @@ -30,7 +30,7 @@ This package provides the Haskell %{pkgname} library.\ \ %package -n %{basepkg}-devel\ Summary: Haskell %{pkgname} library development files\ -%if 0%{?rhel} && 0%{?rhel} < 7\ +%if 0%{?rhel} && 0%{?rhel} < 6\ Group: Development/Languages/Other\ %endif\ %{?1:Version: %{pkgver}}\ @@ -52,13 +52,13 @@ This package provides the Haskell %{pkgname} library development files.\ %ghc_pkg_recache\ \ %files -n %{basepkg} -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}.files\ -%if 0%{?rhel} && 0%{?rhel} < 7\ +%if 0%{?rhel} && 0%{?rhel} < 6\ %defattr(-,root,root,-)\ %endif\ %{?base_doc_files:%doc %base_doc_files}\ \ %files -n %{basepkg}-devel -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}-devel.files\ -%if 0%{?rhel} && 0%{?rhel} < 7\ +%if 0%{?rhel} && 0%{?rhel} < 6\ %defattr(-,root,root,-)\ %endif\ %{?devel_doc_files:%doc %devel_doc_files}\