From 4c92bb58d85b10c044fe4868ddaa1b13e38eaa78 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Sat, 8 Feb 2020 22:51:34 +0800 Subject: [PATCH] refresh to cabal-rpm-2.0.2 --- ghc-prettyprinter.spec | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/ghc-prettyprinter.spec b/ghc-prettyprinter.spec index db8062e..6f9555d 100644 --- a/ghc-prettyprinter.spec +++ b/ghc-prettyprinter.spec @@ -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