refresh to cabal-rpm-0.12.1
This commit is contained in:
parent
b07e4e95b6
commit
74447723df
@ -1,9 +1,10 @@
|
||||
# generated by cabal-rpm-0.10.0
|
||||
# generated by cabal-rpm-0.12.1
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name persistent-sqlite
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
%bcond_with tests
|
||||
%bcond_without tests
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 2.6.3
|
||||
@ -12,7 +13,7 @@ Summary: Backend for the persistent library using sqlite3
|
||||
|
||||
License: MIT
|
||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
||||
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
@ -33,13 +34,13 @@ BuildRequires: ghc-time-devel
|
||||
BuildRequires: ghc-transformers-devel
|
||||
BuildRequires: ghc-unordered-containers-devel
|
||||
BuildRequires: glibc-devel%{?_isa}
|
||||
BuildRequires: sqlite-devel%{?_isa}
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-hspec-devel
|
||||
BuildRequires: ghc-persistent-template-devel
|
||||
BuildRequires: ghc-temporary-devel
|
||||
%endif
|
||||
# End cabal-rpm deps
|
||||
BuildRequires: sqlite-devel
|
||||
|
||||
%description
|
||||
This package includes a thin sqlite3 wrapper based on the direct-sqlite
|
||||
@ -49,15 +50,17 @@ package.
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Provides: %{name}-static = %{version}-%{release}
|
||||
Provides: %{name}-doc = %{version}-%{release}
|
||||
%if %{defined ghc_version}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
%endif
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
# Begin cabal-rpm deps:
|
||||
Requires: glibc-devel%{?_isa}
|
||||
Requires: sqlite-devel%{?_isa}
|
||||
# End cabal-rpm deps
|
||||
# Due to https://ghc.haskell.org/trac/ghc/ticket/9498
|
||||
Requires: sqlite-devel
|
||||
|
||||
%description devel
|
||||
This package provides the Haskell %{pkg_name} library development
|
||||
@ -65,7 +68,7 @@ files.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{pkg_name}-%{version} -p2
|
||||
%autosetup -n %{pkgver} -p2
|
||||
cabal-tweak-flag systemlib True
|
||||
|
||||
|
||||
@ -81,6 +84,12 @@ cabal-tweak-flag systemlib True
|
||||
%cabal_test
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user