New package ghc-generics-sop
This commit is contained in:
parent
9937570024
commit
e755aeba70
|
@ -0,0 +1 @@
|
|||
/generics-sop-0.3.1.0.tar.gz
|
|
@ -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
|
Loading…
Reference in New Issue