1a2b41d
# generated by cabal-rpm-2.0.6
f701a91
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
c3f89bf
c3f89bf
%global pkg_name persistent
c3f89bf
%global pkgver %{pkg_name}-%{version}
c3f89bf
258614e
%bcond_without tests
c3f89bf
c3f89bf
Name:           ghc-%{pkg_name}
258614e
Version:        2.10.5.2
0484a13
Release:        3%{?dist}
c3f89bf
Summary:        Type-safe, multi-backend data serialization
c3f89bf
c3f89bf
License:        MIT
c3f89bf
Url:            https://hackage.haskell.org/package/%{pkg_name}
0b7c619
# Begin cabal-rpm sources:
c3f89bf
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
0b7c619
# End cabal-rpm sources
c3f89bf
0b7c619
# Begin cabal-rpm deps:
c3f89bf
BuildRequires:  ghc-Cabal-devel
c3f89bf
BuildRequires:  ghc-rpm-macros
9e16c13
BuildRequires:  ghc-aeson-prof
9e16c13
BuildRequires:  ghc-attoparsec-prof
9e16c13
BuildRequires:  ghc-base-prof
9e16c13
BuildRequires:  ghc-base64-bytestring-prof
9e16c13
BuildRequires:  ghc-blaze-html-prof
9e16c13
BuildRequires:  ghc-bytestring-prof
9e16c13
BuildRequires:  ghc-conduit-prof
9e16c13
BuildRequires:  ghc-containers-prof
9e16c13
BuildRequires:  ghc-fast-logger-prof
9e16c13
BuildRequires:  ghc-http-api-data-prof
9e16c13
BuildRequires:  ghc-monad-logger-prof
9e16c13
BuildRequires:  ghc-mtl-prof
9e16c13
BuildRequires:  ghc-path-pieces-prof
9e16c13
BuildRequires:  ghc-resource-pool-prof
9e16c13
BuildRequires:  ghc-resourcet-prof
9e16c13
BuildRequires:  ghc-scientific-prof
9e16c13
BuildRequires:  ghc-silently-prof
9e16c13
BuildRequires:  ghc-template-haskell-prof
9e16c13
BuildRequires:  ghc-text-prof
9e16c13
BuildRequires:  ghc-time-prof
9e16c13
BuildRequires:  ghc-transformers-prof
258614e
BuildRequires:  ghc-unliftio-prof
9e16c13
BuildRequires:  ghc-unliftio-core-prof
9e16c13
BuildRequires:  ghc-unordered-containers-prof
9e16c13
BuildRequires:  ghc-vector-prof
c3f89bf
%if %{with tests}
c3f89bf
BuildRequires:  ghc-hspec-devel
c3f89bf
%endif
c3f89bf
# End cabal-rpm deps
c3f89bf
c3f89bf
%description
c3f89bf
Persistent allows us to choose among existing databases that are highly tuned
c3f89bf
for different data storage use cases, interoperate with other programming
c3f89bf
languages, and to use a safe and productive query interface, while still
c3f89bf
keeping the type safety of Haskell datatypes.
c3f89bf
c3f89bf
Persistent follows the guiding principles of type safety and concise,
c3f89bf
declarative syntax. Other nice features are database-independence, convenient
c3f89bf
data modeling, and automatic database migrations.
c3f89bf
c3f89bf
c3f89bf
%package devel
c3f89bf
Summary:        Haskell %{pkg_name} library development files
c3f89bf
Provides:       %{name}-static = %{version}-%{release}
9e16c13
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
a409b64
%if %{defined ghc_version}
c3f89bf
Requires:       ghc-compiler = %{ghc_version}
a409b64
%endif
c3f89bf
Requires:       %{name}%{?_isa} = %{version}-%{release}
c3f89bf
c3f89bf
%description devel
c3f89bf
This package provides the Haskell %{pkg_name} library development files.
c3f89bf
c3f89bf
8c4ff27
%if %{with haddock}
8c4ff27
%package doc
8c4ff27
Summary:        Haskell %{pkg_name} library documentation
ab7e450
BuildArch:      noarch
8c4ff27
8c4ff27
%description doc
8c4ff27
This package provides the Haskell %{pkg_name} library documentation.
8c4ff27
%endif
8c4ff27
c3f89bf
8c4ff27
%if %{with ghc_prof}
8c4ff27
%package prof
8c4ff27
Summary:        Haskell %{pkg_name} profiling library
8c4ff27
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
ab7e450
Supplements:    (%{name}-devel and ghc-prof)
c3f89bf
8c4ff27
%description prof
8c4ff27
This package provides the Haskell %{pkg_name} profiling library.
8c4ff27
%endif
c3f89bf
c3f89bf
c3f89bf
%prep
0b7c619
# Begin cabal-rpm setup:
c3f89bf
%setup -q -n %{pkgver}
0b7c619
# End cabal-rpm setup
c3f89bf
c3f89bf
c3f89bf
%build
0b7c619
# Begin cabal-rpm build:
c3f89bf
%ghc_lib_build
0b7c619
# End cabal-rpm build
c3f89bf
c3f89bf
c3f89bf
%install
0b7c619
# Begin cabal-rpm install
c3f89bf
%ghc_lib_install
0b7c619
# End cabal-rpm install
c3f89bf
c3f89bf
c3f89bf
%check
c3f89bf
%cabal_test
c3f89bf
c3f89bf
c3f89bf
%files -f %{name}.files
0b7c619
# Begin cabal-rpm files:
c3f89bf
%license LICENSE
0b7c619
# End cabal-rpm files
c3f89bf
c3f89bf
8c4ff27
%files devel -f %{name}-devel.files
c3f89bf
%doc ChangeLog.md README.md
c3f89bf
c3f89bf
8c4ff27
%if %{with haddock}
8c4ff27
%files doc -f %{name}-doc.files
ab7e450
%license LICENSE
8c4ff27
%endif
8c4ff27
8c4ff27
8c4ff27
%if %{with ghc_prof}
8c4ff27
%files prof -f %{name}-prof.files
72113f2
%endif
c3f89bf
c3f89bf
c3f89bf
%changelog
0484a13
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.5.2-3
0484a13
- Second attempt - Rebuilt for
0484a13
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
0484a13
108bd2f
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.10.5.2-2
108bd2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
108bd2f
258614e
* Wed Jun 10 2020 Jens Petersen <petersen@redhat.com> - 2.10.5.2-1
258614e
- update to 2.10.5.2
258614e
ab7e450
* Thu Feb 20 2020 Jens Petersen <petersen@redhat.com> - 2.9.2-3
ab7e450
- refresh to cabal-rpm-2.0.2
ab7e450
6787485
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-2
6787485
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6787485
a1c8423
* Thu Jul 25 2019 Jens Petersen <petersen@redhat.com> - 2.9.2-1
a1c8423
- update to 2.9.2
a1c8423
15bad7c
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-6
15bad7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
15bad7c
0b7c619
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 2.8.2-5
0b7c619
- refresh to cabal-rpm-0.13
0b7c619
a949826
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-4
a949826
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
a949826
ed6e09c
* Sat Jul 28 2018 Jens Petersen <petersen@redhat.com> - 2.8.2-3
ed6e09c
- revise .cabal
ed6e09c
2abe5e8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.8.2-2
2abe5e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2abe5e8
a6ffcd1
* Mon Jul 09 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.8.2-1
a6ffcd1
- update to 2.8.2
a6ffcd1
aaf3497
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.7.1-4
aaf3497
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
aaf3497
12be4a7
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 2.7.1-3
12be4a7
- rebuild
12be4a7
af9442c
* Tue Nov 07 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.1-2
af9442c
- rebuilt
af9442c
502849e
* Sat Nov 04 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.1-1
502849e
- Update to latest version.
502849e
4c98b4c
* Mon Oct 23 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.7.0-4
4c98b4c
- rebuilt
4c98b4c
c3f89bf
* Mon Sep 04 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.7.0-3
c3f89bf
- Split docs into subpackage.
c3f89bf
c3f89bf
* Sun Sep 03 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.7.0-2
c3f89bf
- Add a real description.
c3f89bf
- Update to latest spec template.
c3f89bf
c3f89bf
* Fri Jul 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.7.0-1
c3f89bf
- Update to latest version.
c3f89bf
c3f89bf
* Fri Jul 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.2.4.1-6
c3f89bf
- Bump for Fedora 26.
c3f89bf
c3f89bf
* Fri Dec 16 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.4.1-5
c3f89bf
- Bump to rebuild against new dependencies
c3f89bf
c3f89bf
* Thu Dec 15 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.4.1-4
c3f89bf
- Update release to be newer than previous builds
c3f89bf
c3f89bf
* Thu Dec 15 2016 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 2.2.4.1-1
c3f89bf
- spec file generated by cabal-rpm-0.10.0