diff --git a/ghc-bytestring-nums.spec b/ghc-bytestring-nums.spec index 0f01754..e6466c7 100644 --- a/ghc-bytestring-nums.spec +++ b/ghc-bytestring-nums.spec @@ -1,15 +1,16 @@ +# For Haskell Packaging Guidelines see: +# - https://fedoraproject.org/wiki/Packaging:Haskell +# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell + %global pkg_name bytestring-nums %global common_summary Parse numeric literals from ByteStrings %global common_description %{common_summary}. -# debuginfo is not useful for ghc -%global debug_package %{nil} - Name: ghc-%{pkg_name} Version: 0.3.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: %{common_summary} Group: System Environment/Libraries @@ -19,15 +20,12 @@ Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{versio # fedora ghc archs: ExclusiveArch: %{ix86} x86_64 ppc alpha sparcv9 BuildRequires: ghc, ghc-doc, ghc-prof +# macros for building haskell packages BuildRequires: ghc-rpm-macros >= 0.7.3 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} -%if %{with shared} -This package provides the shared library. -%endif %prep @@ -46,10 +44,15 @@ install -m 644 -p README %{buildroot}%{_docdir}/%{name}-%{version}/README rm -vf %{buildroot}%{_bindir}/spoj-eugene -%{?ghc_lib_package} +# define the devel and prof subpkgs, devel post[un] scripts, and filelists: +# ghc-%pkg_name{,devel,prof}.files +%ghc_lib_package %changelog +* Tue May 10 2011 Ben Boeckel - 0.3.2-4 +- Update to cabal2spec-0.22.5 + * Thu Mar 10 2011 Fabio M. Di Nitto - 0.3.2-3 - Enable build on sparcv9