d102427
# generated by cabal-rpm-2.0.6
9e6b1b5
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
c1d9507
c1d9507
%global pkg_name mockery
c1d9507
%global pkgver %{pkg_name}-%{version}
c1d9507
c1d9507
%bcond_without tests
c1d9507
c1d9507
Name:           ghc-%{pkg_name}
c1d9507
Version:        0.3.5
c89c417
Release:        12%{?dist}
c1d9507
Summary:        Support functions for automated testing
c1d9507
c1d9507
License:        MIT
c1d9507
Url:            https://hackage.haskell.org/package/%{pkg_name}
0389e74
# Begin cabal-rpm sources:
c1d9507
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
0389e74
# End cabal-rpm sources
c1d9507
0389e74
# Begin cabal-rpm deps:
c1d9507
BuildRequires:  ghc-Cabal-devel
c1d9507
BuildRequires:  ghc-rpm-macros
faf4416
BuildRequires:  ghc-base-prof
faf4416
BuildRequires:  ghc-base-compat-prof
faf4416
BuildRequires:  ghc-bytestring-prof
faf4416
BuildRequires:  ghc-directory-prof
faf4416
BuildRequires:  ghc-filepath-prof
faf4416
BuildRequires:  ghc-logging-facade-prof
faf4416
BuildRequires:  ghc-temporary-prof
c1d9507
%if %{with tests}
c1d9507
BuildRequires:  ghc-hspec-devel
c1d9507
%endif
c1d9507
# End cabal-rpm deps
c1d9507
c1d9507
%description
c1d9507
Support functions for automated testing.
c1d9507
c1d9507
c1d9507
%package devel
c1d9507
Summary:        Haskell %{pkg_name} library development files
c1d9507
Provides:       %{name}-static = %{version}-%{release}
faf4416
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
c1d9507
%if %{defined ghc_version}
c1d9507
Requires:       ghc-compiler = %{ghc_version}
c1d9507
%endif
c1d9507
Requires:       %{name}%{?_isa} = %{version}-%{release}
c1d9507
c1d9507
%description devel
c1d9507
This package provides the Haskell %{pkg_name} library development files.
c1d9507
c1d9507
7c10119
%if %{with haddock}
7c10119
%package doc
7c10119
Summary:        Haskell %{pkg_name} library documentation
bb2352b
BuildArch:      noarch
7c10119
7c10119
%description doc
7c10119
This package provides the Haskell %{pkg_name} library documentation.
7c10119
%endif
7c10119
7c10119
7c10119
%if %{with ghc_prof}
7c10119
%package prof
7c10119
Summary:        Haskell %{pkg_name} profiling library
7c10119
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
bb2352b
Supplements:    (%{name}-devel and ghc-prof)
7c10119
7c10119
%description prof
7c10119
This package provides the Haskell %{pkg_name} profiling library.
7c10119
%endif
7c10119
7c10119
c1d9507
%prep
0389e74
# Begin cabal-rpm setup:
c1d9507
%setup -q -n %{pkgver}
0389e74
# End cabal-rpm setup
c1d9507
c1d9507
c1d9507
%build
0389e74
# Begin cabal-rpm build:
c1d9507
%ghc_lib_build
0389e74
# End cabal-rpm build
c1d9507
c1d9507
c1d9507
%install
0389e74
# Begin cabal-rpm install
c1d9507
%ghc_lib_install
0389e74
# End cabal-rpm install
c1d9507
c1d9507
c1d9507
%check
c1d9507
%cabal_test
c1d9507
c1d9507
c1d9507
%files -f %{name}.files
0389e74
# Begin cabal-rpm files:
c1d9507
%license LICENSE
0389e74
# End cabal-rpm files
c1d9507
c1d9507
c1d9507
%files devel -f %{name}-devel.files
c1d9507
c1d9507
7c10119
%if %{with haddock}
7c10119
%files doc -f %{name}-doc.files
bb2352b
%license LICENSE
7c10119
%endif
7c10119
7c10119
7c10119
%if %{with ghc_prof}
7c10119
%files prof -f %{name}-prof.files
7c10119
%endif
7c10119
7c10119
c1d9507
%changelog
c89c417
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-12
c89c417
- Second attempt - Rebuilt for
c89c417
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
c89c417
2836560
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-11
2836560
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2836560
578733a
* Fri Jul 17 2020 Jens Petersen <petersen@redhat.com> - 0.3.5-10
578733a
- refresh to cabal-rpm-2.0.6
578733a
bb2352b
* Thu Feb 20 2020 Jens Petersen <petersen@redhat.com> - 0.3.5-9
bb2352b
- refresh to cabal-rpm-2.0.2
bb2352b
da43aee
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-8
da43aee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
da43aee
7c10119
* Fri Aug 02 2019 Jens Petersen <petersen@redhat.com> - 0.3.5-7
7c10119
- add doc and prof subpackages (cabal-rpm-1.0.0)
7c10119
76adb9c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-6
76adb9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
76adb9c
0389e74
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.3.5-5
0389e74
- refresh to cabal-rpm-0.13
0389e74
1294aab
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-4
1294aab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
1294aab
8316a36
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 0.3.5-3
8316a36
- rebuild
8316a36
b04211d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-2
b04211d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b04211d
c1d9507
* Thu Apr 12 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.3.5-1
c1d9507
- spec file generated by cabal-rpm-0.12.1