Blob Blame History Raw
# generated by cabal-rpm-0.12.5

%global pkg_name generics-sop
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Release:        1%{?dist}
Summary:        Generic Programming using True Sums of Products

License:        BSD
Url:  {pkg_name}

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

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:

* '< basic-sop>' basic examples,

* '< pretty-sop>' generic pretty

* '< lens-sop>' generically
computed lenses,

* '< json-sop>' generic JSON

A detailed description of the ideas behind this library is provided by the

* Edsko de Vries and Andres Löh.
< True Sums of Products>.
Workshop on Generic Programming (WGP) 2014. .

%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-doc = %{version}-%{release}
%if %{defined ghc_version}
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.

%setup -q -n %{pkgver}
cp -p %{SOURCE1} %{pkg_name}.cabal


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

%postun devel

%files -f %{name}.files
%license LICENSE

%files devel -f %{name}-devel-nodoc.files

%files devel-doc -f %{name}-devel-doc.files

* Sun Jul 22 2018 Jens Petersen <> -
- update to

* Fri Jul 13 2018 Fedora Release Engineering <> -
- Rebuilt for

* Wed Feb 07 2018 Fedora Release Engineering <> -
- Rebuilt for

* Fri Jan 26 2018 Jens Petersen <> -
- rebuild

* Thu Nov 16 2017 David Shea <> -
- Move the API docs to a separate package
- spec file generated by cabal-rpm-0.11.2