refresh to cabal-rpm-0.12.1

This commit is contained in:
Jens Petersen 2018-01-24 14:10:18 +01:00
parent 4f922eabff
commit 91ba8cf5f8
1 changed files with 10 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 ShellCheck
@ -52,9 +52,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
@ -80,6 +83,12 @@ install -Dpm 0644 shellcheck.1 %{buildroot}%{_mandir}/man1/shellcheck.1
%cabal_test
%post -n ghc-%{name} -p /sbin/ldconfig
%postun -n ghc-%{name} -p /sbin/ldconfig
%post -n ghc-%{name}-devel
%ghc_pkg_recache