[ghc-glade] update to new simplified Haskell Packaging Guidelines
Jens Petersen
petersen at fedoraproject.org
Fri Jun 7 03:27:25 UTC 2013
commit 482860c076d8fb9acf5a40e0c72c25ee8ea54f4b
Author: Jens Petersen <petersen at redhat.com>
Date: Fri Jun 7 12:25:51 2013 +0900
update to new simplified Haskell Packaging Guidelines
ghc-glade.spec | 53 ++++++++++++++++++++++++++++++++++-------------------
1 files changed, 34 insertions(+), 19 deletions(-)
---
diff --git a/ghc-glade.spec b/ghc-glade.spec
index 7b93657..fb517d2 100644
--- a/ghc-glade.spec
+++ b/ghc-glade.spec
@@ -1,20 +1,11 @@
# https://fedoraproject.org/wiki/Packaging:Haskell
-# https://fedoraproject.org/wiki/PackagingDrafts/Haskell
%global pkg_name glade
-%global common_summary Binding to the glade library
-
-%global common_description This library allows to load externally stored user interfaces into programs.\
-This allows alteration of the interface without recompilation of the program.\
-\
-Note that this functionality is now provided in gtk directly\
-(as of version 2.12 of the gtk+ C lib) by the Graphics.UI.Gtk.Builder module.
-
Name: ghc-%{pkg_name}
Version: 0.12.1
-Release: 9%{?dist}
-Summary: %{common_summary}
+Release: 10%{?dist}
+Summary: Binding to the glade library
License: LGPLv2+
URL: http://hackage.haskell.org/package/%{pkg_name}
@@ -25,12 +16,30 @@ BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-glib-devel
BuildRequires: ghc-gtk-devel
-# End cabal-rpm deps
-BuildRequires: libglade2-devel%{?_isa}
BuildRequires: gtk2hs-buildtools
+BuildRequires: pkgconfig(libglade-2.0)
+# End cabal-rpm deps
%description
-%{common_description}
+This library allows to load externally stored user interfaces into programs.
+This allows alteration of the interface without recompilation of the program.
+
+Note that this functionality is now provided in gtk directly
+(as of version 2.12 of the gtk+ C lib) by the Graphics.UI.Gtk.Builder module.
+
+
+%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(libglade-2.0)
+# End cabal-rpm deps
+
+%description devel
+This package provides the Haskell %{pkg_name} library development files.
%prep
@@ -47,20 +56,26 @@ BuildRequires: gtk2hs-buildtools
# move demos
rm -r $RPM_BUILD_ROOT%{_datadir}/%{pkg_name}-%{version}
-%ghc_devel_package
-Requires: libglade2-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.1-10
+- update to new simplified Haskell Packaging Guidelines
+
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.12.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
More information about the scm-commits
mailing list