[ghc-hamlet] Update to 0.9.0 Update to cabal2spec-0.24

Ben Boeckel mathstuf at fedoraproject.org
Tue Jul 26 01:29:34 UTC 2011


commit 9646d7a9219be1f016c9fb799932335812143e21
Author: Ben Boeckel <MathStuf at gmail.com>
Date:   Sat Jul 9 01:19:17 2011 -0400

    Update to 0.9.0
    Update to cabal2spec-0.24

 .gitignore      |    1 +
 ghc-hamlet.spec |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 sources         |    2 +-
 3 files changed, 53 insertions(+), 5 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 86616c8..7fdea34 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /hamlet-0.6.1.2.tar.gz
 /hamlet-0.8.2.1.tar.gz
+/hamlet-0.9.0.tar.gz
diff --git a/ghc-hamlet.spec b/ghc-hamlet.spec
index 0bb3b6a..d468513 100644
--- a/ghc-hamlet.spec
+++ b/ghc-hamlet.spec
@@ -1,3 +1,7 @@
+# For Haskell Packaging Guidelines see:
+# - https://fedoraproject.org/wiki/Packaging:Haskell
+# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name hamlet
 
 %global common_summary Haml-like template files that are compile-time checked
@@ -10,12 +14,13 @@ errors. Please see the documentation at \
 <http://docs.yesodweb.com/hamlet/> for more details.
 
 Name:           ghc-%{pkg_name}
-Version:        0.8.2.1
-Release:        2%{?dist}
+Version:        0.9.0
+Release:        1%{?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}
@@ -24,12 +29,37 @@ ExcludeArch:    ppc64
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  hscolour
-BuildRequires:  ghc-blaze-html-prof, ghc-failure-prof, ghc-parsec-prof, ghc-process-prof, ghc-template-haskell-prof, ghc-text-prof
+# END: cabal2spec-0.24
+
+BuildRequires:  ghc-blaze-builder-devel
+BuildRequires:  ghc-blaze-html-devel
+BuildRequires:  ghc-bytestring-devel
+BuildRequires:  ghc-containers-devel
+BuildRequires:  ghc-failure-devel
+BuildRequires:  ghc-parsec-devel
+BuildRequires:  ghc-process-devel
+BuildRequires:  ghc-template-haskell-devel
+BuildRequires:  ghc-text-devel
 
 %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
+
+%description -n ghc-%{pkg_name}-devel
+%{common_description}
+
+This package contains the development files.
+
+
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
@@ -42,10 +72,27 @@ BuildRequires:  ghc-blaze-html-prof, ghc-failure-prof, ghc-parsec-prof, ghc-proc
 %ghc_lib_install
 
 
-%ghc_lib_package
+%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 Jul 25 2011 Ben Boeckel <mathstuf at gmail.com> - 0.9.0-1
+- Update to 0.9.0
+- Update to cabal2spec-0.24
+
 * Tue Jun 21 2011 Jens Petersen <petersen at redhat.com> - 0.8.2.1-2
 - ghc_arches replaces ghc_excluded_archs (cabal2spec-0.23.2)
 
diff --git a/sources b/sources
index c5398ad..c29ab4e 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-db94cefc1b98388fce760e1ebf677018  hamlet-0.8.2.1.tar.gz
+51d2b86ecdd3983d5d1a2bb6fb6beee3  hamlet-0.9.0.tar.gz


More information about the scm-commits mailing list