a5eefc8
# https://fedoraproject.org/wiki/Packaging:Haskell
a5eefc8
a5eefc8
%global pkg_name dbus
a5eefc8
a5eefc8
Name:           ghc-%{pkg_name}
c839120
Version:        0.10.7
c839120
Release:        1%{?dist}
0960e49
Summary:        Haskell client library for the D-Bus IPC system
a5eefc8
a5eefc8
License:        GPLv3+
a5eefc8
URL:            http://hackage.haskell.org/package/%{pkg_name}
a5eefc8
Source0:        http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
a5eefc8
a5eefc8
BuildRequires:  ghc-Cabal-devel
a5eefc8
BuildRequires:  ghc-rpm-macros
0960e49
# Begin cabal-rpm deps:
a5eefc8
BuildRequires:  ghc-bytestring-devel
a5eefc8
BuildRequires:  ghc-cereal-devel
a5eefc8
BuildRequires:  ghc-containers-devel
a5eefc8
BuildRequires:  ghc-libxml-sax-devel
a5eefc8
BuildRequires:  ghc-network-devel
a5eefc8
BuildRequires:  ghc-parsec-devel
a5eefc8
BuildRequires:  ghc-random-devel
a5eefc8
BuildRequires:  ghc-text-devel
a5eefc8
BuildRequires:  ghc-transformers-devel
a5eefc8
BuildRequires:  ghc-unix-devel
a5eefc8
BuildRequires:  ghc-vector-devel
a5eefc8
BuildRequires:  ghc-xml-types-devel
0960e49
# End cabal-rpm deps
a5eefc8
a5eefc8
%description
0960e49
D-Bus is a simple, message-based protocol for inter-process communication,
0960e49
which allows applications to interact with other parts of the machine and the
0960e49
user's session using remote procedure calls.
0960e49
0960e49
This library is an implementation of the D-Bus protocol in Haskell. It can be
0960e49
used to add D-Bus support to Haskell applications, without the awkward
0960e49
interfaces common to foreign bindings.
0960e49
0960e49
0960e49
%package devel
0960e49
Summary:        Haskell %{pkg_name} library development files
0960e49
Requires:       ghc-compiler = %{ghc_version}
0960e49
Requires(post): ghc-compiler = %{ghc_version}
0960e49
Requires(postun): ghc-compiler = %{ghc_version}
0960e49
Requires:       %{name}%{?_isa} = %{version}-%{release}
0960e49
0960e49
%description devel
0960e49
This package provides the development files for the Haskell %{pkg_name} library.
0960e49
a5eefc8
a5eefc8
%prep
a5eefc8
%setup -q -n %{pkg_name}-%{version}
a5eefc8
0960e49
a5eefc8
%build
a5eefc8
%ghc_lib_build
a5eefc8
0960e49
a5eefc8
%install
a5eefc8
%ghc_lib_install
a5eefc8
a5eefc8
0960e49
%post devel
0960e49
%ghc_pkg_recache
0960e49
0960e49
0960e49
%postun devel
0960e49
%ghc_pkg_recache
a5eefc8
a5eefc8
0960e49
%files -f %{name}.files
0960e49
%doc license.txt
0960e49
0960e49
0960e49
%files devel -f %{name}-devel.files
a5eefc8
%doc examples
a5eefc8
0960e49
a5eefc8
%changelog
c839120
* Mon Mar 17 2014 Dan Callaghan <dcallagh@redhat.com> - 0.10.7-1
c839120
- upstream release 0.10.7
c839120
3eb2ef2
* Thu Feb 20 2014 Dan Callaghan <dcallagh@redhat.com> - 0.10.6-2
3eb2ef2
- rebuilt for updated ghc-libxml-sax
3eb2ef2
4c9621c
* Wed Feb 19 2014 Dan Callaghan <dcallagh@redhat.com> - 0.10.6-1
4c9621c
- upstream release 0.10.6 (again no effective changes, just more relaxing of 
4c9621c
  version requirements)
4c9621c
02514af
* Mon Feb 03 2014 Dan Callaghan <dcallagh@redhat.com> - 0.10.5-1
02514af
- upstream release 0.10.5 (no effective changes, upstream just relaxed the 
02514af
  version requirement for cereal)
02514af
0960e49
* Wed Jul 17 2013 Dan Callaghan <dcallagh@redhat.com> - 0.10.4-2
0960e49
- update for new guidelines (cabal-rpm 0.8.2)
0960e49
a5eefc8
* Mon May 13 2013 Dan Callaghan <dcallagh@redhat.com> - 0.10.4-1
a5eefc8
- initial version