# 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 #Requires: ghc-containers-prof #Requires: ghc-directory-prof #Requires: ghc-filepath-prof #Requires: ghc-pretty-prof #Requires: ghc-process-prof #Requires: 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 - 0.4.2-3 - Remove manual runtime dependencies; issue fixed by ghc-rpm-macros 0.13.10 * Fri Sep 9 2011 Michel Salim - 0.4.2-2 - Add runtime dependencies * Thu Sep 8 2011 Michel Salim - 0.4.2-1 - Override license, summary and description * Thu Sep 8 2011 Fedora Haskell SIG - 0.4.2-0 - initial packaging for Fedora automatically generated by cabal2spec-0.24