[packages/ghc-hashable] - completed dependencies, handle sse2,sse41 flags
qboosh
qboosh at pld-linux.org
Sat Jul 19 18:38:02 CEST 2025
commit ea5c97979e3c6ba48f82a3aec4ce78acad78d049
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jul 19 18:39:44 2025 +0200
- completed dependencies, handle sse2,sse41 flags
ghc-hashable.spec | 34 +++++++++++++++++++++++++++++-----
1 file changed, 29 insertions(+), 5 deletions(-)
---
diff --git a/ghc-hashable.spec b/ghc-hashable.spec
index 4f0f762..4214149 100644
--- a/ghc-hashable.spec
+++ b/ghc-hashable.spec
@@ -1,7 +1,15 @@
#
# Conditional build:
%bcond_without prof # profiling library
+%bcond_with sse2 # SSE2 x86 instructions
+%bcond_with sse41 # SSE4.1 x86 instructions (implies also sse2)
#
+%ifarch %{x8664} x32 pentium4
+%define with_sse2 1
+%endif
+%if %{with sse41}
+%define with_sse2 1
+%endif
%define pkgname hashable
Summary: A class for types that can be converted to a hash value
Summary(pl.UTF-8): Klasa dla typów, które można przekształcić do wartości hasza
@@ -15,19 +23,31 @@ Source0: http://hackage.haskell.org/package/%{pkgname}-%{version}/%{pkgname}-%{v
# Source0-md5: 72b9550b7f56dae4cfdd45ff5d1746a6
Patch0: ghc-8.10.patch
URL: http://hackage.haskell.org/package/hashable
-BuildRequires: ghc >= 6.12.3
-BuildRequires: ghc-base >= 4.0
+BuildRequires: ghc >= 7.4.1
+BuildRequires: ghc-base >= 4.5
BuildRequires: ghc-bytestring >= 0.9
+BuildRequires: ghc-bytestring < 0.11
+BuildRequires: ghc-deepseq >= 1.3
+BuildRequires: ghc-deepseq < 1.5
+BuildRequires: ghc-ghc-prim
+BuildRequires: ghc-text >= 0.12
+BuildRequires: ghc-text < 1.3
%if %{with prof}
-BuildRequires: ghc-prof >= 6.12.3
+BuildRequires: ghc-prof >= 7.4.1
BuildRequires: ghc-base-prof >= 4.0
BuildRequires: ghc-bytestring-prof >= 0.9
+BuildRequires: ghc-deepseq-prof >= 1.3
+BuildRequires: ghc-ghc-prim-prof
+BuildRequires: ghc-text-prof >= 0.12
%endif
BuildRequires: rpmbuild(macros) >= 1.608
Requires(post,postun): /usr/bin/ghc-pkg
%requires_eq ghc
-Requires: ghc-base >= 4.0
+Requires: ghc-base >= 4.5
Requires: ghc-bytestring >= 0.9
+Requires: ghc-deepseq >= 1.3
+Requires: ghc-ghc-prim
+Requires: ghc-text >= 0.12
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# debuginfo is not useful for ghc
@@ -55,6 +75,9 @@ Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: ghc-base-prof >= 4.0
Requires: ghc-bytestring-prof >= 0.9
+Requires: ghc-deepseq-prof >= 1.3
+Requires: ghc-ghc-prim-prof
+Requires: ghc-text-prof >= 0.12
%description prof
Profiling %{pkgname} library for GHC. Should be installed when
@@ -82,6 +105,7 @@ Dokumentacja w formacie HTML dla pakietu ghc %{pkgname}.
%build
runhaskell Setup.hs configure -v2 \
%{?with_prof:--enable-library-profiling} \
+ --flags="%{!?sse2:-sse2}%{?sse41:sse41}" \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--libexecdir=%{_libexecdir} \
@@ -118,7 +142,7 @@ rm -rf $RPM_BUILD_ROOT
%doc CHANGES.md LICENSE README.md
%{_libdir}/%{ghcdir}/package.conf.d/%{pkgname}.conf
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}
-%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHShashable-%{version}-*.so
+%attr(755,root,root) %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHShashable-%{version}-*.so
%{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHShashable-%{version}-*.a
%exclude %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/libHShashable-%{version}-*_p.a
%dir %{_libdir}/%{ghcdir}/%{pkgname}-%{version}/Data
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ghc-hashable.git/commitdiff/ea5c97979e3c6ba48f82a3aec4ce78acad78d049
More information about the pld-cvs-commit
mailing list