refresh to cabal-rpm-2.0.6

This commit is contained in:
Jens Petersen 2020-06-19 16:53:29 +08:00
parent bb13a43ac7
commit 82e8b49ab8
1 changed files with 4 additions and 12 deletions

View File

@ -1,9 +1,11 @@
# generated by cabal-rpm-2.0.5
# generated by cabal-rpm-2.0.6
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name Glob
%global pkgver %{pkg_name}-%{version}
# testsuite missing deps: test-framework test-framework-hunit test-framework-quickcheck2
Name: ghc-%{pkg_name}
Version: 0.10.0
Release: 1%{?dist}
@ -70,6 +72,7 @@ This package provides the Haskell %{pkg_name} profiling library.
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
chmod a-x CHANGELOG.txt README.txt
# End cabal-rpm setup
@ -82,20 +85,9 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal
%install
# Begin cabal-rpm install
%ghc_lib_install
chmod a-x CHANGELOG.txt README.txt
# End cabal-rpm install
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%endif
%files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE.txt