From 175e2206ffa7a5101896a2b8ae6b182c5ad5348f Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Mon, 5 May 2014 11:17:06 +0900 Subject: [PATCH] import (#1086444) --- .gitignore | 1 + ghc-optparse-applicative.spec | 68 +++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 70 insertions(+) create mode 100644 ghc-optparse-applicative.spec diff --git a/.gitignore b/.gitignore index e69de29..7fe69aa 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/optparse-applicative-0.8.0.1.tar.gz diff --git a/ghc-optparse-applicative.spec b/ghc-optparse-applicative.spec new file mode 100644 index 0000000..9ccd1f8 --- /dev/null +++ b/ghc-optparse-applicative.spec @@ -0,0 +1,68 @@ +# https://fedoraproject.org/wiki/Packaging:Haskell + +%global pkg_name optparse-applicative + +Name: ghc-%{pkg_name} +Version: 0.8.0.1 +Release: 1%{?dist} +Summary: Utilities and combinators for parsing command line options + +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-ansi-wl-pprint-devel +BuildRequires: ghc-process-devel +BuildRequires: ghc-transformers-devel +# End cabal-rpm deps + +%description +Utilities and combinators for parsing command line options. + +%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.md + + +%changelog +* Thu Apr 10 2014 Fedora Haskell SIG - 0.8.0.1-1 +- spec file generated by cabal-rpm-0.8.10 diff --git a/sources b/sources index e69de29..5445622 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +13ccec8236c0c5dcb3a4b5b811917cac optparse-applicative-0.8.0.1.tar.gz