[ghc-texmath] update to 0.5.0.4 and cabal2spec-0.25.2

Jens Petersen petersen at fedoraproject.org
Thu Jan 5 00:10:04 UTC 2012


commit 6ce2ad0c53212cdccbff3ccc3109e8c0ca3857e4
Author: Jens Petersen <petersen at redhat.com>
Date:   Thu Jan 5 09:09:58 2012 +0900

    update to 0.5.0.4 and cabal2spec-0.25.2

 .gitignore       |    1 +
 ghc-texmath.spec |   33 +++++++++++++++++++++++++--------
 sources          |    2 +-
 3 files changed, 27 insertions(+), 9 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index f795929..5f81d3f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
 /texmath-0.4.tar.gz
 /texmath-0.5.0.1.tar.gz
+/texmath-0.5.0.4.tar.gz
diff --git a/ghc-texmath.spec b/ghc-texmath.spec
index 29b47fa..7634963 100644
--- a/ghc-texmath.spec
+++ b/ghc-texmath.spec
@@ -1,3 +1,7 @@
+# cabal2spec-0.25.2
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name texmath
 
 %global common_summary Haskell %{pkg_name} library
@@ -7,19 +11,22 @@ presentation MathML. It supports basic LaTeX and AMS extensions, and it can\
 parse and apply LaTeX macros.
 
 Name:           ghc-%{pkg_name}
-Version:        0.5.0.1
-Release:        3%{?dist}.3
+Version:        0.5.0.4
+Release:        1%{?dist}
 Summary:        %{common_summary}
 
 Group:          System Environment/Libraries
 License:        GPLv2+
+# 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}
 BuildRequires:  ghc-Cabal-devel
-BuildRequires:  ghc-rpm-macros
-BuildRequires:  hscolour
-BuildRequires:  ghc-parsec-prof, ghc-syb-prof, ghc-xml-prof
+BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
+BuildRequires:  ghc-parsec-prof
+BuildRequires:  ghc-syb-prof
+BuildRequires:  ghc-xml-prof
 
 %description
 %{common_description}
@@ -36,14 +43,24 @@ BuildRequires:  ghc-parsec-prof, ghc-syb-prof, ghc-xml-prof
 %install
 %ghc_lib_install
 
-# remove tests and cgi data files
-rm -r $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}-%{version}
+rm -r %{buildroot}%{_datadir}/%{pkg_name}-%{version}/{cgi,tests}
+
+
+%ghc_devel_package
+
+%ghc_devel_description
 
 
-%ghc_lib_package
+%ghc_devel_post_postun
+
+
+%ghc_files
 
 
 %changelog
+* Thu Jan  5 2012 Jens Petersen <petersen at redhat.com> - 0.5.0.4-1
+- update to 0.5.0.4 and cabal2spec-0.25.2
+
 * Mon Oct 24 2011 Marcela Mašláňová <mmaslano at redhat.com> - 0.5.0.1-3.3
 - rebuild with new gmp without compat lib
 
diff --git a/sources b/sources
index 4354a38..9d03d7d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-a678251586117a3153be03fe7d039cb5  texmath-0.5.0.1.tar.gz
+d627f0ac3dbcfe1a607818eaa67acca3  texmath-0.5.0.4.tar.gz


More information about the scm-commits mailing list