|
|
|
@ -4,22 +4,29 @@
|
|
|
|
|
%global pkg_name distributive
|
|
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%global baseorphans base-orphans-0.5.4
|
|
|
|
|
%global cabaldoctest cabal-doctest-1
|
|
|
|
|
%global subpkgs %{baseorphans} %{cabaldoctest}
|
|
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
|
Version: 0.5.2
|
|
|
|
|
# can only be reset when all subpkgs bumped
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Distributive functors -- Dual to Traversable
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
|
|
Source1: https://hackage.haskell.org/package/%{baseorphans}/%{baseorphans}.tar.gz
|
|
|
|
|
Source2: https://hackage.haskell.org/package/%{cabaldoctest}/%{cabaldoctest}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
|
BuildRequires: ghc-rpm-macros-extra
|
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
|
BuildRequires: ghc-base-orphans-devel
|
|
|
|
|
BuildRequires: ghc-cabal-doctest-devel
|
|
|
|
|
#BuildRequires: ghc-base-orphans-devel
|
|
|
|
|
#BuildRequires: ghc-cabal-doctest-devel
|
|
|
|
|
BuildRequires: ghc-tagged-devel
|
|
|
|
|
BuildRequires: ghc-transformers-compat-devel
|
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
@ -46,16 +53,29 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%global main_version %{version}
|
|
|
|
|
|
|
|
|
|
%if %{defined ghclibdir}
|
|
|
|
|
%ghc_lib_subpackage %{baseorphans}
|
|
|
|
|
%ghc_lib_subpackage %{cabaldoctest}
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%global version %{main_version}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkgver}
|
|
|
|
|
%setup -q -n %{pkgver} -a1 -a2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%ghc_libs_build %{subpkgs}
|
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%ghc_libs_install %{subpkgs}
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
%ghc_fix_rpath %{subpkgs}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
@ -81,6 +101,7 @@ This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
%changelog
|
|
|
|
|
* Thu Feb 23 2017 Jens Petersen <petersen@redhat.com> - 0.5.2-1
|
|
|
|
|
- update to 0.5.2
|
|
|
|
|
- subpackage base-orphans and cabal-doctest
|
|
|
|
|
|
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.4-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|