Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-bloomfilter for openSUSE:Factory
checked in at 2023-04-04 21:25:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-bloomfilter (Old)
and /work/SRC/openSUSE:Factory/.ghc-bloomfilter.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-bloomfilter"
Tue Apr 4 21:25:29 2023 rev:6 rq:1076517 version:2.0.1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-bloomfilter/ghc-bloomfilter.changes
2022-08-01 21:29:41.713535328 +0200
+++
/work/SRC/openSUSE:Factory/.ghc-bloomfilter.new.19717/ghc-bloomfilter.changes
2023-04-04 21:25:43.719001051 +0200
@@ -1,0 +2,8 @@
+Thu Mar 30 17:06:02 UTC 2023 - Peter Simons <[email protected]>
+
+- Updated spec file to conform with ghc-rpm-macros-2.5.2.
+
+- Add "0001-Adapt-FastShift-instances-for-Word32-to-ghc-9.4.x.patch"
+ to fix the build with ghc-9.4.4.
+
+-------------------------------------------------------------------
@@ -27 +34,0 @@
-
New:
----
0001-Adapt-FastShift-instances-for-Word32-to-ghc-9.4.x.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-bloomfilter.spec ++++++
--- /var/tmp/diff_new_pack.JOVIIM/_old 2023-04-04 21:25:44.135003412 +0200
+++ /var/tmp/diff_new_pack.JOVIIM/_new 2023-04-04 21:25:44.139003436 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-bloomfilter
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,6 +17,7 @@
%global pkg_name bloomfilter
+%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 2.0.1.0
@@ -26,17 +27,27 @@
URL: https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
Source1:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkg_name}.cabal
+Patch1: 0001-Adapt-FastShift-instances-for-Word32-to-ghc-9.4.x.patch
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-array-devel
+BuildRequires: ghc-array-prof
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-prof
BuildRequires: ghc-bytestring-devel
+BuildRequires: ghc-bytestring-prof
BuildRequires: ghc-deepseq-devel
+BuildRequires: ghc-deepseq-prof
BuildRequires: ghc-rpm-macros
ExcludeArch: %{ix86}
%if %{with tests}
BuildRequires: ghc-QuickCheck-devel
+BuildRequires: ghc-QuickCheck-prof
BuildRequires: ghc-random-devel
+BuildRequires: ghc-random-prof
BuildRequires: ghc-test-framework-devel
+BuildRequires: ghc-test-framework-prof
BuildRequires: ghc-test-framework-quickcheck2-devel
+BuildRequires: ghc-test-framework-quickcheck2-prof
%endif
%description
@@ -52,9 +63,26 @@
%description devel
This package provides the Haskell %{pkg_name} library development files.
+%package -n ghc-%{pkg_name}-doc
+Summary: Haskell %{pkg_name} library documentation
+Requires: ghc-filesystem
+BuildArch: noarch
+
+%description -n ghc-%{pkg_name}-doc
+This package provides the Haskell %{pkg_name} library documentation.
+
+%package -n ghc-%{pkg_name}-prof
+Summary: Haskell %{pkg_name} profiling library
+Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
+Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
+
+%description -n ghc-%{pkg_name}-prof
+This package provides the Haskell %{pkg_name} profiling library.
+
%prep
-%autosetup -n %{pkg_name}-%{version}
+%autosetup -p1 -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
+cabal-tweak-dep-ver base '>= 4.4 && < 4.16' '< 5'
%build
%ghc_lib_build
@@ -77,4 +105,9 @@
%files devel -f %{name}-devel.files
%doc README.markdown examples
+%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
+%license LICENSE
+
+%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
+
%changelog
++++++ 0001-Adapt-FastShift-instances-for-Word32-to-ghc-9.4.x.patch ++++++
>From 8f62d424f52cda226f5b7102f2de45e92b72b552 Mon Sep 17 00:00:00 2001
From: Peter Simons <[email protected]>
Date: Wed, 1 Feb 2023 16:03:29 +0100
Subject: [PATCH] Adapt FastShift instances for Word32 to ghc-9.4.x.
---
Data/BloomFilter/Util.hs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Data/BloomFilter/Util.hs b/Data/BloomFilter/Util.hs
index 7f695dc..6868209 100644
--- a/Data/BloomFilter/Util.hs
+++ b/Data/BloomFilter/Util.hs
@@ -40,10 +40,10 @@ class FastShift a where
instance FastShift Word32 where
{-# INLINE shiftL #-}
- shiftL (W32# x#) (I# i#) = W32# (x# `uncheckedShiftL#` i#)
+ shiftL (W32# x#) (I# i#) = W32# (x# `uncheckedShiftLWord32#` i#)
{-# INLINE shiftR #-}
- shiftR (W32# x#) (I# i#) = W32# (x# `uncheckedShiftRL#` i#)
+ shiftR (W32# x#) (I# i#) = W32# (x# `uncheckedShiftRLWord32#` i#)
instance FastShift Word64 where
{-# INLINE shiftL #-}
--
2.38.1