refresh to cabal-rpm-2.0.2
This commit is contained in:
parent
ca817018f8
commit
e0a191a3e6
17
shake.spec
17
shake.spec
|
@ -1,4 +1,4 @@
|
|||
# generated by cabal-rpm-1.0.1 --subpackage
|
||||
# generated by cabal-rpm-2.0.2 --subpackage
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name shake
|
||||
|
@ -11,6 +11,7 @@
|
|||
%global jsdgtable js-dgtable-0.5.2
|
||||
%global subpkgs %{jsflot} %{jsjquery} %{filepattern} %{heaps} %{jsdgtable}
|
||||
|
||||
# failing to build
|
||||
%bcond_with tests
|
||||
|
||||
Name: %{pkg_name}
|
||||
|
@ -54,7 +55,6 @@ BuildRequires: ghc-transformers-prof
|
|||
BuildRequires: ghc-unix-prof
|
||||
BuildRequires: ghc-unordered-containers-prof
|
||||
BuildRequires: ghc-utf8-string-prof
|
||||
BuildRequires: chrpath
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-QuickCheck-devel
|
||||
%endif
|
||||
|
@ -126,6 +126,7 @@ information (e.g. compiler version).
|
|||
%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.
|
||||
|
@ -136,6 +137,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.
|
||||
|
@ -187,6 +189,16 @@ rm %{buildroot}%{_datadir}/%{pkgver}/docs/manual/*
|
|||
%cabal_test
|
||||
|
||||
|
||||
%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}/%{name}
|
||||
|
@ -209,6 +221,7 @@ rm %{buildroot}%{_datadir}/%{pkgver}/docs/manual/*
|
|||
|
||||
%if %{with haddock}
|
||||
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
|
||||
%license LICENSE
|
||||
%endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue