2018-01-24 13:11:37 +00:00
|
|
|
# generated by cabal-rpm-0.12.1
|
2017-11-14 15:25:16 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name mono-traversable
|
|
|
|
%global pkgver %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
2018-01-24 14:42:51 +00:00
|
|
|
Version: 1.0.7.0
|
2017-11-14 15:25:16 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Summary: Type classes for mapping, folding, and traversing monomorphic containers
|
|
|
|
|
|
|
|
License: MIT
|
|
|
|
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-bytestring-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
|
|
|
BuildRequires: ghc-hashable-devel
|
|
|
|
BuildRequires: ghc-split-devel
|
|
|
|
BuildRequires: ghc-text-devel
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
BuildRequires: ghc-unordered-containers-devel
|
|
|
|
BuildRequires: ghc-vector-algorithms-devel
|
|
|
|
BuildRequires: ghc-vector-devel
|
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-HUnit-devel
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
|
|
|
BuildRequires: ghc-foldl-devel
|
|
|
|
BuildRequires: ghc-hspec-devel
|
|
|
|
BuildRequires: ghc-semigroups-devel
|
|
|
|
%endif
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
2018-01-24 14:42:51 +00:00
|
|
|
Please see the README at <https://www.stackage.org/package/mono-traversable>.
|
2017-11-14 15:25:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2018-01-24 13:11:37 +00:00
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
|
|
%if %{defined ghc_version}
|
2017-11-14 15:25:16 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2018-01-24 13:11:37 +00:00
|
|
|
%endif
|
2017-11-14 15:25:16 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development
|
|
|
|
files.
|
|
|
|
|
|
|
|
%package devel-doc
|
|
|
|
Summary: Haskell %{pkg_name} library development documentation
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description devel-doc
|
|
|
|
This package provides the Haskell %{pkg_name} library development documentation.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkgver}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
|
|
|
|
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%cabal_test
|
|
|
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel-nodoc.files
|
|
|
|
%doc ChangeLog.md README.md
|
|
|
|
|
|
|
|
%files devel-doc -f %{name}-devel-doc.files
|
|
|
|
%doc ChangeLog.md README.md
|
|
|
|
|
|
|
|
%changelog
|
2018-01-24 14:42:51 +00:00
|
|
|
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 1.0.7.0-1
|
|
|
|
- update to 1.0.7.0
|
|
|
|
|
2017-11-14 15:25:16 +00:00
|
|
|
* Thu Nov 9 2017 David Shea <dshea@redhat.com> - 1.0.2-3
|
|
|
|
- spec file generated by cabal-rpm-0.11.1
|
|
|
|
- Split the documentation into a separate package
|