ghc-persistent-template/ghc-persistent-template.spec

71 lines
1.6 KiB
RPMSpec

# generated by cabal-rpm-2.1.0
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global pkg_name persistent-template
%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
Version: 2.12.0.0
Release: %autorelease
Summary: Type-safe, non-relational, multi-backend persistence
License: MIT
Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-base-devel
%if %{with ghc_prof}
BuildRequires: ghc-base-prof
%endif
# End cabal-rpm deps
%description
The library has been merged into the persistent package.
%package devel
Summary: Haskell %{pkg_name} library development files
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Obsoletes: ghc-persistent-template < %{version}-%{release}
Obsoletes: ghc-persistent-template-prof < %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development
files.
%prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver}
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_lib_build_without_haddock
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_lib_install -m
mv %{buildroot}%{_ghcdocdir}{,-devel}
# End cabal-rpm install
%files devel -f %{name}-devel.files
%license LICENSE
%doc ChangeLog.md README.md
%changelog
%autochangelog