[packages/ghc-regex-pcre] - updated dependencies and description
qboosh
qboosh at pld-linux.org
Mon Mar 23 19:01:31 CET 2026
commit 6f09b38af03b01c6cbb1dd9cea9183ff85230d12
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Mar 23 19:01:46 2026 +0100
- updated dependencies and description
ghc-regex-pcre.spec | 73 ++++++++++++++++++++++++++++++-----------------------
1 file changed, 41 insertions(+), 32 deletions(-)
---
diff --git a/ghc-regex-pcre.spec b/ghc-regex-pcre.spec
index e31b662..1e6c251 100644
--- a/ghc-regex-pcre.spec
+++ b/ghc-regex-pcre.spec
@@ -3,8 +3,8 @@
%bcond_without prof # profiling library
#
%define pkgname regex-pcre
-Summary: Replaces/Enhances Text.Regex
-Summary(pl.UTF-8): Rozszerzenie Text.Regex
+Summary: PCRE Backend for Text.Regex
+Summary(pl.UTF-8): Backend PCRE dla Text.Regex
Name: ghc-%{pkgname}
Version: 0.95.0.0
Release: 2
@@ -15,28 +15,38 @@ Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{v
# Source0-md5: a9dcdff506937df7fadb563a030b508b
Patch0: ghc-8.10.patch
URL: http://hackage.haskell.org/package/regex-pcre
-BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-array
-BuildRequires: ghc-base >= 3.0
-BuildRequires: ghc-bytestring
-BuildRequires: ghc-containers
-BuildRequires: ghc-regex-base >= 0.93
+BuildRequires: ghc >= 7.0.1
+BuildRequires: ghc-array >= 0.3
+BuildRequires: ghc-array < 0.6
+BuildRequires: ghc-base >= 4.3
+BuildRequires: ghc-bytestring >= 0.9
+BuildRequires: ghc-bytestring < 0.11
+BuildRequires: ghc-containers >= 0.4
+BuildRequires: ghc-containers < 0.7
+BuildRequires: ghc-regex-base >= 0.94
+BuildRequires: ghc-regex-base < 0.95
%if %{with prof}
-BuildRequires: ghc-prof >= 6.12.3
-BuildRequires: ghc-array-prof
-BuildRequires: ghc-base-prof >= 3.0
-BuildRequires: ghc-bytestring-prof
-BuildRequires: ghc-containers-prof
-BuildRequires: ghc-regex-base-prof >= 0.93
+BuildRequires: ghc-prof >= 7.0.1
+BuildRequires: ghc-array-prof >= 0.3
+BuildRequires: ghc-array-prof < 0.6
+BuildRequires: ghc-base-prof >= 4.3
+BuildRequires: ghc-bytestring-prof >= 0.9
+BuildRequires: ghc-bytestring-prof < 0.11
+BuildRequires: ghc-containers-prof >= 0.4
+BuildRequires: ghc-containers-prof < 0.7
+BuildRequires: ghc-regex-base-prof >= 0.94
+BuildRequires: ghc-regex-base-prof < 0.95
%endif
+BuildRequires: pcre-devel
+BuildRequires: pkgconfig
BuildRequires: rpmbuild(macros) >= 1.608
Requires(post,postun): /usr/bin/ghc-pkg
%requires_eq ghc
-Requires: ghc-array
-Requires: ghc-base >= 3.0
-Requires: ghc-bytestring
-Requires: ghc-containers
-Requires: ghc-regex-base >= 0.93
+Requires: ghc-array >= 0.3
+Requires: ghc-base >= 4.3
+Requires: ghc-bytestring >= 0.9
+Requires: ghc-containers >= 0.4
+Requires: ghc-regex-base >= 0.94
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
@@ -46,26 +56,25 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautocompressdoc *.haddock
%description
-The PCRE backend to accompany regex-base, see <http://www.pcre.org/>.
+This package provides a PCRE backend for the regex-base API.
%description -l pl.UTF-8
-Backend PCRE towarzyszący regex-base wykorzystujący bibliotekę PCRE
-(<http://www.pcre.org/>).
+Ten pakiet dostarcza backend PCRE dla API regex-base.
%package prof
Summary: Profiling %{pkgname} library for GHC
Summary(pl.UTF-8): Biblioteka profilująca %{pkgname} dla GHC.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: ghc-array-prof
-Requires: ghc-base-prof >= 3.0
-Requires: ghc-bytestring-prof
-Requires: ghc-containers-prof
-Requires: ghc-regex-base-prof >= 0.93
+Requires: ghc-array-prof >= 0.3
+Requires: ghc-base-prof >= 4.3
+Requires: ghc-bytestring-prof >= 0.9
+Requires: ghc-containers-prof >= 0.4
+Requires: ghc-regex-base-prof >= 0.94
%description prof
-Profiling %{pkgname} library for GHC. Should be installed when
-GHC's profiling subsystem is needed.
+Profiling %{pkgname} library for GHC. Should be installed when GHC's
+profiling subsystem is needed.
%description prof -l pl.UTF-8
Biblioteka profilująca %{pkgname} dla GHC. Powinna być zainstalowana
@@ -84,6 +93,7 @@ runhaskell Setup.hs configure -v2 \
--docdir=%{_docdir}/%{name}-%{version}
runhaskell Setup.hs build
+
runhaskell Setup.hs haddock --executables
%install
@@ -94,8 +104,7 @@ runhaskell Setup.hs copy --destdir=$RPM_BUILD_ROOT
# work around automatic haddock docs installation
%{__rm} -rf %{name}-%{version}-doc
-cp -a $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
-%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
+%{__mv} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} %{name}-%{version}-doc
runhaskell Setup.hs register \
--gen-pkg-config=$RPM_BUILD_ROOT%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
@@ -111,7 +120,7 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc %{name}-%{version}-doc/*
+%doc ChangeLog.md %{name}-%{version}-doc/*
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSregex-pcre-%{version}-*.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-regex-pcre.git/commitdiff/6f09b38af03b01c6cbb1dd9cea9183ff85230d12
More information about the pld-cvs-commit
mailing list