[packages/ghc-regex-base] - up to 0.94.0.0

baggins baggins at pld-linux.org
Sun May 24 16:38:48 CEST 2020


commit 60e479b947e90d7704a5fcf31726c5fb772435f3
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun May 24 16:38:39 2020 +0200

    - up to 0.94.0.0

 ghc-8.10.patch      | 11 +++++++++++
 ghc-regex-base.spec | 22 +++++++++++++++-------
 2 files changed, 26 insertions(+), 7 deletions(-)
---
diff --git a/ghc-regex-base.spec b/ghc-regex-base.spec
index 7dd140a..a13069d 100644
--- a/ghc-regex-base.spec
+++ b/ghc-regex-base.spec
@@ -6,13 +6,14 @@
 Summary:	Interface API for regex-posix,pcre,parsec,tdfa,dfa
 Summary(pl.UTF-8):	API interfejsu dla regex-posix,pcre,parsec,tdfa,dfa
 Name:		ghc-%{pkgname}
-Version:	0.93.2
+Version:	0.94.0.0
 Release:	1
 License:	BSD
 Group:		Development/Languages
 #Source0Download: http://hackage.haskell.org/package/regex-base
 Source0:	http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{version}.tar.gz
-# Source0-md5:	e7b93b0b17eff8d3068ecb2f5d5f6ea3
+# Source0-md5:	91f7a3e19e419fb048b8babfecc1294b
+Patch0:		ghc-8.10.patch
 URL:		http://hackage.haskell.org/package/regex-base
 BuildRequires:	ghc >= 6.12.3
 BuildRequires:	ghc-array
@@ -82,6 +83,7 @@ Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
 
 %prep
 %setup -q -n %{pkgname}-%{version}
+%patch0 -p1
 
 %build
 runhaskell Setup.hs configure -v2 \
@@ -122,18 +124,24 @@ rm -rf $RPM_BUILD_ROOT
 %doc LICENSE
 %{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/HSregex-base-%{version}.o
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSregex-base-%{version}.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSregex-base-%{version}-*.so
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSregex-base-%{version}-*.a
+%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSregex-base-%{version}-*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.dyn_hi
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Base.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/*.dyn_hi
 %dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Base
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Base/*.hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Base/*.dyn_hi
 
 %files prof
 %defattr(644,root,root,755)
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSregex-base-%{version}_p.a
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Base.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHSregex-base-%{version}-*_p.a
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/*.p_hi
+%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/*.p_hi
 %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Text/Regex/Base/*.p_hi
 
 %files doc
diff --git a/ghc-8.10.patch b/ghc-8.10.patch
new file mode 100644
index 0000000..989d299
--- /dev/null
+++ b/ghc-8.10.patch
@@ -0,0 +1,11 @@
+--- regex-base-0.94.0.0/regex-base.cabal~	2001-09-09 03:46:40.000000000 +0200
++++ regex-base-0.94.0.0/regex-base.cabal	2020-05-24 16:36:55.717101489 +0200
+@@ -59,7 +59,7 @@
+     build-depends: containers >= 0.4.2.1
+                  , bytestring >= 0.9.2.1
+ 
+-  build-depends: base       >= 4.3 && < 4.14
++  build-depends: base       >= 4.3
+                , mtl        >= 1.1 && < 2.3
+                , containers >= 0.4 && < 0.7
+                , bytestring >= 0.9 && < 0.11
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc-regex-base.git/commitdiff/60e479b947e90d7704a5fcf31726c5fb772435f3



More information about the pld-cvs-commit mailing list