Group and %defattr are only needed for rhel5
This commit is contained in:
parent
38f99a79b3
commit
635a0ea454
@ -17,7 +17,7 @@ print(string.sub(pv, string.find(pv, "[%d.]+$")))\
|
|||||||
%define basepkg %{ghc_prefix}-%{pkgname}\
|
%define basepkg %{ghc_prefix}-%{pkgname}\
|
||||||
%package -n %{basepkg}\
|
%package -n %{basepkg}\
|
||||||
Summary: Haskell %{pkgname} library\
|
Summary: Haskell %{pkgname} library\
|
||||||
%if 0%{?rhel} && 0%{?rhel} < 7\
|
%if 0%{?rhel} && 0%{?rhel} < 6\
|
||||||
Group: System/Libraries\
|
Group: System/Libraries\
|
||||||
%endif\
|
%endif\
|
||||||
%{?1:Version: %{pkgver}}\
|
%{?1:Version: %{pkgver}}\
|
||||||
@ -30,7 +30,7 @@ This package provides the Haskell %{pkgname} library.\
|
|||||||
\
|
\
|
||||||
%package -n %{basepkg}-devel\
|
%package -n %{basepkg}-devel\
|
||||||
Summary: Haskell %{pkgname} library development files\
|
Summary: Haskell %{pkgname} library development files\
|
||||||
%if 0%{?rhel} && 0%{?rhel} < 7\
|
%if 0%{?rhel} && 0%{?rhel} < 6\
|
||||||
Group: Development/Languages/Other\
|
Group: Development/Languages/Other\
|
||||||
%endif\
|
%endif\
|
||||||
%{?1:Version: %{pkgver}}\
|
%{?1:Version: %{pkgver}}\
|
||||||
@ -52,13 +52,13 @@ This package provides the Haskell %{pkgname} library development files.\
|
|||||||
%ghc_pkg_recache\
|
%ghc_pkg_recache\
|
||||||
\
|
\
|
||||||
%files -n %{basepkg} -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}.files\
|
%files -n %{basepkg} -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}.files\
|
||||||
%if 0%{?rhel} && 0%{?rhel} < 7\
|
%if 0%{?rhel} && 0%{?rhel} < 6\
|
||||||
%defattr(-,root,root,-)\
|
%defattr(-,root,root,-)\
|
||||||
%endif\
|
%endif\
|
||||||
%{?base_doc_files:%doc %base_doc_files}\
|
%{?base_doc_files:%doc %base_doc_files}\
|
||||||
\
|
\
|
||||||
%files -n %{basepkg}-devel -f %{!-d:%{pkgname}-%{pkgver}/}%{basepkg}-devel.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,-)\
|
%defattr(-,root,root,-)\
|
||||||
%endif\
|
%endif\
|
||||||
%{?devel_doc_files:%doc %devel_doc_files}\
|
%{?devel_doc_files:%doc %devel_doc_files}\
|
||||||
|
Loading…
Reference in New Issue
Block a user