|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
# generated by cabal-rpm-1.0.1
|
|
|
|
|
# generated by cabal-rpm-2.0.2
|
|
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
|
|
%global pkg_name hscolour
|
|
|
|
@ -28,6 +28,7 @@ Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
BuildRequires: ghc-base-prof
|
|
|
|
|
BuildRequires: ghc-containers-prof
|
|
|
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
@ -58,6 +59,7 @@ 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}-static%{?_isa} = %{version}-%{release}
|
|
|
|
|
%if %{defined ghc_version}
|
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
|
%endif
|
|
|
|
@ -70,6 +72,7 @@ This package provides the Haskell %{name} library development files.
|
|
|
|
|
%if %{with haddock}
|
|
|
|
|
%package -n ghc-%{name}-doc
|
|
|
|
|
Summary: Haskell %{name} library documentation
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
%description -n ghc-%{name}-doc
|
|
|
|
|
This package provides the Haskell %{name} library documentation.
|
|
|
|
@ -80,6 +83,7 @@ This package provides the Haskell %{name} library documentation.
|
|
|
|
|
%package -n ghc-%{name}-prof
|
|
|
|
|
Summary: Haskell %{name} profiling library
|
|
|
|
|
Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release}
|
|
|
|
|
Supplements: (ghc-%{name}-devel and ghc-prof)
|
|
|
|
|
|
|
|
|
|
%description -n ghc-%{name}-prof
|
|
|
|
|
This package provides the Haskell %{name} profiling library.
|
|
|
|
@ -105,6 +109,16 @@ mv %{buildroot}%{_ghcdocdir}{,-common}
|
|
|
|
|
# End cabal-rpm install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
|
|
|
|
%post -n ghc-%{name}-devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%postun -n ghc-%{name}-devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
# Begin cabal-rpm files:
|
|
|
|
|
%{_bindir}/HsColour
|
|
|
|
@ -126,6 +140,7 @@ mv %{buildroot}%{_ghcdocdir}{,-common}
|
|
|
|
|
|
|
|
|
|
%if %{with haddock}
|
|
|
|
|
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
|
|
|
|
|
%license LICENCE-LGPL
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|