a5c2327
# generated by cabal-rpm-1.0.0
a5c2327
# https://fedoraproject.org/wiki/Packaging:Haskell
a5c2327
a5c2327
%global pkg_name html-conduit
a5c2327
%global pkgver %{pkg_name}-%{version}
a5c2327
a5c2327
%bcond_with tests
a5c2327
a5c2327
Name:           ghc-%{pkg_name}
a5c2327
Version:        1.3.2
a5c2327
Release:        1%{?dist}
a5c2327
Summary:        Parse HTML documents using xml-conduit datatypes
a5c2327
a5c2327
License:        MIT
a5c2327
Url:            https://hackage.haskell.org/package/%{pkg_name}
a5c2327
# Begin cabal-rpm sources:
a5c2327
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
a5c2327
# End cabal-rpm sources
a5c2327
a5c2327
# Begin cabal-rpm deps:
a5c2327
BuildRequires:  ghc-Cabal-devel
a5c2327
BuildRequires:  ghc-rpm-macros
a5c2327
BuildRequires:  ghc-attoparsec-devel
a5c2327
BuildRequires:  ghc-bytestring-devel
a5c2327
BuildRequires:  ghc-conduit-devel
a5c2327
BuildRequires:  ghc-conduit-extra-devel
a5c2327
BuildRequires:  ghc-containers-devel
a5c2327
BuildRequires:  ghc-resourcet-devel
a5c2327
BuildRequires:  ghc-text-devel
a5c2327
BuildRequires:  ghc-transformers-devel
a5c2327
BuildRequires:  ghc-xml-conduit-devel
a5c2327
BuildRequires:  ghc-xml-types-devel
a5c2327
%if %{with tests}
a5c2327
BuildRequires:  ghc-HUnit-devel
a5c2327
BuildRequires:  ghc-deepseq-devel
a5c2327
BuildRequires:  ghc-hspec-devel
a5c2327
%endif
a5c2327
# End cabal-rpm deps
a5c2327
a5c2327
%description
a5c2327
This package uses tagstream-conduit for its parser. It automatically balances
a5c2327
mismatched tags, so that there shouldn't be any parse failures. It does not
a5c2327
handle a full HTML document rendering, such as adding missing html and head
a5c2327
tags. Note that, since version 1.3.1, it uses an inlined copy of
a5c2327
tagstream-conduit with entity decoding bugfixes applied.
a5c2327
a5c2327
a5c2327
%package devel
a5c2327
Summary:        Haskell %{pkg_name} library development files
a5c2327
Provides:       %{name}-static = %{version}-%{release}
a5c2327
Provides:       %{name}-doc = %{version}-%{release}
a5c2327
%if %{defined ghc_version}
a5c2327
Requires:       ghc-compiler = %{ghc_version}
a5c2327
Requires(post): ghc-compiler = %{ghc_version}
a5c2327
Requires(postun): ghc-compiler = %{ghc_version}
a5c2327
%endif
a5c2327
Requires:       %{name}%{?_isa} = %{version}-%{release}
a5c2327
a5c2327
%description devel
a5c2327
This package provides the Haskell %{pkg_name} library development files.
a5c2327
a5c2327
a5c2327
%prep
a5c2327
# Begin cabal-rpm setup:
a5c2327
%setup -q -n %{pkgver}
a5c2327
# End cabal-rpm setup
a5c2327
a5c2327
a5c2327
%build
a5c2327
# Begin cabal-rpm build:
a5c2327
%ghc_lib_build
a5c2327
# End cabal-rpm build
a5c2327
a5c2327
a5c2327
%install
a5c2327
# Begin cabal-rpm install
a5c2327
%ghc_lib_install
a5c2327
# End cabal-rpm install
a5c2327
a5c2327
a5c2327
%check
a5c2327
%cabal_test
a5c2327
a5c2327
a5c2327
%post devel
a5c2327
%ghc_pkg_recache
a5c2327
a5c2327
a5c2327
%postun devel
a5c2327
%ghc_pkg_recache
a5c2327
a5c2327
a5c2327
%files -f %{name}.files
a5c2327
# Begin cabal-rpm files:
a5c2327
%license LICENSE
a5c2327
%license LICENSE-tagstream-conduit
a5c2327
# End cabal-rpm files
a5c2327
a5c2327
a5c2327
%files devel -f %{name}-devel.files
a5c2327
%doc ChangeLog.md README.md
a5c2327
a5c2327
a5c2327
%changelog
a5c2327
* Fri May 31 2019 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.3.2-1
a5c2327
- spec file generated by cabal-rpm-1.0.0