# generated by cabal-rpm-0.11.1 # https://fedoraproject.org/wiki/Packaging:Haskell %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: 2%{?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-extra # 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 Distributive functors -- Dual to Traversable. %package devel Summary: Haskell %{pkg_name} library development files Provides: %{name}-static = %{version}-%{release} Requires: ghc-compiler = %{ghc_version} Requires(post): ghc-compiler = %{ghc_version} Requires(postun): ghc-compiler = %{ghc_version} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel 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} -a1 -a2 %build %ghc_libs_build %{subpkgs} %ghc_lib_build %install %ghc_libs_install %{subpkgs} %ghc_lib_install %ghc_fix_rpath %{subpkgs} %check %cabal_test %post devel %ghc_pkg_recache %postun devel %ghc_pkg_recache %files -f %{name}.files %license LICENSE %files devel -f %{name}-devel.files %doc CHANGELOG.markdown README.markdown %changelog * Wed Jul 26 2017 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Feb 23 2017 Jens Petersen - 0.5.2-1 - update to 0.5.2 - subpackage base-orphans and cabal-doctest * Fri Feb 10 2017 Fedora Release Engineering - 0.4.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 0.4.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.4.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Fri Jan 09 2015 Ricky Elrod - 0.4.4-1 - update to 0.4.4 * Wed Mar 12 2014 Fedora Haskell SIG - 0.4 - spec file generated by cabal-rpm-0.8.10