a5eefc8
# https://fedoraproject.org/wiki/Packaging:Haskell
a5eefc8
a5eefc8
%global pkg_name dbus
a5eefc8
1f59ab0
%bcond_with tests
1f59ab0
1f59ab0
# no useful debuginfo for Haskell packages without C sources
1f59ab0
%global debug_package %{nil}
1f59ab0
a5eefc8
Name:           ghc-%{pkg_name}
c839120
Version:        0.10.7
1f59ab0
Release:        3%{?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}
1f59ab0
Source0:        http://hackage.haskell.org/package/%{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
1f59ab0
%if %{with tests}
1f59ab0
BuildRequires:  ghc-QuickCheck-devel
1f59ab0
BuildRequires:  ghc-chell-devel
1f59ab0
BuildRequires:  ghc-chell-quickcheck-devel
1f59ab0
BuildRequires:  ghc-directory-devel
1f59ab0
BuildRequires:  ghc-filepath-devel
1f59ab0
BuildRequires:  ghc-process-devel
1f59ab0
%endif
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
1f59ab0
Provides:       %{name}-static = %{version}-%{release}
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
1f59ab0
This package provides the Haskell %{pkg_name} library development files.
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
1f59ab0
%check
1f59ab0
%if %{with tests}
1f59ab0
%cabal test
1f59ab0
%endif
1f59ab0
1f59ab0
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
1f59ab0
* Tue Jun 10 2014 Jens Petersen <petersen@redhat.com> - 0.10.7-3
1f59ab0
- update to cblrpm-0.8.11
1f59ab0
70129db
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.7-2
70129db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
70129db
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