|
|
b4aa17b |
# generated by cabal-rpm-0.13
|
|
|
a7e61f8 |
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%global pkg_name esqueleto
|
|
|
a7e61f8 |
%global pkgver %{pkg_name}-%{version}
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%bcond_with tests
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
Name: ghc-%{pkg_name}
|
|
|
f62c06f |
Version: 2.5.20180715
|
|
|
b4aa17b |
Release: 2%{?dist}
|
|
|
a7e61f8 |
Summary: Type-safe EDSL for SQL queries on persistent backends
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
License: BSD
|
|
|
a7e61f8 |
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
b4aa17b |
# Begin cabal-rpm sources:
|
|
|
a7e61f8 |
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
b4aa17b |
# End cabal-rpm sources
|
|
|
a7e61f8 |
|
|
|
b4aa17b |
# Begin cabal-rpm deps:
|
|
|
a7e61f8 |
BuildRequires: ghc-Cabal-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-rpm-macros
|
|
|
a7e61f8 |
BuildRequires: ghc-blaze-html-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-bytestring-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-conduit-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-monad-logger-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-persistent-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-resourcet-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-tagged-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-text-devel
|
|
|
f62c06f |
BuildRequires: ghc-time-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-transformers-devel
|
|
|
f62c06f |
BuildRequires: ghc-unliftio-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-unordered-containers-devel
|
|
|
a7e61f8 |
%if %{with tests}
|
|
|
a7e61f8 |
BuildRequires: ghc-containers-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-hspec-devel
|
|
|
f62c06f |
BuildRequires: ghc-mysql-devel
|
|
|
f62c06f |
BuildRequires: ghc-mysql-simple-devel
|
|
|
f62c06f |
BuildRequires: ghc-persistent-mysql-devel
|
|
|
f62c06f |
BuildRequires: ghc-persistent-postgresql-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-persistent-sqlite-devel
|
|
|
a7e61f8 |
BuildRequires: ghc-persistent-template-devel
|
|
|
f62c06f |
BuildRequires: ghc-postgresql-libpq-devel
|
|
|
f62c06f |
BuildRequires: ghc-postgresql-simple-devel
|
|
|
a7e61f8 |
%endif
|
|
|
a7e61f8 |
# End cabal-rpm deps
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%description
|
|
|
a7e61f8 |
'esqueleto' is a bare bones, type-safe EDSL for SQL queries that works with
|
|
|
a7e61f8 |
unmodified 'persistent' SQL backends. Its language closely resembles SQL, so
|
|
|
a7e61f8 |
you don't have to learn new concepts, just new syntax, and it's fairly easy to
|
|
|
a7e61f8 |
predict the generated SQL and optimize it for your backend. Most kinds of
|
|
|
a7e61f8 |
errors committed when writing SQL are caught as compile-time errors---although
|
|
|
a7e61f8 |
it is possible to write type-checked 'esqueleto' queries that fail at runtime.
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
'persistent' is a library for type-safe data serialization. It has many kinds
|
|
|
a7e61f8 |
of backends, such as SQL backends ('persistent-mysql', 'persistent-postgresql',
|
|
|
a7e61f8 |
'persistent-sqlite') and NoSQL backends ('persistent-mongoDB'). While
|
|
|
a7e61f8 |
'persistent' is a nice library for storing and retrieving records, including
|
|
|
a7e61f8 |
with filters, it does not try to support some of the features that are specific
|
|
|
a7e61f8 |
to SQL backends. In particular, 'esqueleto' is the recommended library for
|
|
|
a7e61f8 |
type-safe 'JOIN's on 'persistent' SQL backends. (The alternative is using raw
|
|
|
a7e61f8 |
SQL, but that's error prone and does not offer any composability.)
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
Currently, 'SELECT's, 'UPDATE's, 'INSERT's and 'DELETE's are supported.
|
|
|
a7e61f8 |
Not all SQL features are available, but most of them can be easily added
|
|
|
a7e61f8 |
(especially functions), so please open an issue or send a pull request if you
|
|
|
a7e61f8 |
need anything that is not covered by 'esqueleto' on
|
|
|
f62c06f |
<https://github.com/bitemyapp/esqueleto>.
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
The name of this library means "skeleton" in Portuguese and contains all three
|
|
|
a7e61f8 |
SQL letters in the correct order =). It was inspired by Scala's Squeryl but
|
|
|
a7e61f8 |
created from scratch.
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%package devel
|
|
|
a7e61f8 |
Summary: Haskell %{pkg_name} library development files
|
|
|
a7e61f8 |
Provides: %{name}-static = %{version}-%{release}
|
|
|
41d4816 |
Provides: %{name}-doc = %{version}-%{release}
|
|
|
41d4816 |
%if %{defined ghc_version}
|
|
|
a7e61f8 |
Requires: ghc-compiler = %{ghc_version}
|
|
|
a7e61f8 |
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
a7e61f8 |
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
41d4816 |
%endif
|
|
|
a7e61f8 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%description devel
|
|
|
a7e61f8 |
This package provides the Haskell %{pkg_name} library development files.
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%package devel-doc
|
|
|
a7e61f8 |
Summary: Haskell %{pkg_name} library development documentation
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
BuildArch: noarch
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%description devel-doc
|
|
|
a7e61f8 |
This package provides the Haskell %{pkg_name} library development
|
|
|
a7e61f8 |
documentation.
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%prep
|
|
|
a7e61f8 |
%setup -q -n %{pkgver}
|
|
|
b4aa17b |
# End cabal-rpm setup
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%build
|
|
|
b4aa17b |
# Begin cabal-rpm build:
|
|
|
a7e61f8 |
%ghc_lib_build
|
|
|
b4aa17b |
# End cabal-rpm build
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%install
|
|
|
a7e61f8 |
%ghc_lib_install
|
|
|
b4aa17b |
# End cabal-rpm install
|
|
|
a7e61f8 |
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
|
|
|
8d3288b |
%if %{undefined without_haddock}
|
|
|
a7e61f8 |
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
|
|
|
8d3288b |
%endif
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%check
|
|
|
a7e61f8 |
%cabal_test
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%post devel
|
|
|
a7e61f8 |
%ghc_pkg_recache
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%postun devel
|
|
|
a7e61f8 |
%ghc_pkg_recache
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%files -f %{name}.files
|
|
|
b4aa17b |
# Begin cabal-rpm files:
|
|
|
a7e61f8 |
%license LICENSE
|
|
|
b4aa17b |
# End cabal-rpm files
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%files devel -f %{name}-devel-nodoc.files
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
8d3288b |
%if %{undefined without_haddock}
|
|
|
a7e61f8 |
%files devel-doc -f %{name}-devel-doc.files
|
|
|
8d3288b |
%endif
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
%changelog
|
|
|
b4aa17b |
* Tue Oct 23 2018 Jens Petersen <petersen@redhat.com> - 2.5.20180715-2
|
|
|
b4aa17b |
- refresh to cabal-rpm-0.13
|
|
|
b4aa17b |
|
|
|
f62c06f |
* Mon Jul 23 2018 Jens Petersen <petersen@redhat.com> - 2.5.20180715-1
|
|
|
f62c06f |
- update to latest snapshot from github (eb76fde)
|
|
|
f62c06f |
|
|
|
9c38c42 |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.3-9
|
|
|
9c38c42 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
9c38c42 |
|
|
|
02f72d6 |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.3-8
|
|
|
02f72d6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
02f72d6 |
|
|
|
83d9164 |
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 2.5.3-7
|
|
|
83d9164 |
- rebuild
|
|
|
83d9164 |
|
|
|
58ba551 |
* Tue Nov 07 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3-6
|
|
|
58ba551 |
- rebuilt
|
|
|
58ba551 |
|
|
|
b72f749 |
* Sat Nov 04 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3-5
|
|
|
b72f749 |
- rebuilt
|
|
|
b72f749 |
|
|
|
9f68e5f |
* Sat Nov 04 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3-4
|
|
|
9f68e5f |
- rebuilt
|
|
|
9f68e5f |
|
|
|
5bc0574 |
* Mon Oct 23 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.5.3-3
|
|
|
5bc0574 |
- rebuilt
|
|
|
5bc0574 |
|
|
|
a7e61f8 |
* Wed Sep 06 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.5.3-2
|
|
|
a7e61f8 |
- Split documentation into separate subpackage.
|
|
|
a7e61f8 |
- Update to latest spec template.
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
* Fri Jul 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.5.3-1
|
|
|
a7e61f8 |
- Update to latest release.
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
* Fri Jul 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.4.3-5
|
|
|
a7e61f8 |
- Bump for Fedora 26.
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
* Sat Dec 17 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.4.3-4
|
|
|
a7e61f8 |
- Update release to be newer than previous builds
|
|
|
a7e61f8 |
|
|
|
a7e61f8 |
* Sat Dec 17 2016 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 2.4.3-1
|
|
|
a7e61f8 |
- spec file generated by cabal-rpm-0.10.0
|