refresh to cabal-rpm-0.11.1

This commit is contained in:
Jens Petersen 2017-02-25 16:14:31 +09:00
parent a6b00dd714
commit 9bd730efb1
1 changed files with 19 additions and 5 deletions

View File

@ -1,6 +1,10 @@
# generated by cabal-rpm-0.11.1
# https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name distributive %global pkg_name distributive
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.5.2 Version: 0.5.2
@ -8,15 +12,22 @@ Release: 1%{?dist}
Summary: Distributive functors -- Dual to Traversable Summary: Distributive functors -- Dual to Traversable
License: BSD License: BSD
URL: http://hackage.haskell.org/package/%{pkg_name} Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps: # Begin cabal-rpm deps:
BuildRequires: ghc-base-orphans-devel
BuildRequires: ghc-cabal-doctest-devel
BuildRequires: ghc-tagged-devel BuildRequires: ghc-tagged-devel
BuildRequires: ghc-transformers-compat-devel BuildRequires: ghc-transformers-compat-devel
BuildRequires: ghc-transformers-devel BuildRequires: ghc-transformers-devel
%if %{with tests}
BuildRequires: ghc-doctest-devel
BuildRequires: ghc-generic-deriving-devel
BuildRequires: ghc-hspec-devel
%endif
# End cabal-rpm deps # End cabal-rpm deps
%description %description
@ -36,8 +47,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep %prep
%setup -q -n %{pkg_name}-%{version} %setup -q -n %{pkgver}
cabal-tweak-dep-ver transformers '< 0.5' '< 0.6'
%build %build
@ -48,6 +58,10 @@ cabal-tweak-dep-ver transformers '< 0.5' '< 0.6'
%ghc_lib_install %ghc_lib_install
%check
%cabal_test
%post devel %post devel
%ghc_pkg_recache %ghc_pkg_recache
@ -61,7 +75,7 @@ cabal-tweak-dep-ver transformers '< 0.5' '< 0.6'
%files devel -f %{name}-devel.files %files devel -f %{name}-devel.files
%doc README.markdown %doc CHANGELOG.markdown README.markdown
%changelog %changelog