First package.

This commit is contained in:
Shakthi Kannan 2011-06-12 11:35:15 +05:30
parent 51d3f176f5
commit cd39b993d9
3 changed files with 72 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/MonadCatchIO-mtl-0.3.0.3.tar.gz

70
ghc-MonadCatchIO-mtl.spec Normal file
View File

@ -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 <shakthimaan [AT] fedoraproject DOT org> - 0.3.0.3-2
- Updated to cabal2spec-0.22.7.
* Fri Jun 10 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject DOT org> - 0.3.0.3-1
- Updated to upstream 0.3.0.3.
* Sat May 28 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject DOT org> - 0.3.0.2-1
- Updated to upstream 0.3.0.2.
* Sat Sep 04 2010 Ben Boeckel <mathstuf@gmail.com> - 0.3.0.1-1
- Initial package
* Sat Sep 4 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.3.0.1-0
- initial packaging for Fedora automatically generated by cabal2spec-0.22.2

View File

@ -0,0 +1 @@
faf2d7af1f3a2d2bb513316dcefd2606 MonadCatchIO-mtl-0.3.0.3.tar.gz