a89b9b7
# generated by cabal-rpm-0.12.1
a89b9b7
# https://fedoraproject.org/wiki/Packaging:Haskell
a89b9b7
a89b9b7
%global pkg_name stringbuilder
a89b9b7
%global pkgver %{pkg_name}-%{version}
a89b9b7
a89b9b7
%bcond_without tests
a89b9b7
a89b9b7
Name:           ghc-%{pkg_name}
a89b9b7
Version:        0.5.1
a89b9b7
Release:        1%{?dist}
a89b9b7
Summary:        A writer monad for multi-line string literals
a89b9b7
a89b9b7
License:        MIT
a89b9b7
Url:            https://hackage.haskell.org/package/%{pkg_name}
a89b9b7
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
a89b9b7
a89b9b7
BuildRequires:  ghc-Cabal-devel
a89b9b7
BuildRequires:  ghc-rpm-macros
a89b9b7
# Begin cabal-rpm deps:
a89b9b7
%if %{with tests}
a89b9b7
BuildRequires:  ghc-QuickCheck-devel
a89b9b7
BuildRequires:  ghc-hspec-devel
a89b9b7
%endif
a89b9b7
# End cabal-rpm deps
a89b9b7
a89b9b7
%description
a89b9b7
A string builder can be used to construct multi-line string literals in a
a89b9b7
monadic way. This is primarily meant for test suites that use a lot of
a89b9b7
multi-line string literals, and when it really matters that the syntax is as
a89b9b7
easy on the eyes as it can get.
a89b9b7
a89b9b7
a89b9b7
%package devel
a89b9b7
Summary:        Haskell %{pkg_name} library development files
a89b9b7
Provides:       %{name}-static = %{version}-%{release}
a89b9b7
Provides:       %{name}-doc = %{version}-%{release}
a89b9b7
%if %{defined ghc_version}
a89b9b7
Requires:       ghc-compiler = %{ghc_version}
a89b9b7
Requires(post): ghc-compiler = %{ghc_version}
a89b9b7
Requires(postun): ghc-compiler = %{ghc_version}
a89b9b7
%endif
a89b9b7
Requires:       %{name}%{?_isa} = %{version}-%{release}
a89b9b7
a89b9b7
%description devel
a89b9b7
This package provides the Haskell %{pkg_name} library development files.
a89b9b7
a89b9b7
a89b9b7
%prep
a89b9b7
%setup -q -n %{pkgver}
a89b9b7
a89b9b7
a89b9b7
%build
a89b9b7
%ghc_lib_build
a89b9b7
a89b9b7
a89b9b7
%install
a89b9b7
%ghc_lib_install
a89b9b7
a89b9b7
a89b9b7
%check
a89b9b7
%cabal_test
a89b9b7
a89b9b7
a89b9b7
%post devel
a89b9b7
%ghc_pkg_recache
a89b9b7
a89b9b7
a89b9b7
%postun devel
a89b9b7
%ghc_pkg_recache
a89b9b7
a89b9b7
a89b9b7
%files -f %{name}.files
a89b9b7
%license LICENSE
a89b9b7
a89b9b7
a89b9b7
%files devel -f %{name}-devel.files
a89b9b7
a89b9b7
a89b9b7
%changelog
a89b9b7
* Thu Apr 12 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.5.1-1
a89b9b7
- spec file generated by cabal-rpm-0.12.1