[ghc-language-c] Initial import
Michel Alexandre Salim
salimma at fedoraproject.org
Tue Oct 4 15:25:31 UTC 2011
commit 4f9b5c69af4cdadfd200e2809caadb3d8e7924c9
Author: Michel Alexandre Salim <salimma at fedoraproject.org>
Date: Tue Oct 4 17:25:12 2011 +0200
Initial import
.gitignore | 1 +
ghc-language-c.spec | 103 +++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 105 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..90d6915 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/language-c-0.4.2.tar.gz
diff --git a/ghc-language-c.spec b/ghc-language-c.spec
new file mode 100644
index 0000000..576a469
--- /dev/null
+++ b/ghc-language-c.spec
@@ -0,0 +1,103 @@
+# For Haskell Packaging Guidelines see:
+# - https://fedoraproject.org/wiki/Packaging:Haskell
+# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
+%global pkg_name language-c
+
+# common part of summary for all the subpackages
+%global common_summary Haskell library for C code analysis and generation
+
+# main description used for all the subpackages
+%global common_description Language C is a Haskell library for the analysis and generation of C\
+code. It features a complete, well tested parser and pretty printer\
+for all of C99 and a large set of GNU extensions.
+
+Name: ghc-%{pkg_name}
+Version: 0.4.2
+Release: 3%{?dist}
+Summary: %{common_summary}
+
+Group: System Environment/Libraries
+License: BSD
+# BEGIN: cabal2spec-0.24
+URL: http://hackage.haskell.org/package/%{pkg_name}
+Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
+ExclusiveArch: %{ghc_arches}
+BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-rpm-macros
+BuildRequires: hscolour
+# END: cabal2spec-0.24
+# BR any C devel dependency here
+# list ghc-*-prof dependencies:
+BuildRequires: alex
+BuildRequires: happy
+BuildRequires: ghc-containers-prof
+BuildRequires: ghc-directory-prof
+BuildRequires: ghc-filepath-prof
+BuildRequires: ghc-pretty-prof
+BuildRequires: ghc-process-prof
+BuildRequires: ghc-syb-prof
+
+%description
+%{common_description}
+
+
+%package -n ghc-%{pkg_name}-devel
+Summary: Development files for %{common_summary}
+Group: Development/Libraries
+# BEGIN: cabal2spec-0.24
+%{?ghc_devel_requires}
+Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release}
+Provides: ghc-%{pkg_name}-prof = %{version}-%{release}
+# END: cabal2spec-0.24
+# remember to require any C devel dependency here
+# Haskell devel dependencies are autogenerated by ghc-deps.sh
+
+%description -n ghc-%{pkg_name}-devel
+%{common_description}
+
+This package contains the development files.
+
+
+%prep
+%setup -q -n %{pkg_name}-%{version}
+
+
+%build
+%ghc_lib_build
+
+
+%install
+%ghc_lib_install
+
+
+%post -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+
+%postun -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+
+%if %{undefined ghc_without_shared}
+%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
+%defattr(-,root,root,-)
+%endif
+
+
+%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
+%defattr(-,root,root,-)
+
+
+%changelog
+* Mon Sep 26 2011 Michel Salim <salimma at fedoraproject.org> - 0.4.2-3
+- Remove manual runtime dependencies; issue fixed by ghc-rpm-macros 0.13.10
+
+* Fri Sep 9 2011 Michel Salim <salimma at fedoraproject.org> - 0.4.2-2
+- Add runtime dependencies
+
+* Thu Sep 8 2011 Michel Salim <salimma at fedoraproject.org> - 0.4.2-1
+- Override license, summary and description
+
+* Thu Sep 8 2011 Fedora Haskell SIG <haskell-devel at lists.fedoraproject.org> - 0.4.2-0
+- initial packaging for Fedora automatically generated by cabal2spec-0.24
diff --git a/sources b/sources
index e69de29..e4016ec 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7b0ba1e90b53f7ea9883f9a6cf07d3d4 language-c-0.4.2.tar.gz
More information about the scm-commits
mailing list