[hscolour] update to cabal2spec-0.25.2

Jens Petersen petersen at fedoraproject.org
Mon Jan 23 06:12:41 UTC 2012


commit c472370d0ebd92a9ba7de722c43f7b8204b1e3f3
Author: Jens Petersen <petersen at redhat.com>
Date:   Mon Jan 23 15:12:28 2012 +0900

    update to cabal2spec-0.25.2

 hscolour.spec |   38 +++++++++++++++++++++++++++++---------
 1 files changed, 29 insertions(+), 9 deletions(-)
---
diff --git a/hscolour.spec b/hscolour.spec
index 7306dc8..54cbad6 100644
--- a/hscolour.spec
+++ b/hscolour.spec
@@ -1,3 +1,7 @@
+# cabal2spec-0.25.2
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name hscolour
 
 # use following to bootstrap after building a new ghc version:
@@ -6,26 +10,25 @@
 
 %global common_summary Haskell %{pkg_name} library
 
-%global common_description hscolour is a small Haskell script to colourize Haskell code.\
+%global common_description hscolour is a tool to colourize Haskell code.\
 It currently has six output formats: ANSI terminal codes, HTML 3.2\
 with <font> tags, HTML 4.01 with CSS, XHTML 1.0 with inline CSS\
 styling, LaTeX, and mIRC chat client codes.
 
 Name:           %{pkg_name}
 Version:        1.19
-Release:        3%{?dist}.2
+Release:        4%{?dist}
 Summary:        Colourizes Haskell code
 
 Group:          Development/Tools
 License:        GPLv2+
-URL:            http://www.cs.york.ac.uk/fp/darcs/hscolour/
+# BEGIN cabal2spec
+URL:            http://hackage.haskell.org/package/%{name}
 Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
 ExclusiveArch:  %{ghc_arches}
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros >= 0.13.5
-%if %{undefined without_hscolour}
-BuildRequires:  hscolour
-%endif
+BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
 BuildRequires:  ghc-containers-prof
 
 %description
@@ -44,17 +47,34 @@ BuildRequires:  ghc-containers-prof
 %ghc_lib_install
 
 
+# library subpackage
+%ghc_package
+
+%ghc_description
+
+
+# devel subpackage
+%ghc_devel_package
+
+%ghc_devel_description
+
+
+%ghc_devel_post_postun
+
+
 %files
-%defattr(-,root,root,-)
 %doc LICENCE-GPL
 %attr(755,root,root) %{_bindir}/HsColour
 %{_datadir}/%{name}-%{version}
 
 
-%ghc_binlib_package
+%ghc_files
 
 
 %changelog
+* Mon Jan 23 2012 Jens Petersen <petersen at redhat.com> - 1.19-4
+- update to cabal2spec-0.25.2
+
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.19-3.2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 


More information about the scm-commits mailing list