New package ghc-mono-traversable

This commit is contained in:
David Shea 2017-11-14 10:25:16 -05:00
parent 112c77d6a5
commit fd4c2e7aa8
4 changed files with 107 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/mono-traversable-1.0.2.tar.gz

View File

@ -1,3 +0,0 @@
# ghc-mono-traversable
The ghc-mono-traversable package

105
ghc-mono-traversable.spec Normal file
View File

@ -0,0 +1,105 @@
# generated by cabal-rpm-0.11.1
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name mono-traversable
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.0.2
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
Monomorphic variants of the Functor, Foldable, and Traversable typeclasses.
If you understand Haskell's basic typeclasses, you understand mono-traversable.
In addition to what you are used to, it adds on an IsSequence typeclass and has
code for marking data structures as non-empty.
%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.
%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
* 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

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (mono-traversable-1.0.2.tar.gz) = 681ba454cb9b3c48e037e9a12e626e93046c171137e87c631d7c4b57631d79042d177d188173aea6093087da2f0c6b8aec0cf5d4df7fe380693fb25604fc3c7a