diff --git a/.gitignore b/.gitignore index e69de29..efbf396 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/MonadCatchIO-mtl-0.3.0.3.tar.gz diff --git a/ghc-MonadCatchIO-mtl.spec b/ghc-MonadCatchIO-mtl.spec new file mode 100644 index 0000000..672b7bf --- /dev/null +++ b/ghc-MonadCatchIO-mtl.spec @@ -0,0 +1,70 @@ +# For Haskell Packaging Guidelines see: +# - https://fedoraproject.org/wiki/Packaging:Haskell +# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell + +%global pkg_name MonadCatchIO-mtl + +# common part of summary for all the subpackages +%global common_summary Monad-transformer for Control.Exception + +# main description used for all the subpackages +%global common_description Provides a monad-transformer version of the \ +@Control.Exception.catch@ function. For this, it defines the \ +@MonadCatchIO@ class, a subset of @MonadIO@. It defines \ +proper instances for most monad transformers in the 'mtl' \ +library. + +# Haskell library dependencies (used for buildrequires and devel/prof subpkg requires) +%global ghc_pkg_deps ghc-mtl-devel, ghc-base-devel, ghc-extensible-exceptions-devel + +Name: ghc-%{pkg_name} +Version: 0.3.0.3 +Release: 2%{?dist} +Summary: %{common_summary} + +Group: System Environment/Libraries +License: BSD +URL: http://hackage.haskell.org/package/%{pkg_name} +Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz +# fedora ghc archs: +ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 ppc64 +BuildRequires: ghc, ghc-doc, ghc-prof +# macros for building haskell packages +BuildRequires: ghc-rpm-macros + +BuildRequires: hscolour + +%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")} + +%description +%{common_description} + +%prep +%setup -q -n %{pkg_name}-%{version} + +%build +%ghc_lib_build + +%install + +%ghc_lib_install + +# define the devel and prof subpkgs, devel post[un] scripts, and filelists: +# ghc-MonadCatchIO-mtl{,-devel,-prof}.files +%ghc_lib_package + +%changelog +* Sun Jun 12 2011 Shakthi Kannan - 0.3.0.3-2 +- Updated to cabal2spec-0.22.7. + +* Fri Jun 10 2011 Shakthi Kannan - 0.3.0.3-1 +- Updated to upstream 0.3.0.3. + +* Sat May 28 2011 Shakthi Kannan - 0.3.0.2-1 +- Updated to upstream 0.3.0.2. + +* Sat Sep 04 2010 Ben Boeckel - 0.3.0.1-1 +- Initial package + +* Sat Sep 4 2010 Fedora Haskell SIG - 0.3.0.1-0 +- initial packaging for Fedora automatically generated by cabal2spec-0.22.2 diff --git a/sources b/sources index e69de29..1fd4d29 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +faf2d7af1f3a2d2bb513316dcefd2606 MonadCatchIO-mtl-0.3.0.3.tar.gz