Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package ghc-generically for openSUSE:Factory
checked in at 2023-04-04 21:20:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-generically (Old)
and /work/SRC/openSUSE:Factory/.ghc-generically.new.19717 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-generically"
Tue Apr 4 21:20:06 2023 rev:2 rq:1075880 version:0.1.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-generically/ghc-generically.changes
2023-01-28 18:51:55.064864875 +0100
+++
/work/SRC/openSUSE:Factory/.ghc-generically.new.19717/ghc-generically.changes
2023-04-04 21:20:17.645142079 +0200
@@ -1,0 +2,22 @@
+Thu Mar 30 17:06:50 UTC 2023 - Peter Simons <[email protected]>
+
+- Updated spec file to conform with ghc-rpm-macros-2.5.2.
+
+-------------------------------------------------------------------
+Wed Mar 15 09:15:34 UTC 2023 - Peter Simons <[email protected]>
+
+- Update generically to version 0.1.1 revision 1.
+ Upstream has revised the Cabal build instructions on Hackage.
+
+-------------------------------------------------------------------
+Fri Mar 10 12:05:51 UTC 2023 - Peter Simons <[email protected]>
+
+- Update generically to version 0.1.1.
+ # 0.1.1 -- 2023-03-10
+
+ * Backport `Eq` and `Ord` instances for `Generically1`, which were introduced
+ in `base-4.18.0.0`. To ensure that these instances are in scope when
building
+ with `base-4.17.0.0` (in which `Generically1` is defined in `base`, not
this
+ library), we also add a dependency on `base-orphans`.
+
+-------------------------------------------------------------------
Old:
----
generically-0.1.tar.gz
New:
----
generically-0.1.1.tar.gz
generically.cabal
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-generically.spec ++++++
--- /var/tmp/diff_new_pack.lrlb53/_old 2023-04-04 21:20:18.077144833 +0200
+++ /var/tmp/diff_new_pack.lrlb53/_new 2023-04-04 21:20:18.081144859 +0200
@@ -1,7 +1,7 @@
#
# spec file for package ghc-generically
#
-# 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,14 +17,20 @@
%global pkg_name generically
+%global pkgver %{pkg_name}-%{version}
Name: ghc-%{pkg_name}
-Version: 0.1
+Version: 0.1.1
Release: 0
Summary: Generically newtype to use with DerivingVia
License: BSD-3-Clause
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/1.cabal#/%{pkg_name}.cabal
BuildRequires: ghc-Cabal-devel
+BuildRequires: ghc-base-devel
+BuildRequires: ghc-base-orphans-devel
+BuildRequires: ghc-base-orphans-prof
+BuildRequires: ghc-base-prof
BuildRequires: ghc-rpm-macros
ExcludeArch: %{ix86}
@@ -42,8 +48,25 @@
%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}
+cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build
@@ -63,4 +86,9 @@
%files devel -f %{name}-devel.files
%doc CHANGELOG.md
+%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
++++++ generically-0.1.tar.gz -> generically-0.1.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/generically-0.1/CHANGELOG.md
new/generically-0.1.1/CHANGELOG.md
--- old/generically-0.1/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200
+++ new/generically-0.1.1/CHANGELOG.md 2001-09-09 03:46:40.000000000 +0200
@@ -1,3 +1,10 @@
+# 0.1.1 -- 2023-03-10
+
+* Backport `Eq` and `Ord` instances for `Generically1`, which were introduced
+ in `base-4.18.0.0`. To ensure that these instances are in scope when building
+ with `base-4.17.0.0` (in which `Generically1` is defined in `base`, not this
+ library), we also add a dependency on `base-orphans`.
+
# 0.1 -- 2022-06-15
* First version.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/generically-0.1/generically.cabal
new/generically-0.1.1/generically.cabal
--- old/generically-0.1/generically.cabal 2001-09-09 03:46:40.000000000
+0200
+++ new/generically-0.1.1/generically.cabal 2001-09-09 03:46:40.000000000
+0200
@@ -1,6 +1,6 @@
cabal-version: 1.12
name: generically
-version: 0.1
+version: 0.1.1
synopsis: Generically newtype to use with DerivingVia
description:
This is a compatibility package as @Generically@ and @Generically1@ newtypes
@@ -23,8 +23,9 @@
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
- || ==9.2.3
- || ==9.4.1
+ || ==9.2.7
+ || ==9.4.4
+ || ==9.6.1
source-repository head
type: git
@@ -33,5 +34,7 @@
library
default-language: Haskell2010
build-depends: base >=4.9 && <4.18
+ if impl(ghc >= 9.4) && !impl(ghc >= 9.6)
+ build-depends: base-orphans >=0.8.8 && <0.10
hs-source-dirs: src
exposed-modules: GHC.Generics.Generically
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/generically-0.1/src/GHC/Generics/Generically.hs
new/generically-0.1.1/src/GHC/Generics/Generically.hs
--- old/generically-0.1/src/GHC/Generics/Generically.hs 2001-09-09
03:46:40.000000000 +0200
+++ new/generically-0.1.1/src/GHC/Generics/Generically.hs 2001-09-09
03:46:40.000000000 +0200
@@ -20,6 +20,9 @@
#if MIN_VERSION_base(4,17,0)
import GHC.Generics
+#if !MIN_VERSION_base(4,18,0)
+import Data.Orphans () -- To bring Eq/Ord instances for Generically1 into scope
+#endif
#else
#if __GLASGOW_HASKELL__ >= 810
@@ -40,7 +43,7 @@
-------------------------------------------------------------------------------
-- | A type whose instances are defined generically, using the
--- 'Generic' representation.
+-- 'Generic' representation.
newtype Generically a = Generically a
instance (Generic a, Semigroup (Rep a ())) => Semigroup (Generically a) where
@@ -97,6 +100,13 @@
(<|>) :: Generically1 f a -> Generically1 f a -> Generically1 f a
Generically1 as1 <|> Generically1 as2 = Generically1 (to1 (from1 as1 <|>
from1 as2))
+instance (Generic1 f, Eq (Rep1 f a)) => Eq (Generically1 f a) where
+ Generically1 x == Generically1 y = from1 x == from1 y
+ Generically1 x /= Generically1 y = from1 x /= from1 y
+
+instance (Generic1 f, Ord (Rep1 f a)) => Ord (Generically1 f a) where
+ Generically1 x `compare` Generically1 y = from1 x `compare` from1 y
+
instance (Generic1 f, Eq1 (Rep1 f)) => Eq1 (Generically1 f) where
liftEq :: (a -> b -> Bool) -> (Generically1 f a -> Generically1 f b -> Bool)
liftEq eq (Generically1 as1) (Generically1 as2) = liftEq eq (from1 as1)
(from1 as2)
++++++ generically.cabal ++++++
cabal-version: 1.12
name: generically
version: 0.1.1
x-revision: 1
synopsis: Generically newtype to use with DerivingVia
description:
This is a compatibility package as @Generically@ and @Generically1@ newtypes
are available since @base-4.17@ in 'GHC.Generics'.
bug-reports: https://github.com/haskell-compat/generically/issues
author: Oleg Grenrus
maintainer: Oleg Grenrus <[email protected]>
copyright: 2022 Oleg Grenrus
license: BSD3
license-file: LICENSE
category: Generics
build-type: Simple
extra-source-files: CHANGELOG.md
tested-with:
GHC ==8.0.2
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.7
|| ==9.4.4
|| ==9.6.1
source-repository head
type: git
location: https://github.com/haskell-compat/generically.git
library
default-language: Haskell2010
build-depends: base >=4.9 && <4.19
if impl(ghc >= 9.4) && !impl(ghc >= 9.6)
build-depends: base-orphans >=0.8.8 && <0.10
hs-source-dirs: src
exposed-modules: GHC.Generics.Generically