[ghc-MissingH] update to cabal2spec-0.25.2
Jens Petersen
petersen at fedoraproject.org
Wed Jan 4 15:10:41 UTC 2012
commit 1bc3b2795a210b216768bb510272adaee998bf02
Author: Jens Petersen <petersen at redhat.com>
Date: Thu Jan 5 00:10:35 2012 +0900
update to cabal2spec-0.25.2
ghc-MissingH.spec | 43 ++++++++++++++++++++++++++++---------------
1 files changed, 28 insertions(+), 15 deletions(-)
---
diff --git a/ghc-MissingH.spec b/ghc-MissingH.spec
index 5d616d6..567b60b 100644
--- a/ghc-MissingH.spec
+++ b/ghc-MissingH.spec
@@ -1,3 +1,7 @@
+# cabal2spec-0.25.2
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
%global pkg_name MissingH
%global common_summary Large utility library
@@ -8,7 +12,7 @@ should be extremely portable and easy to use.
Name: ghc-%{pkg_name}
Version: 1.1.1.0
-Release: 1%{?dist}.3
+Release: 2%{?dist}
Summary: %{common_summary}
Group: System Environment/Libraries
@@ -17,13 +21,21 @@ Group: System Environment/Libraries
# src/System/Time/ParseDate.hs is GPLv2 (newer parsedate is now BSD)
# all other src/ (and testsrc/) files are BSD
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-HUnit-prof, ghc-hslogger-prof, ghc-mtl-prof, ghc-network-prof, ghc-parsec-prof, ghc-regex-compat-prof, ghc-random-prof, ghc-haskell98-prof
+BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
+BuildRequires: ghc-HUnit-prof
+BuildRequires: ghc-haskell98-prof
+BuildRequires: ghc-hslogger-prof
+BuildRequires: ghc-mtl-prof
+BuildRequires: ghc-network-prof
+BuildRequires: ghc-parsec-prof
+BuildRequires: ghc-random-prof
+BuildRequires: ghc-regex-compat-prof
%description
%{common_description}
@@ -40,22 +52,23 @@ BuildRequires: ghc-HUnit-prof, ghc-hslogger-prof, ghc-mtl-prof, ghc-network-pro
%install
%ghc_lib_install
-mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}/
-install -m 644 -p TODO %{buildroot}%{_docdir}/%{name}-%{version}/TODO
-install -m 644 -p LICENSE %{buildroot}%{_docdir}/%{name}-%{version}/LICENSE
-mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}/3rd-party-licenses/
-install -m 644 -p 3rd-party-licenses/BSD %{buildroot}%{_docdir}/%{name}-%{version}/3rd-party-licenses/BSD
-install -m 644 -p 3rd-party-licenses/LGPL-2.1 %{buildroot}%{_docdir}/%{name}-%{version}/3rd-party-licenses/LGPL-2.1
-mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}/announcements/
-install -m 644 -p announcements/0.8.0.txt %{buildroot}%{_docdir}/%{name}-%{version}/announcements/0.8.0.txt
-install -m 644 -p announcements/0.9.0.txt %{buildroot}%{_docdir}/%{name}-%{version}/announcements/0.9.0.txt
-install -m 644 -p announcements/0.10.0.txt %{buildroot}%{_docdir}/%{name}-%{version}/announcements/0.10.0.txt
+
+%ghc_devel_package
+
+%ghc_devel_description
-%ghc_lib_package
+%ghc_devel_post_postun
+
+
+%ghc_files LICENSE 3rd-party-licenses
+%doc announcements TODO
%changelog
+* Wed Jan 4 2012 Jens Petersen <petersen at redhat.com> - 1.1.1.0-2
+- update to cabal2spec-0.25.2
+
* Mon Oct 24 2011 Marcela Mašláňová <mmaslano at redhat.com> - 1.1.1.0-1.3
- rebuild with new gmp without compat lib
More information about the scm-commits
mailing list