refresh to cabal-rpm-2.0.2
This commit is contained in:
parent
cee66d6ecf
commit
4c92bb58d8
@ -1,13 +1,9 @@
|
||||
# generated by cabal-rpm-1.0.3
|
||||
# generated by cabal-rpm-2.0.2
|
||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||
|
||||
%global pkg_name prettyprinter
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
|
||||
%global _devel -%{?ghc_devel_prof}%{!?ghc_devel_prof:devel}
|
||||
|
||||
%bcond_with tests
|
||||
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 1.2.1
|
||||
Release: 2%{?dist}
|
||||
@ -23,16 +19,8 @@ Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#
|
||||
# Begin cabal-rpm deps:
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-base%{_devel}
|
||||
BuildRequires: ghc-text%{_devel}
|
||||
%if %{with tests}
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-doctest-devel
|
||||
BuildRequires: ghc-pgp-wordlist-devel
|
||||
BuildRequires: ghc-tasty-devel
|
||||
BuildRequires: ghc-tasty-hunit-devel
|
||||
BuildRequires: ghc-tasty-quickcheck-devel
|
||||
%endif
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-text-prof
|
||||
# End cabal-rpm deps
|
||||
|
||||
%description
|
||||
@ -92,10 +80,6 @@ cp -bp %{SOURCE1} %{pkg_name}.cabal
|
||||
# End cabal-rpm install
|
||||
|
||||
|
||||
%check
|
||||
%cabal_test
|
||||
|
||||
|
||||
%if 0%{?fedora} < 31 || 0%{?rhel} < 8
|
||||
%post devel
|
||||
%ghc_pkg_recache
|
||||
|
Loading…
Reference in New Issue
Block a user