diff --git a/.gitignore b/.gitignore index ba2e657..b41f78e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ /regex-pcre-0.94.2.tar.gz /regex-pcre-0.94.4.tar.gz +/regex-pcre-0.95.0.0.tar.gz diff --git a/ghc-regex-pcre.spec b/ghc-regex-pcre.spec index 9322434..cc16383 100644 --- a/ghc-regex-pcre.spec +++ b/ghc-regex-pcre.spec @@ -5,14 +5,15 @@ %global pkgver %{pkg_name}-%{version} Name: ghc-%{pkg_name} -Version: 0.94.4 -Release: 25%{?dist} -Summary: Haskell PCRE binding +Version: 0.95.0.0 +Release: 1%{?dist} +Summary: PCRE Backend for "Text.Regex" (regex-base) License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: @@ -23,11 +24,14 @@ BuildRequires: ghc-base-prof BuildRequires: ghc-bytestring-prof BuildRequires: ghc-containers-prof BuildRequires: ghc-regex-base-prof -BuildRequires: pcre-devel +BuildRequires: pkgconfig(libpcre) # End cabal-rpm deps %description -A Haskell binding to the Perl Compatible Regular Expressions library. +This package provides a backend for the + API. + +See also for more information. %package devel @@ -39,7 +43,7 @@ Requires: ghc-compiler = %{ghc_version} %endif Requires: %{name}%{?_isa} = %{version}-%{release} # Begin cabal-rpm deps: -Requires: pcre-devel%{?_isa} +Requires: pkgconfig(libpcre) # End cabal-rpm deps %description devel @@ -70,6 +74,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -82,6 +87,7 @@ This package provides the Haskell %{pkg_name} profiling library. %install # Begin cabal-rpm install %ghc_lib_install +chmod a-x ChangeLog.md # End cabal-rpm install @@ -102,6 +108,7 @@ This package provides the Haskell %{pkg_name} profiling library. %files devel -f %{name}-devel.files +%doc ChangeLog.md %if %{with haddock} @@ -116,6 +123,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Wed Jun 10 2020 Jens Petersen - 0.95.0.0-1 +- update to 0.95.0.0 + * Tue Jan 28 2020 Fedora Release Engineering - 0.94.4-25 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild diff --git a/regex-pcre-0.95.0.0.cabal b/regex-pcre-0.95.0.0.cabal new file mode 100644 index 0000000..46728d3 --- /dev/null +++ b/regex-pcre-0.95.0.0.cabal @@ -0,0 +1,72 @@ +Cabal-Version: 1.12 +Name: regex-pcre +Version: 0.95.0.0 +x-revision: 1 + +build-type: Simple +license: BSD3 +license-file: LICENSE +copyright: Copyright (c) 2006, Christopher Kuklewicz +author: Christopher Kuklewicz +maintainer: hvr@gnu.org +bug-reports: https://github.com/hvr/regex-pcre/issues +category: Text + +synopsis: PCRE Backend for "Text.Regex" (regex-base) +description: + This package provides a backend for the API. + . + See also for more information. + +extra-source-files: + ChangeLog.md + +flag pkg-config + default: True + manual: True + description: Use @pkg-config(1)@ to locate foreign @zlib@ library. + +source-repository head + type: git + location: https://github.com/hvr/regex-pcre.git + +library + hs-source-dirs: src + exposed-modules: + Text.Regex.PCRE + Text.Regex.PCRE.Wrap + Text.Regex.PCRE.String + Text.Regex.PCRE.Sequence + Text.Regex.PCRE.ByteString + Text.Regex.PCRE.ByteString.Lazy + + other-modules: + Paths_regex_pcre + + default-language: Haskell2010 + default-extensions: + MultiParamTypeClasses + FunctionalDependencies + ForeignFunctionInterface + ScopedTypeVariables + GeneralizedNewtypeDeriving + FlexibleContexts + TypeSynonymInstances + FlexibleInstances + + build-depends: regex-base == 0.94.* + , base >= 4.3 && < 4.15 + , containers >= 0.4 && < 0.7 + , bytestring >= 0.9 && < 0.11 + , array >= 0.3 && < 0.6 + + if !impl(ghc >= 8) + build-depends: fail == 4.9.* + + if flag(pkg-config) + pkgconfig-depends: libpcre + else + extra-libraries: pcre + + ghc-options: -O2 + -Wall -fno-warn-unused-imports diff --git a/sources b/sources index 0dcbbb1..e2e41ea 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -be3794c67959f2b3b840bd026ef0b9ea regex-pcre-0.94.4.tar.gz +SHA512 (regex-pcre-0.95.0.0.tar.gz) = 7c9ed0edd0c44d7118313c298c2658858117dd89eb7956566f5bb2fb75f2aaed70d201fda4102c46206b9951013bafee654ff39ed3c4bf9c5086f6c0cc217bdb