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 - 0.12.3.1-7 +- update to new simplified Haskell Packaging Guidelines + * Wed Feb 13 2013 Fedora Release Engineering - 0.12.3.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild