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