2018-01-24 13:11:45 +00:00
|
|
|
# generated by cabal-rpm-0.12.1
|
2017-09-06 19:22:48 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
2017-09-06 19:25:40 +00:00
|
|
|
%global pkg_name persistent-sqlite
|
2018-01-24 13:11:45 +00:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2017-09-06 19:22:48 +00:00
|
|
|
|
2018-01-24 13:11:45 +00:00
|
|
|
%bcond_without tests
|
2017-09-06 19:22:48 +00:00
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
2018-01-24 14:46:17 +00:00
|
|
|
Version: 2.6.4
|
|
|
|
Release: 1%{?dist}
|
2017-09-06 19:25:40 +00:00
|
|
|
Summary: Backend for the persistent library using sqlite3
|
2017-09-06 19:22:48 +00:00
|
|
|
|
|
|
|
License: MIT
|
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
2018-01-24 13:11:45 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
2017-09-06 19:22:48 +00:00
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-aeson-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
2017-09-06 19:25:40 +00:00
|
|
|
BuildRequires: ghc-conduit-devel
|
2017-09-06 19:22:48 +00:00
|
|
|
BuildRequires: ghc-containers-devel
|
2017-09-06 19:25:40 +00:00
|
|
|
BuildRequires: ghc-microlens-th-devel
|
2017-09-06 19:22:48 +00:00
|
|
|
BuildRequires: ghc-monad-control-devel
|
|
|
|
BuildRequires: ghc-monad-logger-devel
|
2017-09-06 19:25:40 +00:00
|
|
|
BuildRequires: ghc-old-locale-devel
|
2017-09-06 19:22:48 +00:00
|
|
|
BuildRequires: ghc-persistent-devel
|
2017-09-06 19:25:40 +00:00
|
|
|
BuildRequires: ghc-resource-pool-devel
|
|
|
|
BuildRequires: ghc-resourcet-devel
|
2017-09-06 19:22:48 +00:00
|
|
|
BuildRequires: ghc-text-devel
|
2017-09-06 19:25:40 +00:00
|
|
|
BuildRequires: ghc-time-devel
|
2017-09-06 19:22:48 +00:00
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
BuildRequires: ghc-unordered-containers-devel
|
2017-09-06 19:25:40 +00:00
|
|
|
BuildRequires: glibc-devel%{?_isa}
|
2018-01-24 13:11:45 +00:00
|
|
|
BuildRequires: sqlite-devel%{?_isa}
|
2017-09-06 19:22:48 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-hspec-devel
|
2017-09-06 19:25:40 +00:00
|
|
|
BuildRequires: ghc-persistent-template-devel
|
|
|
|
BuildRequires: ghc-temporary-devel
|
2017-09-06 19:22:48 +00:00
|
|
|
%endif
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
2017-09-06 19:25:40 +00:00
|
|
|
This package includes a thin sqlite3 wrapper based on the direct-sqlite
|
|
|
|
package.
|
2017-09-06 19:22:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
2018-01-24 13:11:45 +00:00
|
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
|
|
%if %{defined ghc_version}
|
2017-09-06 19:22:48 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2018-01-24 13:11:45 +00:00
|
|
|
%endif
|
2017-09-06 19:22:48 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2017-09-06 19:25:40 +00:00
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
Requires: glibc-devel%{?_isa}
|
2018-01-24 13:11:45 +00:00
|
|
|
Requires: sqlite-devel%{?_isa}
|
2017-09-06 19:25:40 +00:00
|
|
|
# End cabal-rpm deps
|
2017-09-06 19:22:48 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development
|
|
|
|
files.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2018-01-24 13:11:45 +00:00
|
|
|
%autosetup -n %{pkgver} -p2
|
2017-09-06 19:25:40 +00:00
|
|
|
cabal-tweak-flag systemlib True
|
2017-09-06 19:22:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%cabal_test
|
|
|
|
|
|
|
|
|
2018-01-24 13:11:45 +00:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
2017-09-06 19:22:48 +00:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2017-09-06 19:25:40 +00:00
|
|
|
%doc ChangeLog.md
|
2017-09-06 19:22:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2018-01-24 14:46:17 +00:00
|
|
|
* Wed Jan 24 2018 Jens Petersen <petersen@redhat.com> - 2.6.4-1
|
|
|
|
- update to 2.6.4
|
|
|
|
|
2017-11-07 07:49:47 +00:00
|
|
|
* Tue Nov 07 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.6.3-2
|
|
|
|
- rebuilt
|
|
|
|
|
2017-11-04 07:25:14 +00:00
|
|
|
* Sat Nov 04 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.6.3-1
|
|
|
|
- Update to latest version.
|
|
|
|
|
2017-10-23 20:21:15 +00:00
|
|
|
* Mon Oct 23 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.6.2-6
|
|
|
|
- rebuilt
|
|
|
|
|
2017-10-01 02:07:37 +00:00
|
|
|
* Sat Sep 30 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.6.2-5
|
|
|
|
- Fix small typo.
|
|
|
|
|
2017-10-01 01:48:30 +00:00
|
|
|
* Sat Sep 30 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.6.2-4
|
|
|
|
- Add sqlite3-devel to -devel Requires.
|
|
|
|
|
2017-09-30 00:10:07 +00:00
|
|
|
* Fri Sep 29 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.6.2-3
|
|
|
|
- Use pkg-config to build against system sqlite library.
|
|
|
|
|
2017-09-06 19:25:40 +00:00
|
|
|
* Tue Sep 05 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.6.2-2
|
|
|
|
- Build against system sqlite library.
|
2017-09-06 19:22:48 +00:00
|
|
|
|
2017-09-06 19:25:40 +00:00
|
|
|
* Sat Jul 22 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.6.2-1
|
2017-09-06 19:22:48 +00:00
|
|
|
- Update to latest version.
|
|
|
|
|
2017-09-06 19:25:40 +00:00
|
|
|
* Fri Jul 21 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> 2.2.1-5
|
2017-09-06 19:22:48 +00:00
|
|
|
- Bump for Fedora 26.
|
|
|
|
|
2017-09-06 19:25:40 +00:00
|
|
|
* Sat Dec 17 2016 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 2.2.1-4
|
2017-09-06 19:22:48 +00:00
|
|
|
- Update release to be newer than previous builds
|
|
|
|
|
2017-09-06 19:25:40 +00:00
|
|
|
* Sat Dec 17 2016 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 2.2.1-1
|
2017-09-06 19:22:48 +00:00
|
|
|
- spec file generated by cabal-rpm-0.10.0
|