[haddock] Update to 2.9.4 modified: haddock.spec

narasim narasim at fedoraproject.org
Sun Dec 11 12:37:27 UTC 2011


commit d869c69fcc8747f6c7c43d155bb11d0d21f7246e
Author: Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com>
Date:   Sun Dec 11 18:07:15 2011 +0530

    Update to 2.9.4
    	modified:   haddock.spec

 haddock.spec |   71 ++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 64 insertions(+), 7 deletions(-)
---
diff --git a/haddock.spec b/haddock.spec
index b3f475c..8e3672e 100644
--- a/haddock.spec
+++ b/haddock.spec
@@ -1,31 +1,75 @@
+# For Haskell Packaging Guidelines see:
+# - https://fedoraproject.org/wiki/Packaging:Haskell
+# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
 %global pkg_name haddock
 
+# common part of summary for all the subpackages
 %global common_summary Haskell documentation tool
 
-%global common_description  A documentation-generation tool for Haskell libraries.
-
+# main description used for all the subpackages
+%global common_description A documentation-generation tool for Haskell libraries.
 
 Name:           %{pkg_name}
 Version:        2.9.4
 Release:        1%{?dist}
-Summary:        %{common_summary}
+Summary:        Haskell %{pkg_name}
 
 Group:          Development/Tools
 License:        BSD
+# BEGIN cabal2spec
 URL:            http://hackage.haskell.org/package/%{name}
 Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
 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
 BuildRequires:  ghc-ghc-paths-prof, ghc-ghc-prof, ghc-xhtml-prof
-BuildRequires:  alex, happy 
+BuildRequires:  alex, happy
 
 %description
 %{common_description}
 
 
+%if %{undefined ghc_without_shared}
+%package -n ghc-%{pkg_name}
+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}
+%{common_description}
+
+This package contains the shared library.
+%endif
+
+
+%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
 
@@ -41,7 +85,12 @@ BuildRequires:  alex, happy
 mv $RPM_BUILD_ROOT%{_bindir}/%{name}{,-%{version}}
 
 
-%ghc_binlib_package
+%post -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+
+%postun -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
 
 
 %files
@@ -51,8 +100,16 @@ mv $RPM_BUILD_ROOT%{_bindir}/%{name}{,-%{version}}
 %{_datadir}/%{name}-%{version}
 
 
+%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
-* Thu Nov 17 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 2.9.4-1
+* Sun Dec 11 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 2.9.4-1
 - Upgrade to 2.9.4
 
 * Fri Oct 21 2011 Marcela Mašláňová <mmaslano at redhat.com> - 2.9.2-3.2


More information about the scm-commits mailing list