You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghc-conduit-extra/ghc-conduit-extra.spec

108 lines
2.7 KiB

# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name conduit-extra
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.1.7.0
10 years ago
Release: 1%{?dist}
Summary: Conduit adapters for common libraries
License: MIT
10 years ago
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
10 years ago
BuildRequires: ghc-attoparsec-devel
BuildRequires: ghc-blaze-builder-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-conduit-devel
10 years ago
BuildRequires: ghc-directory-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-monad-control-devel
BuildRequires: ghc-network-devel
BuildRequires: ghc-primitive-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-resourcet-devel
BuildRequires: ghc-stm-devel
BuildRequires: ghc-streaming-commons-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-transformers-base-devel
BuildRequires: ghc-transformers-devel
%if %{with tests}
BuildRequires: ghc-async-devel
BuildRequires: ghc-bytestring-builder-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-hspec-devel
%endif
# End cabal-rpm deps
%description
The conduit package itself maintains relative small dependencies. The purpose
of this package is to collect commonly used utility functions wrapping other
library dependencies, without depending on heavier-weight dependencies.
The basic idea is that this package should only depend on haskell-platform
packages and conduit.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkg_name}-%{version}
%build
%ghc_lib_build
%install
%ghc_lib_install
10 years ago
%check
%if %{with tests}
%cabal test
%endif
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%doc LICENSE
%files devel -f %{name}-devel.files
%changelog
* Wed Mar 4 2015 Jens Petersen <petersen@fedoraproject.org> - 1.1.7.0-1
10 years ago
- update to 1.1.7.0
10 years ago
* Wed Jan 28 2015 Jens Petersen <petersen@redhat.com> - 1.0.0.1-3
- update urls
* Fri Sep 12 2014 Jens Petersen <petersen@redhat.com> - 1.0.0.1-2
- disable haddock and no ghc-conduit-extra.files
* Fri Sep 12 2014 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.0.0.1-1
- spec file generated by cabal-rpm-0.9.1