35acbca
%global pkg_name glib
35acbca
35acbca
%global common_summary Haskell %{pkg_name} library
35acbca
35acbca
%global common_description Binding to the GLIB library for Gtk2Hs.
35acbca
35acbca
%global ghc_pkg_c_deps glib2-devel
35acbca
a561e24
# obsolete old gtk2hs packages
95f9ae8
%global ghc_pkg_obsoletes ghc-gconf-devel < 0.11, ghc-gstreamer-devel < 0.11, ghc-svgcairo-devel < 0.11, ghc-gtk2hs-doc < 0.11
35acbca
35acbca
Name:           ghc-%{pkg_name}
329077c
Version:        0.11.2
a561e24
Release:        3%{?dist}
35acbca
Summary:        %{common_summary}
35acbca
35acbca
Group:          System Environment/Libraries
35acbca
License:        LGPLv2+
35acbca
URL:            http://hackage.haskell.org/package/%{pkg_name}
35acbca
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
35acbca
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
35acbca
# fedora ghc archs:
35acbca
ExclusiveArch:  %{ix86} x86_64 ppc alpha
35acbca
BuildRequires:  ghc, ghc-doc, ghc-prof
6c7954a
# 0.8.2 or later for obsoletes
6c7954a
BuildRequires:  ghc-rpm-macros >= 0.8.2
35acbca
BuildRequires:  hscolour
35acbca
%{?ghc_pkg_c_deps:BuildRequires:  %{ghc_pkg_c_deps}}
35acbca
BuildRequires:  gtk2hs-buildtools
35acbca
35acbca
%description
35acbca
%{common_description}
a561e24
35acbca
This package provides the shared library.
35acbca
35acbca
35acbca
%{?ghc_lib_package}
35acbca
35acbca
35acbca
%prep
35acbca
%setup -q -n %{pkg_name}-%{version}
35acbca
35acbca
35acbca
%build
a039ca0
%ghc_lib_build
35acbca
35acbca
35acbca
%install
35acbca
rm -rf $RPM_BUILD_ROOT
35acbca
%ghc_lib_install
35acbca
35acbca
35acbca
%clean
35acbca
rm -rf $RPM_BUILD_ROOT
35acbca
35acbca
35acbca
%changelog
aa6f282
* Tue Nov 23 2010 Jens Petersen <petersen@redhat.com>
aa6f282
- obsolete ghc-gtk2hs-doc
aa6f282
a561e24
* Sat Sep 25 2010 Jens Petersen <petersen@redhat.com> - 0.11.2-3
a561e24
- obsolete ghc-gtk2hs gconf, gstreamer, and svgcairo
6c7954a
- using ghc_pkg_obsoletes from ghc-rpm-macros-0.8.2
a561e24
a039ca0
* Tue Sep  7 2010 Jens Petersen <petersen@redhat.com> - 0.11.2-2
a039ca0
- fix the build macro
a039ca0
329077c
* Mon Sep  6 2010 Jens Petersen <petersen@redhat.com> - 0.11.2-1
329077c
- update to 0.11.2
329077c
35acbca
* Thu Aug 19 2010 Jens Petersen <petersen@redhat.com> - 0.11.1-1
35acbca
- update to 0.11.1
35acbca
35acbca
* Fri Jul 16 2010 Jens Petersen <petersen@redhat.com> - 0.11.0-2
35acbca
- use ghc-rpm-macros-0.8.1 so devel provides doc
35acbca
35acbca
* Wed Jun 30 2010 Jens Petersen <petersen@redhat.com> - 0.11.0-1
35acbca
- description and license
35acbca
- buildrequires gtk2hs-buildtools
35acbca
- support hscolour
35acbca
- buildrequires glib2-devel
35acbca
35acbca
* Wed Jun 30 2010 Fedora Haskell SIG <haskell-devel@lists.fedoraproject.org> - 0.11.0-0
35acbca
- initial packaging for Fedora automatically generated by cabal2spec-0.22.1