diff --git a/unlambda.spec b/unlambda.spec index fdeb5ff..6ff9081 100644 --- a/unlambda.spec +++ b/unlambda.spec @@ -1,4 +1,4 @@ -# generated by cabal-rpm-0.13 +# generated by cabal-rpm-1.0.0 # https://fedoraproject.org/wiki/Packaging:Haskell %global pkg_name unlambda @@ -6,7 +6,7 @@ Name: %{pkg_name} Version: 0.1.4.2 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Unlambda interpreter License: GPL+ @@ -18,6 +18,12 @@ Patch0: unlambda-0.1.2-FSF-license-fix.patch # Begin cabal-rpm deps: BuildRequires: ghc-Cabal-devel +%if %{with haddock} +BuildRequires: ghc-doc +%endif +%if %{with ghc_prof} +BuildRequires: ghc-prof +%endif BuildRequires: ghc-rpm-macros BuildRequires: ghc-array-devel BuildRequires: ghc-mtl-devel @@ -39,11 +45,8 @@ This package provides the Haskell %{name} shared library. %package -n ghc-%{name}-devel Summary: Haskell %{name} library development files Provides: ghc-%{name}-static = %{version}-%{release} -Provides: ghc-%{name}-doc = %{version}-%{release} %if %{defined ghc_version} Requires: ghc-compiler = %{ghc_version} -Requires(post): ghc-compiler = %{ghc_version} -Requires(postun): ghc-compiler = %{ghc_version} %endif Requires: ghc-%{name}%{?_isa} = %{version}-%{release} @@ -51,6 +54,25 @@ Requires: ghc-%{name}%{?_isa} = %{version}-%{release} This package provides the Haskell %{name} library development files. +%if %{with haddock} +%package -n ghc-%{name}-doc +Summary: Haskell %{name} library documentation + +%description -n ghc-%{name}-doc +This package provides the Haskell %{name} library documentation. +%endif + + +%if %{with ghc_prof} +%package -n ghc-%{name}-prof +Summary: Haskell %{name} profiling library +Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release} + +%description -n ghc-%{name}-prof +This package provides the Haskell %{name} profiling library. +%endif + + %prep # Begin cabal-rpm setup: %setup -q @@ -70,14 +92,6 @@ iconv -f iso8859-1 -t utf-8 Language/Unlambda.hs > Language/Unlambda.conv && mv # End cabal-rpm install -%post -n ghc-%{name}-devel -%ghc_pkg_recache - - -%postun -n ghc-%{name}-devel -%ghc_pkg_recache - - %files # Begin cabal-rpm files: %license LICENSE @@ -94,7 +108,20 @@ iconv -f iso8859-1 -t utf-8 Language/Unlambda.hs > Language/Unlambda.conv && mv %files -n ghc-%{name}-devel -f ghc-%{name}-devel.files +%if %{with haddock} +%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files +%endif + + +%if %{with ghc_prof} +%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files +%endif + + %changelog +* Fri Aug 02 2019 Jens Petersen - 0.1.4.2-13 +- add doc and prof subpackages (cabal-rpm-1.0.0) + * Sat Jul 27 2019 Fedora Release Engineering - 0.1.4.2-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild