refresh to cabal-rpm-0.12.1

This commit is contained in:
Jens Petersen 2018-01-24 14:12:28 +01:00
parent ad882f75cb
commit 172bad39ee
1 changed files with 11 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.11.1
# generated by cabal-rpm-0.12.1
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name hledger
@ -100,9 +100,12 @@ 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}
%description -n ghc-%{name}-devel
@ -138,6 +141,7 @@ cabal-tweak-drop-dep mtl-compat
%ghc_libs_install %{subpkgs}
%ghc_lib_install
%ghc_fix_rpath %{pkgver}
mv %{buildroot}%{_ghclicensedir}/{,ghc-}%{name}
mkdir -p %{buildroot}%{_docdir}/ghc-hledger-devel/
mv %{buildroot}%{_datadir}/%{name}-%{version}/doc %{buildroot}%{_docdir}/ghc-hledger-devel/
@ -147,6 +151,12 @@ mv %{buildroot}%{_datadir}/%{name}-%{version}/doc %{buildroot}%{_docdir}/ghc-hle
%cabal_test
%post -n ghc-%{name} -p /sbin/ldconfig
%postun -n ghc-%{name} -p /sbin/ldconfig
%post -n ghc-%{name}-devel
%ghc_pkg_recache