ba77217
# generated by cabal-rpm-2.0.2
8f2cdda
# https://fedoraproject.org/wiki/Packaging:Haskell
8f2cdda
8f2cdda
%global pkg_name persistent-template
3f59e90
%global pkgver %{pkg_name}-%{version}
8f2cdda
3f59e90
%bcond_without tests
8f2cdda
8f2cdda
Name:           ghc-%{pkg_name}
a1274d0
Version:        2.6.0
a1274d0
Release:        1%{?dist}
8f2cdda
Summary:        Type-safe, non-relational, multi-backend persistence
8f2cdda
8f2cdda
License:        MIT
8f2cdda
Url:            https://hackage.haskell.org/package/%{pkg_name}
68f94a5
# Begin cabal-rpm sources:
3f59e90
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
ac96f5b
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
68f94a5
# End cabal-rpm sources
8f2cdda
68f94a5
# Begin cabal-rpm deps:
8f2cdda
BuildRequires:  ghc-Cabal-devel
8f2cdda
BuildRequires:  ghc-rpm-macros
029369a
BuildRequires:  ghc-aeson-prof
029369a
BuildRequires:  ghc-aeson-compat-prof
029369a
BuildRequires:  ghc-base-prof
029369a
BuildRequires:  ghc-bytestring-prof
029369a
BuildRequires:  ghc-containers-prof
029369a
BuildRequires:  ghc-http-api-data-prof
029369a
BuildRequires:  ghc-monad-control-prof
029369a
BuildRequires:  ghc-monad-logger-prof
029369a
BuildRequires:  ghc-path-pieces-prof
029369a
BuildRequires:  ghc-persistent-prof
029369a
BuildRequires:  ghc-tagged-prof
029369a
BuildRequires:  ghc-template-haskell-prof
029369a
BuildRequires:  ghc-text-prof
029369a
BuildRequires:  ghc-transformers-prof
029369a
BuildRequires:  ghc-unordered-containers-prof
8f2cdda
%if %{with tests}
8f2cdda
BuildRequires:  ghc-QuickCheck-devel
8f2cdda
BuildRequires:  ghc-hspec-devel
8f2cdda
%endif
8f2cdda
# End cabal-rpm deps
8f2cdda
8f2cdda
%description
8f2cdda
Provides Template Haskell helpers for the persistent package.
8f2cdda
8f2cdda
8f2cdda
%package devel
8f2cdda
Summary:        Haskell %{pkg_name} library development files
8f2cdda
Provides:       %{name}-static = %{version}-%{release}
029369a
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
3f59e90
%if %{defined ghc_version}
8f2cdda
Requires:       ghc-compiler = %{ghc_version}
3f59e90
%endif
8f2cdda
Requires:       %{name}%{?_isa} = %{version}-%{release}
8f2cdda
8f2cdda
%description devel
8f2cdda
This package provides the Haskell %{pkg_name} library development
8f2cdda
files.
8f2cdda
8f2cdda
084737b
%if %{with haddock}
084737b
%package doc
084737b
Summary:        Haskell %{pkg_name} library documentation
ba77217
BuildArch:      noarch
084737b
084737b
%description doc
084737b
This package provides the Haskell %{pkg_name} library
084737b
documentation.
084737b
%endif
084737b
084737b
084737b
%if %{with ghc_prof}
084737b
%package prof
084737b
Summary:        Haskell %{pkg_name} profiling library
084737b
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
ba77217
Supplements:    (%{name}-devel and ghc-prof)
084737b
084737b
%description prof
084737b
This package provides the Haskell %{pkg_name} profiling library.
084737b
%endif
084737b
084737b
8f2cdda
%prep
68f94a5
# Begin cabal-rpm setup:
3f59e90
%setup -q -n %{pkgver}
68f94a5
cp -bp %{SOURCE1} %{pkg_name}.cabal
68f94a5
# End cabal-rpm setup
8f2cdda
8f2cdda
8f2cdda
%build
68f94a5
# Begin cabal-rpm build:
8f2cdda
%ghc_lib_build
68f94a5
# End cabal-rpm build
8f2cdda
8f2cdda
8f2cdda
%install
68f94a5
# Begin cabal-rpm install
8f2cdda
%ghc_lib_install
68f94a5
# End cabal-rpm install
8f2cdda
8f2cdda
8f2cdda
%check
8f2cdda
%cabal_test
8f2cdda
8f2cdda
ba77217
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
ba77217
%post devel
ba77217
%ghc_pkg_recache
ba77217
ba77217
ba77217
%postun devel
ba77217
%ghc_pkg_recache
ba77217
%endif
ba77217
ba77217
8f2cdda
%files -f %{name}.files
68f94a5
# Begin cabal-rpm files:
8f2cdda
%license LICENSE
68f94a5
# End cabal-rpm files
8f2cdda
8f2cdda
8f2cdda
%files devel -f %{name}-devel.files
8f2cdda
%doc ChangeLog.md README.md
8f2cdda
8f2cdda
084737b
%if %{with haddock}
084737b
%files doc -f %{name}-doc.files
ba77217
%license LICENSE
084737b
%endif
084737b
084737b
084737b
%if %{with ghc_prof}
084737b
%files prof -f %{name}-prof.files
084737b
%endif
084737b
084737b
8f2cdda
%changelog
a1274d0
* Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 2.6.0-1
a1274d0
- update to 2.6.0
a1274d0
3ad8fee
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-8
3ad8fee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
3ad8fee
c2cd388
* Fri Aug 02 2019 Jens Petersen <petersen@redhat.com> - 2.5.4-7
c2cd388
- add doc and prof subpackages (cabal-rpm-1.0.0)
c2cd388
5d7f4c4
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-6
5d7f4c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5d7f4c4
68f94a5
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 2.5.4-5
68f94a5
- refresh to cabal-rpm-0.13
68f94a5
092aa84
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-4
092aa84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
092aa84
ac96f5b
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 2.5.4-3
ac96f5b
- revise .cabal
ac96f5b
2cce690
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.4-2
2cce690
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2cce690
2e1eecd
* Mon Jul 09 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.4-1
2e1eecd
- update to 2.5.4
2e1eecd
862fcfc
* Fri Mar 02 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3.1-1
862fcfc
- Update to latest version.
862fcfc
53ee122
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.3-6
53ee122
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
53ee122
681a0a7
* Fri Feb  2 2018 Jens Petersen <petersen@redhat.com> - 2.5.3-5
681a0a7
- rebuild
681a0a7
9209aef
* Tue Nov 07 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3-4
9209aef
- rebuilt
9209aef
61be857
* Sat Nov 04 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3-3
61be857
- rebuilt
61be857
f968ec6
* Sat Nov 04 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3-2
f968ec6
- rebuilt
f968ec6
862fcfc
* Mon Oct 23 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3-1
922766d
- New upstream release.
922766d
862fcfc
* Tue Sep 05 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-2
8f2cdda
- Add a proper description.
8f2cdda
862fcfc
* Fri Jul 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.2-1
8f2cdda
- Update to latest version.
8f2cdda
862fcfc
* Fri Jul 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.8-5
8f2cdda
- Bump for Fedora 26.
8f2cdda
8f2cdda
* Sat Dec 17 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.1.8-4
8f2cdda
- Update release to be newer than previous builds
8f2cdda
8f2cdda
* Sat Dec 17 2016 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 2.1.8-1
8f2cdda
- spec file generated by cabal-rpm-0.10.0