[ghc-ltk] Rebuild for gtk2hs related updates modified: ghc-ltk.spec
Lakshmi Narasimhan T V
narasim at fedoraproject.org
Sun Sep 25 06:01:19 UTC 2011
commit 4af62a69c0040ea40e2f6217a7bbf83778b5d7d6
Author: Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com>
Date: Sun Sep 25 11:30:14 2011 +0530
Rebuild for gtk2hs related updates
modified: ghc-ltk.spec
ghc-ltk.spec | 44 ++++++++++++++++++++++++++++++++++++++++----
1 files changed, 40 insertions(+), 4 deletions(-)
---
diff --git a/ghc-ltk.spec b/ghc-ltk.spec
index 5dd88e9..f1f6061 100644
--- a/ghc-ltk.spec
+++ b/ghc-ltk.spec
@@ -12,10 +12,12 @@
Name: ghc-%{pkg_name}
Version: 0.10.0.4
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: %{common_summary}
Group: System Environment/Libraries
+#The cabal file states license as GPLv2 while sources specify license
+#as GPL. Hence GPL+.
License: GPL+
URL: http://hackage.haskell.org/package/%{pkg_name}
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
@@ -23,12 +25,32 @@ ExclusiveArch: %{ghc_arches}
BuildRequires: ghc-Cabal-devel
# macros for building haskell packages
BuildRequires: ghc-rpm-macros
+%if %{undefined without_hscolour}
BuildRequires: hscolour
+%endif
+# END cabal2spec
+# BR any C devel dependency here
+# list ghc-*-prof dependencies:
BuildRequires: ghc-glib-prof, ghc-gtk-prof, ghc-mtl-prof, ghc-parsec-prof, ghc-haddock-prof
%description
%{common_description}
+%package -n ghc-%{pkg_name}-devel
+Summary: Development files for %{common_summary}
+Group: Development/Libraries
+# BEGIN cabal2spec
+%{?ghc_devel_requires}
+Obsoletes: ghc-%{pkg_name}-prof < %{version}-%{release}
+Provides: ghc-%{pkg_name}-prof = %{version}-%{release}
+# END cabal2spec
+# remember to require any C devel dependency here
+# Haskell devel dependencies are autogenerated by ghc-deps.sh
+
+%description -n ghc-%{pkg_name}-devel
+%{common_description}
+
+This package contains the development files.
%prep
%setup -q -n %{pkg_name}-%{version}
@@ -42,12 +64,26 @@ BuildRequires: ghc-glib-prof, ghc-gtk-prof, ghc-mtl-prof, ghc-parsec-prof, ghc-
%ghc_lib_install
-# define the shared, devel and prof subpkgs, devel scripts,
-# and filelists: ghc-ltk.files, ghc-ltk-devel.files
-%ghc_lib_package
+%post -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+%postun -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+
+%if %{undefined ghc_without_shared}
+%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
+%endif
+
+
+%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
%changelog
+* Sun Sep 25 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.10.0.4-4
+- Rebuild for gtk2hs related updates
+- Update to cabal2spec-0.24.1
+
* Tue Jun 21 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.10.0.4-3
- Update to cabal2spec-0.23.2
More information about the scm-commits
mailing list