[ghc-gtksourceview2] update to new simplified Haskell Packaging Guidelines

Jens Petersen petersen at fedoraproject.org
Fri Jun 7 03:32:57 UTC 2013


commit e9a397b348ca43da4b811aabfb071cb4c62fd366
Author: Jens Petersen <petersen at redhat.com>
Date:   Fri Jun 7 12:32:00 2013 +0900

    update to new simplified Haskell Packaging Guidelines

 ghc-gtksourceview2.spec |   49 ++++++++++++++++++++++++++++++----------------
 1 files changed, 32 insertions(+), 17 deletions(-)
---
diff --git a/ghc-gtksourceview2.spec b/ghc-gtksourceview2.spec
index 61b0448..d7cd3c3 100644
--- a/ghc-gtksourceview2.spec
+++ b/ghc-gtksourceview2.spec
@@ -1,18 +1,11 @@
 # https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
 
 %global pkg_name gtksourceview2
 
-%global common_summary Binding to the GtkSourceView library
-
-%global common_description GtkSourceView is a text widget that extends the standard GTK+ 2.x text widget\
-GtkTextView. It improves GtkTextView by implementing syntax highlighting and\
-other features typical of a source editor.
-
 Name:           ghc-%{pkg_name}
 Version:        0.12.3.1
-Release:        6%{?dist}
-Summary:        %{common_summary}
+Release:        7%{?dist}
+Summary:        Binding to the GtkSourceView library
 
 License:        LGPLv2+
 URL:            http://hackage.haskell.org/package/%{pkg_name}
@@ -24,12 +17,28 @@ BuildRequires:  ghc-rpm-macros
 BuildRequires:  ghc-glib-devel
 BuildRequires:  ghc-gtk-devel
 BuildRequires:  ghc-mtl-devel
-# End cabal-rpm deps
-BuildRequires:  gtksourceview2-devel%{?_isa}
 BuildRequires:  gtk2hs-buildtools
+BuildRequires:  pkgconfig(gtksourceview-2.0)
+# End cabal-rpm deps
 
 %description
-%{common_description}
+GtkSourceView is a text widget that extends the standard GTK+ 2.x text widget
+GtkTextView. It improves GtkTextView by implementing syntax highlighting and
+other features typical of a source editor.
+
+
+%package devel
+Summary:        Haskell %{pkg_name} library development files
+Requires:       ghc-compiler = %{ghc_version}
+Requires(post): ghc-compiler = %{ghc_version}
+Requires(postun): ghc-compiler = %{ghc_version}
+Requires:       %{name} = %{version}-%{release}
+# Begin cabal-rpm deps:
+Requires:       pkgconfig(gtksourceview-2.0)
+# End cabal-rpm deps
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
 
 
 %prep
@@ -47,19 +56,25 @@ BuildRequires:  gtk2hs-buildtools
 rm -r $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}-%{version}
 
 
-%ghc_devel_package
-Requires:  gtksourceview2-devel%{?_isa}
+%post devel
+%ghc_pkg_recache
+
 
-%ghc_devel_description
+%postun devel
+%ghc_pkg_recache
 
 
-%ghc_devel_post_postun
+%files -f %{name}.files
+%doc COPYING
 
 
-%ghc_files COPYING
+%files devel -f %{name}-devel.files
 %doc demo
 
 %changelog
+* Fri Jun 07 2013 Jens Petersen <petersen at redhat.com> - 0.12.3.1-7
+- update to new simplified Haskell Packaging Guidelines
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.3.1-6
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list