From bdd42688581600093807eb1e6a3f27ceafdf0e4644ebb6e15f5e3a28d72bac98 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Thu, 4 Apr 2024 13:26:08 +0000 Subject: [PATCH] Accepting request 1164595 from home:favogt:branches:GNOME:Factory - Don't recommend the gtk modules unconditionally. They already have conditional supplements. - Switch from packageand(x:y) to boolean dependencies - Use %license OBS-URL: https://build.opensuse.org/request/show/1164595 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libcanberra?expand=0&rev=77 --- baselibs.conf | 4 ++-- libcanberra.changes | 8 ++++++++ libcanberra.spec | 9 ++++----- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/baselibs.conf b/baselibs.conf index 5436fd0..eed45b6 100644 --- a/baselibs.conf +++ b/baselibs.conf @@ -2,6 +2,6 @@ libcanberra0 libcanberra-gtk0 libcanberra-gtk3-0 libcanberra-gtk2-module - supplements "packageand(libcanberra0:gtk2-)" + supplements "(libcanberra0 and gtk2-)" libcanberra-gtk3-module - supplements "packageand(libcanberra0:gtk3-)" + supplements "(libcanberra0 and gtk3-)" diff --git a/libcanberra.changes b/libcanberra.changes index 9992a45..bef79d2 100644 --- a/libcanberra.changes +++ b/libcanberra.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Apr 4 12:56:22 UTC 2024 - Fabian Vogt + +- Don't recommend the gtk modules unconditionally. They already have + conditional supplements. +- Switch from packageand(x:y) to boolean dependencies +- Use %license + ------------------------------------------------------------------- Mon Mar 4 09:03:31 UTC 2024 - Dominique Leuenberger diff --git a/libcanberra.spec b/libcanberra.spec index b6c3e37..78d139a 100644 --- a/libcanberra.spec +++ b/libcanberra.spec @@ -92,8 +92,6 @@ libcanberra from GTK+ 3 applications. %package gtk-module-common Summary: Portable sound event library -- Common Files for GTK+ Modules Group: System/Libraries -Recommends: %{name}-gtk2-module -Recommends: %{name}-gtk3-module %description gtk-module-common libcanberra is an implementation of the XDG Sound Theme and Name @@ -108,7 +106,7 @@ modules. Summary: Portable sound event library -- GTK+ 2 Module Group: System/Libraries Requires: %{name}-gtk-module-common = %{version} -Supplements: packageand(libcanberra0:gtk2) +Supplements: (libcanberra0 and gtk2) %description gtk2-module libcanberra is an implementation of the XDG Sound Theme and Name @@ -123,7 +121,7 @@ event sounds. Summary: Portable sound event library -- GTK+ 3 Module Group: System/Libraries Requires: %{name}-gtk-module-common = %{version} -Supplements: packageand(libcanberra0:gtk3) +Supplements: (libcanberra0 and gtk3) %description gtk3-module libcanberra is an implementation of the XDG Sound Theme and Name @@ -248,7 +246,8 @@ find %{buildroot} -type f -name "*.la" -delete -print %postun gtk3-0 -p /sbin/ldconfig %files -n libcanberra0 -%doc README LGPL +%doc README +%license LGPL %{_libdir}/libcanberra.so.* %dir %{_libdir}/libcanberra-%{version}/ %{_libdir}/libcanberra-%{version}/libcanberra-alsa.so