a0fcd67
# https://fedoraproject.org/wiki/Packaging:Haskell
a0fcd67
a0fcd67
%global pkg_name conduit-extra
a0fcd67
a0fcd67
%global without_haddock 1
a0fcd67
a0fcd67
Name:           ghc-%{pkg_name}
a0fcd67
Version:        1.0.0.1
95e20bc
Release:        3%{?dist}
a0fcd67
Summary:        Conduit adapters for common libraries
a0fcd67
a0fcd67
License:        MIT
95e20bc
Url:            https://hackage.haskell.org/package/%{pkg_name}
95e20bc
Source0:        https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
a0fcd67
a0fcd67
BuildRequires:  ghc-Cabal-devel
a0fcd67
BuildRequires:  ghc-rpm-macros
a0fcd67
# Begin cabal-rpm deps:
a0fcd67
BuildRequires:  ghc-conduit-devel
a0fcd67
# End cabal-rpm deps
a0fcd67
a0fcd67
%description
a0fcd67
The conduit package itself maintains relative small dependencies. The purpose
a0fcd67
of this package is to collect commonly used utility functions wrapping other
a0fcd67
library dependencies, without depending on heavier-weight dependencies.
a0fcd67
The basic idea is that this package should only depend on haskell-platform
a0fcd67
packages and conduit.
a0fcd67
a0fcd67
a0fcd67
%package devel
a0fcd67
Summary:        Haskell %{pkg_name} library development files
a0fcd67
Provides:       %{name}-static = %{version}-%{release}
a0fcd67
Requires:       ghc-compiler = %{ghc_version}
a0fcd67
Requires(post): ghc-compiler = %{ghc_version}
a0fcd67
Requires(postun): ghc-compiler = %{ghc_version}
a0fcd67
Requires:       %{name}%{?_isa} = %{version}-%{release}
a0fcd67
a0fcd67
%description devel
a0fcd67
This package provides the Haskell %{pkg_name} library development files.
a0fcd67
a0fcd67
a0fcd67
%prep
a0fcd67
%setup -q -n %{pkg_name}-%{version}
a0fcd67
a0fcd67
a0fcd67
%build
a0fcd67
%ghc_lib_build
a0fcd67
a0fcd67
a0fcd67
%install
a0fcd67
%ghc_lib_install
a0fcd67
a0fcd67
a0fcd67
%post devel
a0fcd67
%ghc_pkg_recache
a0fcd67
a0fcd67
a0fcd67
%postun devel
a0fcd67
%ghc_pkg_recache
a0fcd67
a0fcd67
a0fcd67
%files
a0fcd67
%doc LICENSE
a0fcd67
a0fcd67
a0fcd67
%files devel -f %{name}-devel.files
a0fcd67
a0fcd67
a0fcd67
%changelog
95e20bc
* Wed Jan 28 2015 Jens Petersen <petersen@redhat.com> - 1.0.0.1-3
95e20bc
- update urls
95e20bc
a0fcd67
* Fri Sep 12 2014 Jens Petersen <petersen@redhat.com> - 1.0.0.1-2
a0fcd67
- disable haddock and no ghc-conduit-extra.files
a0fcd67
a0fcd67
* Fri Sep 12 2014 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.0.0.1-1
a0fcd67
- spec file generated by cabal-rpm-0.9.1