|
|
|
@ -88,15 +88,18 @@ Requires(postun): ghc-compiler = %{ghc_version}\
|
|
|
|
|
Requires: ghc-%{?pkg_name}%{!?pkg_name:%{pkgname}} = %{?pkgver}%{!?pkgver:%{version}}-%{release}\
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%ghc_shared_files\
|
|
|
|
|
%if %{undefined ghc_without_shared}\
|
|
|
|
|
%files -n %{basepkg} -f %{basepkg}.files\
|
|
|
|
|
%{?base_doc_files:%doc %base_doc_files}\
|
|
|
|
|
%endif\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
# ghc_lib_package [-c cdepslist] [-h pkgdepslist]
|
|
|
|
|
%ghc_lib_package(c:h:)\
|
|
|
|
|
%define pkgname %{?1}%{!?1:%{pkg_name}}\
|
|
|
|
|
%define pkgver %{?2}%{!?2:%{version}}\
|
|
|
|
|
%define pkgnamever %{pkgname}-%{pkgver}\
|
|
|
|
|
%define basepkg ghc-%{pkgname}\
|
|
|
|
|
%if %{undefined ghc_without_shared}\
|
|
|
|
|
%files -n %{basepkg} -f %{basepkg}.files\
|
|
|
|
|
%endif\
|
|
|
|
|
%ghc_shared_files\
|
|
|
|
|
\
|
|
|
|
|
%ghc_package_devel\
|
|
|
|
|
%{nil}
|
|
|
|
@ -129,6 +132,22 @@ This package provides the shared library.\
|
|
|
|
|
# (deprecated) for docs post and postun
|
|
|
|
|
%ghc_reindex_haddock :
|
|
|
|
|
|
|
|
|
|
%ghc_devel_files\
|
|
|
|
|
%files -n %{basepkg}-devel -f %{basepkg}-devel.files\
|
|
|
|
|
%if %{defined ghc_without_shared}\
|
|
|
|
|
%{?base_doc_files:%doc %base_doc_files}\
|
|
|
|
|
%endif\
|
|
|
|
|
%{?devel_doc_files:%doc %devel_doc_files}\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
%ghc_files()\
|
|
|
|
|
%{?1:%define base_doc_files %*}\
|
|
|
|
|
%define basepkg ghc-%{pkg_name}\
|
|
|
|
|
%ghc_shared_files\
|
|
|
|
|
\
|
|
|
|
|
%ghc_devel_files\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
# ghc_package_devel [-c cdepslist] [-h pkgdepslist] [-l licensetag] [name] [version]
|
|
|
|
|
%ghc_package_devel(c:h:l:)\
|
|
|
|
|
%define pkgname %{?1}%{!?1:%{pkg_name}}\
|
|
|
|
@ -162,7 +181,7 @@ This package contains the development files.\
|
|
|
|
|
%postun -n %{basepkg}-devel\
|
|
|
|
|
%ghc_pkg_recache\
|
|
|
|
|
\
|
|
|
|
|
%files -n %{basepkg}-devel -f %{basepkg}-devel.files\
|
|
|
|
|
%ghc_devel_files\
|
|
|
|
|
%{nil}
|
|
|
|
|
|
|
|
|
|
# ghc_strip_dynlinked
|
|
|
|
|