diff --git a/.gitignore b/.gitignore index e69de29..cf9cd6a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/distributive-0.4.4.tar.gz diff --git a/ghc-distributive.spec b/ghc-distributive.spec new file mode 100644 index 0000000..ab0cc8c --- /dev/null +++ b/ghc-distributive.spec @@ -0,0 +1,71 @@ +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name distributive + +Name: ghc-%{pkg_name} +Version: 0.4.4 +Release: 1%{?dist} +Summary: Distributive functors -- Dual to Traversable + +License: BSD +URL: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz + +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-rpm-macros +# Begin cabal-rpm deps: +BuildRequires: ghc-tagged-devel +BuildRequires: ghc-transformers-compat-devel +BuildRequires: ghc-transformers-devel +# End cabal-rpm deps + +%description +Distributive functors -- Dual to Traversable. + + +%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} + + +%build +%ghc_lib_build + + +%install +%ghc_lib_install + + +%post devel +%ghc_pkg_recache + + +%postun devel +%ghc_pkg_recache + + +%files -f %{name}.files +%doc LICENSE + + +%files devel -f %{name}-devel.files +%doc README.markdown + + +%changelog +* Fri Jan 09 2015 Ricky Elrod - 0.4.4-1 +- update to 0.4.4 + +* Wed Mar 12 2014 Fedora Haskell SIG - 0.4 +- spec file generated by cabal-rpm-0.8.10 diff --git a/sources b/sources index e69de29..cc489e9 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d8bb67dfd4b24089b73eca2a3d76ca83 distributive-0.4.4.tar.gz