From 53478d64c5b9ef0c69bcc474895330a6d5cf420b Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 23 Jan 2010 09:15:33 +0000 Subject: [PATCH] *** empty log message *** --- .cvsignore | 1 + ghc-regex-posix.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++ import.log | 1 + sources | 1 + 4 files changed, 70 insertions(+) create mode 100644 ghc-regex-posix.spec create mode 100644 import.log diff --git a/.cvsignore b/.cvsignore index e69de29..16b1a0c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +regex-posix-0.94.1.tar.gz diff --git a/ghc-regex-posix.spec b/ghc-regex-posix.spec new file mode 100644 index 0000000..b762c46 --- /dev/null +++ b/ghc-regex-posix.spec @@ -0,0 +1,67 @@ +%global pkg_name regex-posix + +%global common_summary Haskell posix regex backend library + +%global common_description The posix regex backend for regex-base. + +%global ghc_pkg_deps ghc-regex-base-devel + +%bcond_without shared + +# debuginfo is not useful for ghc +%global debug_package %{nil} + +Name: ghc-%{pkg_name} +Version: 0.94.1 +Release: 2%{?dist} +Summary: %{common_summary} + +Group: System Environment/Libraries +License: BSD +URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/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 +BuildRequires: ghc, ghc-rpm-macros >= 0.5.1 +BuildRequires: ghc-doc +BuildRequires: ghc-prof +%{?ghc_pkg_deps:BuildRequires: %{ghc_pkg_deps}, %(echo %{ghc_pkg_deps} | sed -e "s/\(ghc-[^, ]\+\)-devel/\1-doc,\1-prof/g")} + +%description +%{common_description} +%if %{with shared} +This package provides the shared library. +%endif + + +%ghc_lib_package + + +%prep +%setup -q -n %{pkg_name}-%{version} + + +%build +%cabal_configure --ghc -p +%cabal build +%cabal haddock + + +%install +%cabal_install +%cabal_pkg_conf + +%ghc_gen_filelists + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%changelog +* Fri Jan 15 2010 Jens Petersen - 0.94.1-2 +- BSD license +- depends on regexp-base + +* Fri Jan 15 2010 Fedora Haskell SIG - 0.94.1-1 +- initial packaging for Fedora automatically generated by cabal2spec-0.21.1 diff --git a/import.log b/import.log new file mode 100644 index 0000000..8721c54 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +ghc-regex-posix-0_94_1-2_fc12:HEAD:ghc-regex-posix-0.94.1-2.fc12.src.rpm:1264237997 diff --git a/sources b/sources index e69de29..8d3748d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +624e53941566b3ef5a8ff918329843f9 regex-posix-0.94.1.tar.gz