[leksah] Rebuild for ghc-hslogger update to 1.1.5 modified: leksah.spec

Lakshmi Narasimhan T V narasim at fedoraproject.org
Sun Aug 28 05:33:30 UTC 2011


commit 99f2a63f5820536f836203c06fc8e78d6beaff50
Author: Lakshmi Narasimhan <lakshminaras2002 at gmail.com>
Date:   Sun Aug 28 11:02:58 2011 +0530

    Rebuild for ghc-hslogger update to 1.1.5
    	modified:   leksah.spec

 leksah.spec |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 60 insertions(+), 7 deletions(-)
---
diff --git a/leksah.spec b/leksah.spec
index cfaccbf..fb63ab3 100644
--- a/leksah.spec
+++ b/leksah.spec
@@ -16,21 +16,22 @@ Haskell written in Haskell. Leksah uses GTK+ as GUI Toolkit.
 
 Name:           %{pkg_name}
 Version:        0.10.0.4
-Release:        3%{?dist}
+Release:        4%{?dist}
 Summary:        Haskell IDE
 Group:          Development/Tools
 # LICENSE file is GPLv2 while sources only mention GPL, hence GPL+.
 License:        GPL+
 URL:            http://hackage.haskell.org/package/%{name}
-# all sources
 Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
 Source1:        %{name}.desktop
-# arches
 ExclusiveArch:  %{ghc_arches}
 BuildRequires:  ghc-Cabal-devel
 BuildRequires:  ghc-rpm-macros
 BuildRequires:  hscolour
-BuildRequires :  ghc-Cabal-prof, ghc-directory-prof, ghc-gtksourceview2-prof, ghc-old-time-prof, ghc-process-leksah-prof, ghc-regex-tdfa-prof, ghc-utf8-string-prof, ghc-time-prof, ghc-ltk-prof, ghc-binary-shared-prof, ghc-deepseq-prof, ghc-hslogger-prof, ghc-leksah-server-prof, ghc-network-prof, ghc-ghc-prof, ghc-strict-prof
+# END: cabal2spec-0.24
+# BR any C devel dependency here
+# list ghc-*-prof dependencies:
+BuildRequires:  ghc-Cabal-prof, ghc-directory-prof, ghc-gtksourceview2-prof, ghc-old-time-prof, ghc-process-leksah-prof, ghc-regex-tdfa-prof, ghc-utf8-string-prof, ghc-time-prof, ghc-ltk-prof, ghc-binary-shared-prof, ghc-deepseq-prof, ghc-hslogger-prof, ghc-leksah-server-prof, ghc-network-prof, ghc-ghc-prof, ghc-strict-prof
 BuildRequires: desktop-file-utils
 # all requires list
 Requires: shared-mime-info
@@ -46,6 +47,42 @@ Patch1 : leksah_dep.patch
 %{common_description}
 
 
+%if %{undefined ghc_without_shared}
+%package -n ghc-%{pkg_name}
+Summary:        Development files for %{common_summary}
+Group:          Development/Libraries
+# BEGIN: cabal2spec-0.24
+%{?ghc_devel_requires}
+Obsoletes:      ghc-%{pkg_name}-prof < %{version}-%{release}
+Provides:       ghc-%{pkg_name}-prof = %{version}-%{release}
+# END: cabal2spec-0.24
+# 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-0.24
+%{?ghc_devel_requires}
+Obsoletes:      ghc-%{pkg_name}-prof < %{version}-%{release}
+Provides:       ghc-%{pkg_name}-prof = %{version}-%{release}
+# END: cabal2spec-0.24
+# 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
 %patch1 -p1 -b .orig
@@ -62,9 +99,12 @@ install --mode=0644 -D pics/leksah.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor
 desktop-file-install --add-category="Development"  --add-category="X-DevelopmentTools" --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
 
 
-# define the shared, devel and prof subpkgs, devel scripts,
-# and filelists: ghc-leksah.files, ghc-leksah-devel.files
-%ghc_binlib_package
+%post -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
+
+
+%postun -n ghc-%{pkg_name}-devel
+%ghc_pkg_recache
 
 
 %files
@@ -82,6 +122,16 @@ desktop-file-install --add-category="Development"  --add-category="X-Development
 %attr(644,root,root) %{_datadir}/icons/hicolor/128x128/apps/leksah.png
 
 
+%if %{undefined ghc_without_shared}
+%files -n ghc-%{pkg_name} -f ghc-%{pkg_name}.files
+%defattr(-,root,root,-)
+%endif
+
+
+%files -n ghc-%{pkg_name}-devel -f ghc-%{pkg_name}-devel.files
+%defattr(-,root,root,-)
+
+
 %post
 touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
 update-desktop-database &> /dev/null || :
@@ -100,6 +150,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 
 
 %changelog
+* Sun Aug 28 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.10.0.4-4
+- Rebuild for ghc-hslogger update to 1.1.5
+
 * Sat Jul 2 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.10.0.4-3
 - Added license comment before License field.
 - Fixed vertical spacing.


More information about the scm-commits mailing list