[ghc-ForSyDe] update to cabal2spec-0.25.2

Jens Petersen petersen at fedoraproject.org
Thu Jan 5 07:06:43 UTC 2012


commit c05c17cde725d03bb5ebf6d21d02b0aa242516c2
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Jan 5 16:06:34 2012 +0900

    update to cabal2spec-0.25.2

 ghc-ForSyDe.spec |   32 +++++++++++++++++++++-----------
 1 files changed, 21 insertions(+), 11 deletions(-)
---
diff --git a/ghc-ForSyDe.spec b/ghc-ForSyDe.spec
index c326523..dcba757 100644
--- a/ghc-ForSyDe.spec
+++ b/ghc-ForSyDe.spec
@@ -1,3 +1,7 @@
+# cabal2spec-0.25.2
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name ForSyDe
 
 %global common_summary Haskell %{pkg_name} library
@@ -6,19 +10,18 @@
 
 Name:           ghc-%{pkg_name}
 Version:        3.1.1
-Release:        5%{?dist}.3
+Release:        6%{?dist}
 Summary:        %{common_summary}
 
 Group:          System Environment/Libraries
 License:        BSD
+# BEGIN cabal2spec
 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}
-# no template-haskell on ppc64
-ExcludeArch:    ppc64
+ExclusiveArch:  %{ghc_arches_with_ghci}
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
-BuildRequires:  hscolour
+BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
 BuildRequires:  ghc-parameterized-data-prof
 BuildRequires:  ghc-random-prof
 BuildRequires:  ghc-regex-posix-prof
@@ -39,18 +42,25 @@ BuildRequires:  ghc-mtl-prof
 
 %install
 %ghc_lib_install
+echo "%dir %{_datadir}/%{pkg_name}-%{version}" >> %{name}%{?ghc_without_shared:-devel}.files
+echo "%dir %{_datadir}/%{pkg_name}-%{version}/lib" >> %{name}%{?ghc_without_shared:-devel}.files
+echo "%{_datadir}/%{pkg_name}-%{version}/lib/forsyde.vhd" >> %{name}%{?ghc_without_shared:-devel}.files
+
+%ghc_devel_package
 
+%ghc_devel_description
 
 
-%ghc_lib_package
+%ghc_devel_post_postun
 
 
-%files
-%defattr(-,root,root,-)
-%dir %{_datadir}/%{pkg_name}-%{version}
-%{_datadir}/%{pkg_name}-%{version}/lib/forsyde.vhd
+%ghc_files
+
 
 %changelog
+* Thu Jan  5 2012 Jens Petersen <petersen at redhat.com> - 3.1.1-6
+- update to cabal2spec-0.25.2
+
 * Mon Oct 24 2011 Marcela Mašláňová <mmaslano at redhat.com> - 3.1.1-5.3
 - rebuild with new gmp without compat lib
 


More information about the scm-commits mailing list