[ghc-control-monad-free] initial package

Ben Boeckel mathstuf at fedoraproject.org
Sat Feb 28 02:05:08 UTC 2015


commit 21915791fb799cfd8ce7e5e649803bbd37e1cecb
Author: Ben Boeckel <mathstuf at gmail.com>
Date:   Fri Feb 27 21:05:03 2015 -0500

    initial package

 .gitignore                  |  1 +
 ghc-control-monad-free.spec | 79 +++++++++++++++++++++++++++++++++++++++++++++
 sources                     |  1 +
 3 files changed, 81 insertions(+)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ad65ecd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/control-monad-free-0.6.1.tar.gz
diff --git a/ghc-control-monad-free.spec b/ghc-control-monad-free.spec
new file mode 100644
index 0000000..6841257
--- /dev/null
+++ b/ghc-control-monad-free.spec
@@ -0,0 +1,79 @@
+# https://fedoraproject.org/wiki/Packaging:Haskell
+
+%global pkg_name control-monad-free
+
+Name:           ghc-%{pkg_name}
+Version:        0.6.1
+Release:        2%{?dist}
+Summary:        Free monads and monad transformers
+
+License:        Public Domain
+Url:            https://hackage.haskell.org/package/%{pkg_name}
+Source0:        https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
+
+# https://github.com/liamoc/wizards/commit/694ffef6034f6647b5f74ed07e8f3d5e7f4a46bf
+Patch1:         0001-Bump-upper-bound-on-control-monad-free.patch
+
+BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-rpm-macros
+# Begin cabal-rpm deps:
+BuildRequires:  ghc-prelude-extras-devel
+BuildRequires:  ghc-transformers-devel
+# End cabal-rpm deps
+
+%description
+This package provides datatypes to construct Free monads, Free monad
+transformers, and useful instances. In addition it provides the constructs to
+avoid quadratic complexity of left associative bind, as explained in:
+
+Janis Voigtlander, Asymptotic Improvement of Computations over Free Monads,
+MPC'08/. http://www.janis-voigtlaender.eu/Voi08d.html
+
+
+%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.
+
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+
+%patch0 -p1 -b .cmf-bump
+
+
+%build
+%ghc_lib_build
+
+
+%install
+%ghc_lib_install
+
+
+%post devel
+%ghc_pkg_recache
+
+
+%postun devel
+%ghc_pkg_recache
+
+
+%files -f %{name}.files
+
+
+%files devel -f %{name}-devel.files
+
+
+%changelog
+* Thu Feb 26 2015 Ben Boeckel <mathstuf at gmail.com> - 0.6.1-2
+- cherry-pick patch to support control-monad-free 0.6
+
+* Tue Feb 24 2015 Fedora Haskell SIG <haskell at lists.fedoraproject.org> - 0.6.1-1
+- spec file generated by cabal-rpm-0.9.3
diff --git a/sources b/sources
index e69de29..4656f1b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0ac2dbdd45ba911c85b070b4303be115  control-monad-free-0.6.1.tar.gz


More information about the scm-commits mailing list