From 1c78a442dcd514b6d14ff461b0a9f115552aa076 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 14 Feb 2020 11:50:50 +0800 Subject: [PATCH] update to 0.4.1.0 --- .gitignore | 1 + ghc-pcre-light.spec | 26 ++++++++++++++++++++------ sources | 2 +- 3 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 906f042..ef8db92 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /pcre-light-0.4.tar.gz /pcre-light-0.4.0.3.tar.gz /pcre-light-0.4.0.4.tar.gz +/pcre-light-0.4.1.0.tar.gz diff --git a/ghc-pcre-light.spec b/ghc-pcre-light.spec index 766b6bb..427b1a8 100644 --- a/ghc-pcre-light.spec +++ b/ghc-pcre-light.spec @@ -4,9 +4,11 @@ %global pkg_name pcre-light %global pkgver %{pkg_name}-%{version} +%bcond_without tests + Name: ghc-%{pkg_name} -Version: 0.4.0.4 -Release: 13%{?dist} +Version: 0.4.1.0 +Release: 1%{?dist} Summary: Portable regex library for Perl 5 compatible regular expressions License: BSD @@ -20,12 +22,17 @@ BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof -BuildRequires: pkgconfig(libpcre) +BuildRequires: pcre-devel +%if %{with tests} +BuildRequires: ghc-HUnit-devel +BuildRequires: ghc-containers-devel +BuildRequires: ghc-mtl-devel +%endif # End cabal-rpm deps %description -A small, efficient and portable regex library for Perl 5 compatible -regular expressions. +A small, efficient and portable regex library for Perl 5 compatible regular +expressions. The PCRE library is a set of functions that implement regular expression pattern matching using the same syntax and semantics as Perl 5. @@ -40,7 +47,7 @@ Requires: ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} # Begin cabal-rpm deps: -Requires: pkgconfig(libpcre) +Requires: pcre-devel%{?_isa} # End cabal-rpm deps %description devel @@ -86,6 +93,10 @@ This package provides the Haskell %{pkg_name} profiling library. # End cabal-rpm install +%check +%cabal_test + + %if 0%{?fedora} < 31 || 0%{?rhel} < 8 %post devel %ghc_pkg_recache @@ -118,6 +129,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Fri Feb 14 2020 Jens Petersen - 0.4.1.0-1 +- update to 0.4.1.0 + * Tue Jan 28 2020 Fedora Release Engineering - 0.4.0.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/sources b/sources index f9a989e..c02e2c8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4fe5f197cf1d37187218ae42f410b0d5 pcre-light-0.4.0.4.tar.gz +SHA512 (pcre-light-0.4.1.0.tar.gz) = 491d9581e4c29d1a5a3b161210b83abbc135c2d0ee4018481f4101f91c95e93d7acf0764cb464a9ffe84bed9bf8fb400f4c68441ae1be03c0aa182a9be26dc39