Blame SPECS/ghc-hspec-expectations.spec

dbef53
# generated by cabal-rpm-0.12.1
dbef53
# https://fedoraproject.org/wiki/Packaging:Haskell
dbef53
dbef53
%global pkg_name hspec-expectations
dbef53
%global pkgver %{pkg_name}-%{version}
dbef53
dbef53
%bcond_with tests
dbef53
dbef53
Name:           ghc-%{pkg_name}
dbef53
Version:        0.8.2
dbef53
Release:        3%{?dist}
dbef53
Summary:        Catchy combinators for HUnit
dbef53
dbef53
License:        MIT
dbef53
Url:            https://hackage.haskell.org/package/%{pkg_name}
dbef53
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
dbef53
dbef53
BuildRequires:  ghc-Cabal-devel
dbef53
BuildRequires:  ghc-rpm-macros
dbef53
# Begin cabal-rpm deps:
dbef53
BuildRequires:  ghc-HUnit-devel
dbef53
BuildRequires:  ghc-call-stack-devel
dbef53
%if %{with tests}
dbef53
BuildRequires:  ghc-nanospec-devel
dbef53
%endif
dbef53
# End cabal-rpm deps
dbef53
dbef53
%description
dbef53
Catchy combinators for HUnit.
dbef53
dbef53
The three main primitives are shouldBe, shouldSatisfy and shouldThrow. They can
dbef53
be used with HUnit, or any framework that integrates with HUnit, like
dbef53
test-framework or Hspec.
dbef53
dbef53
dbef53
%package devel
dbef53
Summary:        Haskell %{pkg_name} library development files
dbef53
Provides:       %{name}-static = %{version}-%{release}
dbef53
Provides:       %{name}-doc = %{version}-%{release}
dbef53
%if %{defined ghc_version}
dbef53
Requires:       ghc-compiler = %{ghc_version}
dbef53
Requires(post): ghc-compiler = %{ghc_version}
dbef53
Requires(postun): ghc-compiler = %{ghc_version}
dbef53
%endif
dbef53
Requires:       %{name}%{?_isa} = %{version}-%{release}
dbef53
dbef53
%description devel
dbef53
This package provides the Haskell %{pkg_name} library development
dbef53
files.
dbef53
dbef53
dbef53
%prep
dbef53
%setup -q -n %{pkgver}
dbef53
dbef53
dbef53
%build
dbef53
%ghc_lib_build
dbef53
dbef53
dbef53
%install
dbef53
%ghc_lib_install
dbef53
dbef53
dbef53
%check
dbef53
%cabal_test
dbef53
dbef53
dbef53
%post devel
dbef53
%ghc_pkg_recache
dbef53
dbef53
dbef53
%postun devel
dbef53
%ghc_pkg_recache
dbef53
dbef53
dbef53
%files -f %{name}.files
dbef53
%license LICENSE
dbef53
dbef53
dbef53
%files devel -f %{name}-devel.files
dbef53
dbef53
dbef53
%changelog
dbef53
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.2-3
dbef53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
dbef53
dbef53
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 0.8.2-2
dbef53
- rebuild
dbef53
dbef53
* Fri Nov 10 2017 David Shea <dshea@redhat.com> - 0.8.2-2
dbef53
- spec file generated by cabal-rpm-0.11.1
dbef53
- Copy a better %%description out of the README