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}
8442c4e
Version:        0.12.0
9290f32
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
# fedora ghc archs:
35acbca
ExclusiveArch:  %{ix86} x86_64 ppc alpha
35acbca
BuildRequires:  ghc, ghc-doc, ghc-prof
eeb8dab
BuildRequires:  ghc-rpm-macros >= 0.7.3
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
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
%ghc_lib_install
35acbca
35acbca
35acbca
%changelog
9290f32
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.0-3
9290f32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
9290f32
019294c
* Tue Jan 18 2011 Jens Petersen <petersen@redhat.com> - 0.12.0-2
019294c
- update to cabal2spec-0.22.4
019294c
8442c4e
* Tue Nov 30 2010 Jens Petersen <petersen@redhat.com> - 0.12.0-1
8442c4e
- update to 0.12.0 and drop the Gtk2HsSetup patch
8442c4e
4916ea7
* Thu Nov 25 2010 Jens Petersen <petersen@redhat.com> - 0.11.2-4
aa6f282
- obsolete ghc-gtk2hs-doc
4916ea7
- fix build with Cabal-1.10 with ghc-glib-Gtk2HsSetup-Cabal-1.10.patch
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