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
Name:           ghc-%{pkg_name}
4e39bbe
Version:        0.12.2
4e39bbe
Release:        1%{?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
5ddafd2
ExclusiveArch:  %{ghc_arches}
49d4687
BuildRequires:  ghc-Cabal-devel
4e39bbe
BuildRequires:  ghc-rpm-macros %{!?without_hscolour:hscolour}
4e39bbe
# END cabal2spec
4e39bbe
BuildRequires:  glib2-devel%{?_isa}
35acbca
BuildRequires:  gtk2hs-buildtools
4e39bbe
BuildRequires:  ghc-containers-prof
4e39bbe
BuildRequires:  ghc-haskell98-prof
4e39bbe
# obsolete old gtk2hs packages
4e39bbe
Obsoletes:      ghc-gconf-devel < 0.11, ghc-gstreamer-devel < 0.11, ghc-svgcairo-devel < 0.11, ghc-gtk2hs-doc < 0.11
35acbca
35acbca
%description
35acbca
%{common_description}
a561e24
35acbca
4e39bbe
%package -n ghc-%{pkg_name}-devel
4e39bbe
Summary:        Development files for %{common_summary}
4e39bbe
Group:          Development/Libraries
4e39bbe
# BEGIN cabal2spec
4e39bbe
%{?ghc_devel_requires}
4e39bbe
Obsoletes:      ghc-%{pkg_name}-prof < %{version}-%{release}
4e39bbe
Provides:       ghc-%{pkg_name}-prof = %{version}-%{release}
4e39bbe
# END cabal2spec
4e39bbe
Requires:       glib2-devel%{?_isa}
4e39bbe
# Haskell devel dependencies are autogenerated by ghc-deps.sh
4e39bbe
4e39bbe
%description -n ghc-%{pkg_name}-devel
4e39bbe
%{common_description}
4e39bbe
4e39bbe
This package contains the development files.
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
4e39bbe
%post -n ghc-%{pkg_name}-devel
4e39bbe
%ghc_pkg_recache
4e39bbe
4e39bbe
4e39bbe
%postun -n ghc-%{pkg_name}-devel
4e39bbe
%ghc_pkg_recache
4e39bbe
4e39bbe
4e39bbe
%ghc_files COPYING
4e39bbe
4e39bbe
35acbca
%changelog
4e39bbe
* Tue Dec 27 2011 Jens Petersen <petersen@redhat.com> - 0.12.2-1
4e39bbe
- update to 0.12.2 and cabal2spec-0.25
4e39bbe
12a6a94
* Thu Oct 20 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.12.1-1.2
12a6a94
- rebuild with new gmp without compat lib
12a6a94
a2a14ee
* Tue Oct 11 2011 Peter Schiffer <pschiffe@redhat.com> - 0.12.1-1.1
a2a14ee
- rebuild with new gmp
a2a14ee
dd3d765
* Tue Sep 20 2011 Jens Petersen <petersen@redhat.com> - 0.12.1-1
dd3d765
- update to 0.12.1
4e39bbe
- add _isa suffix to gtk2-devel depends (see #723558)
dd3d765
49d4687
* Tue Jun 21 2011 Jens Petersen <petersen@redhat.com> - 0.12.0-5
49d4687
- BR ghc-Cabal-devel instead of ghc-prof (cabal2spec-0.23.1)
49d4687
f8a0169
* Thu Mar 10 2011 Fabio M. Di Nitto <fdinitto@redhat.com> - 0.12.0-4
f8a0169
- Enable build on sparcv9
f8a0169
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