[ghc-gtksourceview2] update to cabal2spec-0.25.2
Jens Petersen
petersen at fedoraproject.org
Fri Jan 6 14:19:06 UTC 2012
commit 5eb41fa1e74960efb87c490adf1ec05def8891c9
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jan 6 23:18:50 2012 +0900
update to cabal2spec-0.25.2
ghc-gtksourceview2.spec | 30 ++++++++++++++++++++++--------
1 files changed, 22 insertions(+), 8 deletions(-)
---
diff --git a/ghc-gtksourceview2.spec b/ghc-gtksourceview2.spec
index cace35e..6e1340b 100644
--- a/ghc-gtksourceview2.spec
+++ b/ghc-gtksourceview2.spec
@@ -1,25 +1,28 @@
+# cabal2spec-0.25.2
+# https://fedoraproject.org/wiki/Packaging:Haskell
+# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
%global pkg_name gtksourceview2
%global common_summary Haskell %{pkg_name} library
%global common_description A Haskell %{pkg_name} binding.
-%global ghc_pkg_c_deps gtksourceview2-devel%{?_isa}
-
Name: ghc-%{pkg_name}
Version: 0.12.3
-Release: 1%{?dist}.2
+Release: 2%{?dist}
Summary: %{common_summary}
Group: System Environment/Libraries
License: LGPLv2+
+# 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
-%{?ghc_pkg_c_deps:BuildRequires: %{ghc_pkg_c_deps}}
+BuildRequires: ghc-rpm-macros %{!?without_hscolour:hscolour}
+# END cabal2spec
+BuildRequires: gtksourceview2-devel%{?_isa}
BuildRequires: gtk2hs-buildtools
BuildRequires: ghc-gtk-prof
@@ -40,13 +43,24 @@ BuildRequires: ghc-gtk-prof
# move demos
rm -r $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}-%{version}
-echo %doc demo >> %{name}-devel.files
-%ghc_lib_package
+%ghc_devel_package
+Requires: gtksourceview2-devel%{?_isa}
+
+%ghc_devel_description
+
+%ghc_devel_post_postun
+
+
+%ghc_files
+%doc demo
%changelog
+* Fri Jan 6 2012 Jens Petersen <petersen at redhat.com> - 0.12.3-2
+- update to cabal2spec-0.25.2
+
* Fri Oct 21 2011 Marcela Mašláňová <mmaslano at redhat.com> - 0.12.3-1.2
- rebuild with new gmp without compat lib
More information about the scm-commits
mailing list