acd6ba5
# generated by cabal-rpm-2.0.2
fd4c2e7
# https://fedoraproject.org/wiki/Packaging:Haskell
fd4c2e7
fd4c2e7
%global pkg_name mono-traversable
fd4c2e7
%global pkgver %{pkg_name}-%{version}
fd4c2e7
fd4c2e7
%bcond_with tests
fd4c2e7
fd4c2e7
Name:           ghc-%{pkg_name}
f5f9ba0
Version:        1.0.15.1
f5f9ba0
Release:        1%{?dist}
fd4c2e7
Summary:        Type classes for mapping, folding, and traversing monomorphic containers
fd4c2e7
fd4c2e7
License:        MIT
fd4c2e7
Url:            https://hackage.haskell.org/package/%{pkg_name}
72e67a4
# Begin cabal-rpm sources:
fd4c2e7
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
72e67a4
# End cabal-rpm sources
fd4c2e7
72e67a4
# Begin cabal-rpm deps:
fd4c2e7
BuildRequires:  ghc-Cabal-devel
fd4c2e7
BuildRequires:  ghc-rpm-macros
4f478d7
BuildRequires:  ghc-base-prof
4f478d7
BuildRequires:  ghc-bytestring-prof
4f478d7
BuildRequires:  ghc-containers-prof
4f478d7
BuildRequires:  ghc-hashable-prof
4f478d7
BuildRequires:  ghc-split-prof
4f478d7
BuildRequires:  ghc-text-prof
4f478d7
BuildRequires:  ghc-transformers-prof
4f478d7
BuildRequires:  ghc-unordered-containers-prof
4f478d7
BuildRequires:  ghc-vector-prof
4f478d7
BuildRequires:  ghc-vector-algorithms-prof
fd4c2e7
%if %{with tests}
fd4c2e7
BuildRequires:  ghc-HUnit-devel
fd4c2e7
BuildRequires:  ghc-QuickCheck-devel
fd4c2e7
BuildRequires:  ghc-foldl-devel
fd4c2e7
BuildRequires:  ghc-hspec-devel
fd4c2e7
BuildRequires:  ghc-semigroups-devel
fd4c2e7
%endif
fd4c2e7
# End cabal-rpm deps
fd4c2e7
fd4c2e7
%description
b15bef9
Please see the README at <https://www.stackage.org/package/mono-traversable>.
fd4c2e7
fd4c2e7
fd4c2e7
%package devel
fd4c2e7
Summary:        Haskell %{pkg_name} library development files
fd4c2e7
Provides:       %{name}-static = %{version}-%{release}
4f478d7
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
ec1245c
%if %{defined ghc_version}
fd4c2e7
Requires:       ghc-compiler = %{ghc_version}
ec1245c
%endif
fd4c2e7
Requires:       %{name}%{?_isa} = %{version}-%{release}
fd4c2e7
fd4c2e7
%description devel
fd4c2e7
This package provides the Haskell %{pkg_name} library development
fd4c2e7
files.
fd4c2e7
fd4c2e7
765feee
%if %{with haddock}
765feee
%package doc
765feee
Summary:        Haskell %{pkg_name} library documentation
acd6ba5
BuildArch:      noarch
765feee
765feee
%description doc
765feee
This package provides the Haskell %{pkg_name} library documentation.
765feee
%endif
765feee
765feee
765feee
%if %{with ghc_prof}
765feee
%package prof
765feee
Summary:        Haskell %{pkg_name} profiling library
765feee
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
acd6ba5
Supplements:    (%{name}-devel and ghc-prof)
765feee
765feee
%description prof
765feee
This package provides the Haskell %{pkg_name} profiling library.
765feee
%endif
fd4c2e7
fd4c2e7
fd4c2e7
%prep
72e67a4
# Begin cabal-rpm setup:
fd4c2e7
%setup -q -n %{pkgver}
72e67a4
# End cabal-rpm setup
fd4c2e7
fd4c2e7
fd4c2e7
%build
72e67a4
# Begin cabal-rpm build:
fd4c2e7
%ghc_lib_build
72e67a4
# End cabal-rpm build
fd4c2e7
fd4c2e7
fd4c2e7
%install
72e67a4
# Begin cabal-rpm install
fd4c2e7
%ghc_lib_install
72e67a4
# End cabal-rpm install
fd4c2e7
fd4c2e7
fd4c2e7
%check
fd4c2e7
%cabal_test
fd4c2e7
fd4c2e7
acd6ba5
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
acd6ba5
%post devel
acd6ba5
%ghc_pkg_recache
acd6ba5
acd6ba5
acd6ba5
%postun devel
acd6ba5
%ghc_pkg_recache
acd6ba5
%endif
acd6ba5
acd6ba5
fd4c2e7
%files -f %{name}.files
72e67a4
# Begin cabal-rpm files:
fd4c2e7
%license LICENSE
72e67a4
# End cabal-rpm files
fd4c2e7
fd4c2e7
765feee
%files devel -f %{name}-devel.files
fd4c2e7
%doc ChangeLog.md README.md
fd4c2e7
765feee
765feee
%if %{with haddock}
765feee
%files doc -f %{name}-doc.files
acd6ba5
%license LICENSE
383ab3c
%endif
fd4c2e7
765feee
765feee
%if %{with ghc_prof}
765feee
%files prof -f %{name}-prof.files
765feee
%endif
765feee
765feee
fd4c2e7
%changelog
f5f9ba0
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 1.0.15.1-1
f5f9ba0
- update to 1.0.15.1
f5f9ba0
1d139bb
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.11.0-2
1d139bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1d139bb
1245418
* Thu Jul 25 2019 Jens Petersen <petersen@redhat.com> - 1.0.11.0-1
1245418
- update to 1.0.11.0
1245418
ee677b5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.10.0-2
ee677b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ee677b5
6bb47ed
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 1.0.10.0-1
6bb47ed
- update to 1.0.10.0
6bb47ed
72e67a4
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 1.0.8.1-3
72e67a4
- refresh to cabal-rpm-0.13
72e67a4
6a725db
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.8.1-2
6a725db
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6a725db
62566b7
* Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 1.0.8.1-1
62566b7
- update to 1.0.8.1
62566b7
9263d99
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7.0-3
9263d99
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
9263d99
a0ec017
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.7.0-2
a0ec017
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a0ec017
b15bef9
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 1.0.7.0-1
b15bef9
- update to 1.0.7.0
b15bef9
fd4c2e7
* Thu Nov  9 2017 David Shea <dshea@redhat.com> - 1.0.2-3
fd4c2e7
- spec file generated by cabal-rpm-0.11.1
fd4c2e7
- Split the documentation into a separate package