Blame SPECS/ghc-hspec.spec

fb03c2
# generated by cabal-rpm-0.12.1
fb03c2
# https://fedoraproject.org/wiki/Packaging:Haskell
fb03c2
fb03c2
%global pkg_name hspec
fb03c2
%global pkgver %{pkg_name}-%{version}
fb03c2
fb03c2
%bcond_with tests
fb03c2
fb03c2
Name:           ghc-%{pkg_name}
fb03c2
Version:        2.4.4
fb03c2
Release:        3%{?dist}
fb03c2
Summary:        A Testing Framework for Haskell
fb03c2
fb03c2
License:        MIT
fb03c2
Url:            https://hackage.haskell.org/package/%{pkg_name}
fb03c2
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
fb03c2
fb03c2
BuildRequires:  ghc-Cabal-devel
fb03c2
BuildRequires:  ghc-rpm-macros
fb03c2
# Begin cabal-rpm deps:
fb03c2
BuildRequires:  ghc-HUnit-devel
fb03c2
BuildRequires:  ghc-QuickCheck-devel
fb03c2
BuildRequires:  ghc-call-stack-devel
fb03c2
BuildRequires:  ghc-hspec-core-devel
fb03c2
BuildRequires:  ghc-hspec-discover-devel
fb03c2
BuildRequires:  ghc-hspec-expectations-devel
fb03c2
BuildRequires:  ghc-transformers-devel
fb03c2
%if %{with tests}
fb03c2
BuildRequires:  ghc-directory-devel
fb03c2
BuildRequires:  ghc-hspec-meta-devel
fb03c2
BuildRequires:  ghc-stringbuilder-devel
fb03c2
%endif
fb03c2
# End cabal-rpm deps
fb03c2
fb03c2
%description
fb03c2
Hspec is a testing framework for Haskell. It is inspired by the Ruby library
fb03c2
RSpec. Some of Hspec's distinctive features are:
fb03c2
fb03c2
* a friendly DSL for defining tests
fb03c2
fb03c2
* integration with QuickCheck, SmallCheck, and HUnit
fb03c2
fb03c2
* parallel test execution
fb03c2
fb03c2
* automatic discovery of test files
fb03c2
fb03c2
The Hspec Manual is at <http://hspec.github.io/>.
fb03c2
fb03c2
fb03c2
%package devel
fb03c2
Summary:        Haskell %{pkg_name} library development files
fb03c2
Provides:       %{name}-static = %{version}-%{release}
fb03c2
Provides:       %{name}-doc = %{version}-%{release}
fb03c2
%if %{defined ghc_version}
fb03c2
Requires:       ghc-compiler = %{ghc_version}
fb03c2
Requires(post): ghc-compiler = %{ghc_version}
fb03c2
Requires(postun): ghc-compiler = %{ghc_version}
fb03c2
%endif
fb03c2
Requires:       %{name}%{?_isa} = %{version}-%{release}
fb03c2
fb03c2
%description devel
fb03c2
This package provides the Haskell %{pkg_name} library development files.
fb03c2
fb03c2
fb03c2
%prep
fb03c2
%setup -q -n %{pkgver}
fb03c2
fb03c2
fb03c2
%build
fb03c2
%ghc_lib_build
fb03c2
fb03c2
fb03c2
%install
fb03c2
%ghc_lib_install
fb03c2
fb03c2
fb03c2
%check
fb03c2
%cabal_test
fb03c2
fb03c2
fb03c2
%post devel
fb03c2
%ghc_pkg_recache
fb03c2
fb03c2
fb03c2
%postun devel
fb03c2
%ghc_pkg_recache
fb03c2
fb03c2
fb03c2
%files -f %{name}.files
fb03c2
%license LICENSE
fb03c2
fb03c2
fb03c2
%files devel -f %{name}-devel.files
fb03c2
%doc CHANGES.markdown
fb03c2
fb03c2
fb03c2
%changelog
fb03c2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.4-3
fb03c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fb03c2
fb03c2
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 2.4.4-2
fb03c2
- rebuild
fb03c2
fb03c2
* Fri Jul 28 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 2.4.4-1
fb03c2
- spec file generated by cabal-rpm-0.11.1