New package ghc-generics-sop

This commit is contained in:
David Shea 2017-11-17 11:05:34 -05:00
parent 9937570024
commit e755aeba70
4 changed files with 111 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/generics-sop-0.3.1.0.tar.gz

View File

@ -1,3 +0,0 @@
# ghc-generics-sop
The ghc-generics-sop package

109
ghc-generics-sop.spec Normal file
View File

@ -0,0 +1,109 @@
# generated by cabal-rpm-0.11.2
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name generics-sop
%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
Version: 0.3.1.0
Release: 1%{?dist}
Summary: Generic Programming using True Sums of Products
License: BSD
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-deepseq-devel
BuildRequires: ghc-template-haskell-devel
# End cabal-rpm deps
%description
A library to support the definition of generic functions. Datatypes are viewed
in a uniform, structured way: the choice between constructors is represented
using an n-ary sum, and the arguments of each constructor are represented using
an n-ary product.
The module "Generics.SOP" is the main module of this library and contains more
detailed documentation.
Examples of using this library are provided by the following packages:
* '<https://hackage.haskell.org/package/basic-sop basic-sop>' basic examples,
* '<https://hackage.haskell.org/package/pretty-sop pretty-sop>' generic pretty
printing,
* '<https://hackage.haskell.org/package/lens-sop lens-sop>' generically
computed lenses,
* '<https://hackage.haskell.org/package/json-sop json-sop>' generic JSON
conversions.
A detailed description of the ideas behind this library is provided by the
paper:
* Edsko de Vries and Andres Löh.
<http://www.andres-loeh.de/TrueSumsOfProducts True Sums of Products>.
Workshop on Generic Programming (WGP) 2014. .
%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} 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
%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
%files devel-doc -f %{name}-devel-doc.files
%doc CHANGELOG.md
%changelog
* Thu Nov 16 2017 David Shea <dshea@redhat.com> - 0.3.1.0-2
- Move the API docs to a separate package
- spec file generated by cabal-rpm-0.11.2

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (generics-sop-0.3.1.0.tar.gz) = 01c0495dd3efe495e22b0cf14ca823cd734a770156ab25557b78df97fe10891019d3c2216462efe9a0efdd28d67a9b73ad8a94104b2f87fdb3a2774711ac444e