commit 24b4c4a4cf4f3956df3ade1cb8805549302c3323c68689779bb2936cfa863b8e Author: Dominique Leuenberger Date: Fri Dec 20 08:07:08 2024 +0000 - Update to version v0.30+2: + gtk: Don't assume all GdkDisplays are GdkX11Displays. - Migrate package to obs_scm: we don't expect changes in git to happen anymore, but it's the line used across all GNOME packages. - Call autogen.sh in build section: the git checkout is not bootstrapped. - Drop libcanberra-broadway-fix.patch: part of the upstream git tree. - Pass --with-systemdunitdir=no to configure: dbus-broker newly pulls in systemd, but we have been running without those service files for like ever. With libcanberra being in maintenance only mode, there seems to be no justification to change this now. - Do not package documentation: building them requires lynx, which seems a bit exaggerated. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libcanberra?expand=0&rev=79 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..a746d84 --- /dev/null +++ b/_service @@ -0,0 +1,19 @@ + + + + git + http://git.0pointer.net/clone/libcanberra.git + master + @PARENT_TAG@+@TAG_OFFSET@ + v?(.*)(\+0)? + \1 + + + + + *.tar + zst + + + + diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..eed45b6 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1,7 @@ +libcanberra0 +libcanberra-gtk0 +libcanberra-gtk3-0 +libcanberra-gtk2-module + supplements "(libcanberra0 and gtk2-)" +libcanberra-gtk3-module + supplements "(libcanberra0 and gtk3-)" diff --git a/libcanberra-0.30+2.obscpio b/libcanberra-0.30+2.obscpio new file mode 100644 index 0000000..e370f85 --- /dev/null +++ b/libcanberra-0.30+2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44f41859c8ef21a2d0c429f44f60fb02a49b2716c54c8d3290458f36eea9a623 +size 485899 diff --git a/libcanberra-0.30.tar.xz b/libcanberra-0.30.tar.xz new file mode 100644 index 0000000..3f841da --- /dev/null +++ b/libcanberra-0.30.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2b671e67e0c288a69fc33dc1b6f1b534d07882c2aceed37004bf48c601afa72 +size 318960 diff --git a/libcanberra-broadway-fix.patch b/libcanberra-broadway-fix.patch new file mode 100644 index 0000000..406c482 --- /dev/null +++ b/libcanberra-broadway-fix.patch @@ -0,0 +1,71 @@ +From c0620e432650e81062c1967cc669829dbd29b310 Mon Sep 17 00:00:00 2001 +From: Michael Meeks +Date: Fri, 9 Nov 2012 16:16:40 +0000 +Subject: [PATCH] gtk: Don't assume all GdkDisplays are GdkX11Displays: + broadway/wayland + +--- + src/canberra-gtk-module.c | 15 +++++++++++++++ + src/canberra-gtk.c | 5 +++++ + 2 files changed, 20 insertions(+), 0 deletions(-) + +diff --git a/src/canberra-gtk-module.c b/src/canberra-gtk-module.c +index 67791f0..c1532ab 100644 +--- a/src/canberra-gtk-module.c ++++ b/src/canberra-gtk-module.c +@@ -307,6 +307,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) { + guchar *data = NULL; + gint ret = -1; + ++#ifdef GDK_IS_X11_DISPLAY ++ if (!GDK_IS_X11_DISPLAY(d)) ++ return 0; ++#endif ++ + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w), + gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"), + 0, G_MAXLONG, False, XA_CARDINAL, &type_return, +@@ -335,6 +340,11 @@ static gint display_get_desktop(GdkDisplay *d) { + guchar *data = NULL; + gint ret = -1; + ++#ifdef GDK_IS_X11_DISPLAY ++ if (!GDK_IS_X11_DISPLAY(d)) ++ return 0; ++#endif ++ + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), DefaultRootWindow(GDK_DISPLAY_XDISPLAY(d)), + gdk_x11_get_xatom_by_name_for_display(d, "_NET_CURRENT_DESKTOP"), + 0, G_MAXLONG, False, XA_CARDINAL, &type_return, +@@ -365,6 +375,11 @@ static gboolean window_is_xembed(GdkDisplay *d, GdkWindow *w) { + gboolean ret = FALSE; + Atom xembed; + ++#ifdef GDK_IS_X11_DISPLAY ++ if (!GDK_IS_X11_DISPLAY(d)) ++ return FALSE; ++#endif ++ + /* Gnome Panel applets are XEMBED windows. We need to make sure we + * ignore them */ + +diff --git a/src/canberra-gtk.c b/src/canberra-gtk.c +index 34446f5..08cb668 100644 +--- a/src/canberra-gtk.c ++++ b/src/canberra-gtk.c +@@ -185,6 +185,11 @@ static gint window_get_desktop(GdkDisplay *d, GdkWindow *w) { + guchar *data = NULL; + gint ret = -1; + ++#ifdef GDK_IS_X11_DISPLAY ++ if (!GDK_IS_X11_DISPLAY(d)) ++ return 0; ++#endif ++ + if (XGetWindowProperty(GDK_DISPLAY_XDISPLAY(d), GDK_WINDOW_XID(w), + gdk_x11_get_xatom_by_name_for_display(d, "_NET_WM_DESKTOP"), + 0, G_MAXLONG, False, XA_CARDINAL, &type_return, +-- +1.7.7 + + diff --git a/libcanberra-gtk-module.sh b/libcanberra-gtk-module.sh new file mode 100644 index 0000000..57e3f43 --- /dev/null +++ b/libcanberra-gtk-module.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# to be sourced + +if [ -z "$GTK_MODULES" ] ; then + GTK_MODULES="canberra-gtk-module" +else + GTK_MODULES="$GTK_MODULES:canberra-gtk-module" +fi + +export GTK_MODULES + diff --git a/libcanberra-multi-backend.patch b/libcanberra-multi-backend.patch new file mode 100644 index 0000000..16a74f8 --- /dev/null +++ b/libcanberra-multi-backend.patch @@ -0,0 +1,26 @@ +Index: libcanberra-0.29/src/driver-order.c +=================================================================== +--- libcanberra-0.29.orig/src/driver-order.c ++++ libcanberra-0.29/src/driver-order.c +@@ -30,6 +30,7 @@ + #include "driver-order.h" + + const char* const ca_driver_order[] = { ++ "multi", + #ifdef HAVE_PULSE + "pulse", + #endif +Index: libcanberra-0.29/src/multi.c +=================================================================== +--- libcanberra-0.29.orig/src/multi.c ++++ libcanberra-0.29/src/multi.c +@@ -107,8 +107,7 @@ int driver_open(ca_context *c) { + int ret = CA_SUCCESS; + + ca_return_val_if_fail(c, CA_ERROR_INVALID); +- ca_return_val_if_fail(c->driver, CA_ERROR_NODRIVER); +- ca_return_val_if_fail(!strncmp(c->driver, "multi", 5), CA_ERROR_NODRIVER); ++ ca_return_val_if_fail(!c->driver || strncmp(c->driver, "multi", 5) == 0, CA_ERROR_NODRIVER); + ca_return_val_if_fail(!PRIVATE(c), CA_ERROR_STATE); + + if (!(c->private = p = ca_new0(struct private, 1))) diff --git a/libcanberra.changes b/libcanberra.changes new file mode 100644 index 0000000..1dc700a --- /dev/null +++ b/libcanberra.changes @@ -0,0 +1,457 @@ +------------------------------------------------------------------- +Thu Dec 19 10:17:46 UTC 2024 - Dominique Leuenberger + +- Update to version v0.30+2: + + gtk: Don't assume all GdkDisplays are GdkX11Displays. +- Migrate package to obs_scm: we don't expect changes in git to + happen anymore, but it's the line used across all GNOME packages. +- Call autogen.sh in build section: the git checkout is not + bootstrapped. +- Drop libcanberra-broadway-fix.patch: part of the upstream git + tree. +- Pass --with-systemdunitdir=no to configure: dbus-broker newly + pulls in systemd, but we have been running without those service + files for like ever. With libcanberra being in maintenance only + mode, there seems to be no justification to change this now. +- Do not package documentation: building them requires lynx, which + seems a bit exaggerated. + +------------------------------------------------------------------- +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 + +- Stabilize build: + + Pass --disable-oss to configure: alsa is enabled and used + already. + + Pass --enable-udev to configure: ensure it is not accidentally + being disabled. + + Add pkgconfig(libudev) BuildRequires: used to be pulled in + indirectly. + +------------------------------------------------------------------- +Tue Nov 28 10:45:13 UTC 2023 - Dominique Leuenberger + +- Use %autosetup instead of %setup/%patch. + +------------------------------------------------------------------- +Mon Mar 5 15:58:50 UTC 2018 - jengelh@inai.de + +- Fix SRPM group. Update summaries. + +------------------------------------------------------------------- +Wed Feb 28 16:34:01 UTC 2018 - dimstar@opensuse.org + +- Modernize spec-file by calling spec-cleaner + +------------------------------------------------------------------- +Mon Dec 19 13:05:15 UTC 2016 - sor.alexei@meowr.ru + +- Remove the lynx build dependency: of questionable need. +- Build for Gtk3 unconditionally. +- Spec cleanup. + +------------------------------------------------------------------- +Wed May 25 23:35:32 UTC 2016 - sreeves@suse.com + +- Update to GNOME 3.20.2 Fate#318572 + +------------------------------------------------------------------- +Thu Jan 14 12:11:44 UTC 2016 - dimstar@opensuse.org + +- Do not require sound-theme-freedesktop by libcanberra0: if this + is wanted on a default install, it is up to the DE pattern to + recommend/require this - it is not needed for the libraries + proper functioning. + +------------------------------------------------------------------- +Mon Dec 28 16:43:10 UTC 2015 - zaitor@opensuse.org + +- Split out libcanberra-gtk-devel and libcanberra-gtk3-devel + sub-packages, this will make it possible for us to build + dependant packages without having to pull in both gtk2 and gtk3. + +------------------------------------------------------------------- +Fri Nov 6 00:54:02 UTC 2015 - zaitor@opensuse.org + +- Split out a new sub-package canberra-gtk-play-gnome: Currently + there are no desktop-login, desktop-logout or session-ready + sounds in the freedesktop sound theme, so installing this will + require a different sound-theme for it to be operational. Having + this in a own sub-package will avoid logspam about missing files. + Fixes boo#953862. + +------------------------------------------------------------------- +Wed Feb 6 15:38:50 UTC 2013 - dimstar@opensuse.org + +- Drop pkgconfig(gstreamer-1.0) BuildRequires: no longer build the + gstreamer backend. The default is PulseAudio, with a fallback to + alsa, which is sufficient. Helps against issues like bnc#800963. + +------------------------------------------------------------------- +Fri Nov 9 18:27:56 UTC 2012 - michael.meeks@suse.com + +- Add libcanberra-broadway-fix.patch: Fix crash with + libcanberra-gtk-module's and non-X11 displays (bnc#789066). + +------------------------------------------------------------------- +Tue Sep 25 11:52:28 UTC 2012 - dimstar@opensuse.org + +- Update to version 0.30: + + Minor bug fixes + + Explicitly require x11 for GTK linking + + Port to GStreamer 1.0. +- Add pkgconfig(glib-2.0) BuildRequires so it can be versioned. +- Add pkgconfig(x11) BuildRequires: new explicit dependency. +- Drop libcanberra-gst10.patch: fixed upstream. +- Drop libtool BuildRequires and call to ./autogen.sh: no patch + requires bootstrapping. + +------------------------------------------------------------------- +Mon Sep 3 16:07:52 UTC 2012 - dimstar@opensuse.org + +- Add libcanberra-gst10.patch: Port libcanberra to GStreamer 1.0. +- Add libtool BuildRequires and call ./autogen.sh in build, as + above patch touches the build system +- Replace pkgconfig(gstreamer-0.10) BuildRequires with + pkgconfig(gstreamer-1.0). + +------------------------------------------------------------------- +Mon Jul 2 19:19:56 UTC 2012 - dimstar@opensuse.org + +- Add libcanberra-multi-backend.patch: Set the 'multi'-backend as + default and fix it to also work without the driver list being + passed from the command line. Fixes bnc#763243. + +------------------------------------------------------------------- +Mon Jul 2 09:51:09 UTC 2012 - dimstar@opensuse.org + +- Add "# to be sourced" to libcanberra-gtk-module.sh (bnc#750980). + Xinitrc newly distinguishes between scripts that need to be + sourced and scripts that should be executed. As executing is the + default, scripts need to 'request to be sourced' using this + special tag. + +------------------------------------------------------------------- +Wed May 16 06:11:59 UTC 2012 - vuntz@opensuse.org + +- Update to version 0.29: + + Drop GConf usage. + + A couple of bugfixes. +- Drop pkgconfig(gconf-2.0) BuildRequires and gconf schemas + packaging, as GConf usage got removed upstream. + +------------------------------------------------------------------- +Sun Dec 4 13:45:30 UTC 2011 - dimstar@opensuse.org + +- Add libltdl-devel BuildRequires: it is required and was + implicitly brought in before. +- Change gconf2-devel BuildRequires to pkgconfig(gconf-2.0). +- Clean spec file using spec-cleaner. + +------------------------------------------------------------------- +Mon Mar 7 15:34:08 UTC 2011 - fcrozat@novell.com + +- Fix directory ownership of + %{_libdir}/gnome-settings-daemon-3.0/gtk-modules in + gtk-module-common. +- Remove --disable-rpath configure option: it's obsolete. + +------------------------------------------------------------------- +Wed Mar 2 16:06:54 CET 2011 - fcrozat@novell.com + +- Update to version 0.28: + + enable gtk module by default in gnome3 + + update login autostart files for gnome3 +- Stop making libcanberra-gtk-module-common noarch as there's a + file in %{_libdir}. + +------------------------------------------------------------------- +Fri Feb 18 12:28:26 UTC 2011 - fcrozat@novell.com + +- Update to version 0.27: + + add utility to play boot up sound + + systemd: add unit for bootup and shutdown sounds + + cache: don't use $HOME when it is not set + + gtk3: skip gtk_quit_add() for now +- Remove libcanberra-gtkquit.patch: fixed upstream + +------------------------------------------------------------------- +Tue Feb 15 15:47:54 UTC 2011 - fcrozat@novell.com + +- Enable gtk+ 3 build by setting build_gtk3 to 1. +- Add libcanberra-gtkquit.patch: do not use removed GTK+ 3 API. + +------------------------------------------------------------------- +Tue Oct 5 10:26:51 CEST 2010 - vuntz@opensuse.org + +- Update to version 0.26: + + Gtk+ 3.x fixes. + +------------------------------------------------------------------- +Mon Aug 9 11:25:04 CEST 2010 - vuntz@opensuse.org + +- Disable the build of the GTK+ 3 support: with it, + canberra-gtk-play is built against GTK+ 3, which is something we + don't want to have at the moment. This is done with a define, so + it's easy to re-enable the GTK+ 3 support. + +------------------------------------------------------------------- +Thu Jul 22 10:19:07 CEST 2010 - vuntz@opensuse.org + +- Improve summaries and descriptions. +- Change alsa-devel, gstreamer-0_10-devel, gtk2-devel, gtk3-devel, + libpulse-devel, libvorbis-devel BuildRequires to pkgconfig() + BuildRequires for: alsa, gstreamer-0.10, gtk+-2.0, gtk+-3.0, + libpulse, vorbisfile. +- Remove explicit Requires of libcanberra0 in libcanberra-gtk0. +- Split libcanberra-gtk in libcanberra-gtk-module-common, + libcanberra-gtk2-module and canberra-gtk-play subpackages. +- Rename libcanberra-gtk3 to libcanberra-gtk3-module. +- Make libcanberra-gtk2-module and libcanberra-gtk3-module depend + on libcanberra-gtk-module-common, and add Supplements to install + them when libcanberra0 and gtk2/gtk3 are installed. +- Add Provides/Obsoletes for libcanberra-gtk to canberra-gtk-play, + and add Supplements for gnome-session and gdm there too since + this package provides login sound. +- Remove gtk-doc and gtk2-devel Requires in devel package: gtk-doc + is not needed and gtk2 will be automatically added with + pkgconfig() Requires. + +------------------------------------------------------------------- +Tue Jul 13 16:37:13 CEST 2010 - dimstar@opensuse.org + +- Update to version 0.25: + + gtk: optionally build for both gtk2 and gtk3 + + cache: don't use destructors unless running in valgrind + + build fixes +- Add gtk3-devel BuildRequires. +- Create gtk3-0 and gtk3 subpackages for GTK+ 3 support. + +------------------------------------------------------------------- +Sun May 9 21:53:46 CEST 2010 - dimstar@opensuse.org + +- Update to version 0.24: + + fdo#27048: Compile with -DSEAL_ENABLE + + props: set a couple of additional properties by default and + ensure clients may override them + + pulse: fix finish notification for cached sample playback + + fork: call getpid() only once + + build-sys: bump sonames for v0.24 + + pulse: fix use after free in stream_drain_cb(). +- Drop libcanberra-fix-pulse-crash.patch, fixed by upstream. + +------------------------------------------------------------------- +Thu Apr 1 19:49:35 CEST 2010 - vuntz@opensuse.org + +- Add libcanberra-fix-pulse-crash.patch to fix a crash in + libcanberra that makes many apps crash. Fix bnc#591729. + +------------------------------------------------------------------- +Sun Feb 21 16:06:30 CET 2010 - dimstar@opensuse.org + +- Update to version 0.23: + + Fix fd leak in libcanberra + + vorbis: support the recently defined 6.1 and 7.1 modes + + gstreamer: add missing unistd.h inclusion + + pulse: pass selected device to server when playing + + vala: update vapi file for new defintions + + pulse: fix minor race with sound cancellation + +------------------------------------------------------------------- +Tue Jan 5 16:29:48 CET 2010 - jengelh@medozas.de + +- Package baselibs.conf + +------------------------------------------------------------------- +Sat Nov 14 12:08:07 CET 2009 - vuntz@opensuse.org + +- Update to version 0.22: + + gtk: add missing cast + + gtk: only use GdkEvent::window if it is set +- Changes from version 0.21: + + gtk: Do not dereference a null window. +- Changes from version 0.20: + + gtk: fix casting +- Changes from version 0.19: + + gtk: verify that a widget is realized before we try to access + its XID + + gtk: refresh event->window after dequeing + + gtk: even if GtkSettings is not available use context + + gtk: fix calculation of event hpos/vpos + +------------------------------------------------------------------- +Tue Oct 6 19:49:38 CEST 2009 - vuntz@opensuse.org + +- Move vala .vapi files to devel package: it's only needed to + compile an application willing to use libcanberra. + +------------------------------------------------------------------- +Mon Sep 28 18:10:48 CEST 2009 - vuntz@opensuse.org + +- Update to version 0.18: + + gtk-module: don't leak memory when reading X11 properties + + gtk-module: recognize sticky windows properly + + gtk-module: don't generate sound events for undecorated popups + + pulse: when coming back from event loop wait, check if the + context still exists + + gtk-module: ignore xembed windows + + props: introduce CA_PROP_WINDOW_DESKTOP + + gtk: add various validity checks before using data from + GdkWindow + + gtk: initialize window.desktop property by default +- Changes from version 0.17: + + gnome: play system-ready sound when gdm is ready + + pulse: relax latency requirements as much as possible to save + CPU + + gtk-module: fix handling menu popup detection + + gtk-module: make sure to process queued events before quitting + + vala: add vala .vapi files + + define properties for window position/size information + + gtk: generate window position/size properties in + ca_gtk_proplist_set_for_widget() + + gtk-module: properly detect whether a module is iconized + + gtk-module: clean up debug logging + + gtk: introduce two environment variables to force use of event + sounds/input feedback + + gtk-module: generate event sounds for drag/drop + + gtk-module: generate event sound when expander is expanded + +------------------------------------------------------------------- +Thu Aug 27 16:46:02 CEST 2009 - vuntz@novell.com + +- Update to version 0.16: + + add description to autostart file + + dso: quieten gcc a bit + + implement ca_context_playing() call + + vorbis: fix implicit channel map decoding master +- Use spec-cleaner script to split BuildRequires/Requires lines, + and reorder the preamble. + +------------------------------------------------------------------- +Wed Aug 5 11:54:06 CEST 2009 - vuntz@novell.com + +- Update to version 0.15: + + gtk-module: use gdk_threads_add_idle_full instead of + g_idle_full() for thread-safety reasons + + pulse: split up handling of outstanding structs into part where + the lock must be taken and where not + + dso: don't assume LT_ERROR_MAX is size of table[] + + gtk: don't take gdk lock since it is not recursive and it might + already be taken + +------------------------------------------------------------------- +Mon Jul 20 10:53:32 CEST 2009 - vuntz@novell.com + +- Update to version 0.14: + + pulse: don't hang if vorbis hits EOF earlier than advertised + + be a bit more verbose on error conditions + + pulse: rework reconnection logic, to not enter endless loop + when server is not reachable, and can never be reached +- Changes from version 0.13: + + pulse: use nofail + + canberra-gtk-play: add -V option for volume + + pulse: set volume when streaming directly + + pulse: don't hang when operation gets canceled + + make libcanberra-gtk multihead safe + + oss: initialize oss fd properly to avoid closing inappropriate + file descriptors + + remove deprecated GTK+ symbol. Fixes fdo#21358. + + add proper multichannel support (includes of WAVEX files) + + alsa: disable multichannel support for alsa + + oss: document lacking multichannel support for oss + + canberra-gtk-play: implement --property= + + pulse: implement canberra.force_channel property that forces an + event sound to a specific channel position + + fix missing fallback theme breaking the user specified one + + proplist: set prev_item when adding a new key/value pair + +------------------------------------------------------------------- +Fri May 29 00:59:58 CEST 2009 - crrodriguez@suse.de + +- fix -devel package dependencies + +------------------------------------------------------------------- +Tue Apr 14 14:56:03 CEST 2009 - vuntz@novell.com + +- Update to version 0.12: + + if supported, leave the volume for event sounds unspecified + + build system updates + + various fixes and updates for the PulseAudio backend + + detect forks and return an error for all functions in that case + + don't crash if there is no default display on initialization. + Fixes fdo#20693 + +------------------------------------------------------------------- +Fri Feb 6 11:14:31 EST 2009 - hfiguiere@suse.de + +- Review changes. + +------------------------------------------------------------------- +Wed Jan 28 02:04:42 WET 2009 - lmedinas@gmail.com + +- Update to version 0.11: + + major GStreamer backend fixes + + update to libtool 2.2 + + a few other fixes + +------------------------------------------------------------------- +Tue Nov 25 17:22:20 CET 2008 - sbrabec@suse.cz + +- Supplement gtk2-32bit/gtk2-64bit in baselibs.conf (bnc#354164). + +------------------------------------------------------------------- +Fri Oct 10 14:20:25 CEST 2008 - sbrabec@suse.cz + +- Update to version 0.10: + * install Gtk+ module using GConf + * few other fixes + +------------------------------------------------------------------- +Fri Oct 10 14:17:51 CEST 2008 - sbrabec@suse.cz + +- Devel file contains gtk files => requires libcanberra-gtk0. + +------------------------------------------------------------------- +Fri Aug 29 12:36:49 CEST 2008 - rodrigo@suse.de + +- Update to version 0.8: + + New OSS and GStreamer backends + + Portability fixes for FreeBSD/Solaris + + Multi backend works now +- Splitted packages a bit more, adding a -gtk subpackage to contain + the GTK stuff +- Renamed -gtk2 subpackage to -gtk0 +- Some other fixes in the .spec file + +------------------------------------------------------------------- +Thu Aug 28 12:59:51 CEST 2008 - rodrigo@suse.de + +- BuildRequire update-desktop-files +- Added missing %description for libcanberra + +------------------------------------------------------------------- +Thu Aug 28 10:37:21 CEST 2008 - rodrigo@suse.de + +- Fixed rpmlint errors + +------------------------------------------------------------------- +Wed Aug 27 16:58:19 CEST 2008 - rodrigo@suse.de + +- Don't remove README file + +------------------------------------------------------------------- +Wed Aug 27 15:53:12 CEST 2008 - rodrigo@suse.de + +- Fixed Source file name + +------------------------------------------------------------------- +Wed Aug 27 13:50:58 CEST 2008 - rodrigo@suse.de + +- First package of libcanberra, needed for new gnome-control-center diff --git a/libcanberra.obsinfo b/libcanberra.obsinfo new file mode 100644 index 0000000..e63a1eb --- /dev/null +++ b/libcanberra.obsinfo @@ -0,0 +1,4 @@ +name: libcanberra +version: 0.30+2 +mtime: 1352503095 +commit: c0620e432650e81062c1967cc669829dbd29b310 diff --git a/libcanberra.spec b/libcanberra.spec new file mode 100644 index 0000000..14731e2 --- /dev/null +++ b/libcanberra.spec @@ -0,0 +1,308 @@ +# +# spec file for package libcanberra +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define debug_package_requires libcanberra0 = %{version}-%{release} +Name: libcanberra +Version: 0.30+2 +Release: 0 +Summary: Portable sound event library +License: LGPL-2.0-or-later +Group: Development/Libraries/GNOME +URL: http://0pointer.de/lennart/projects/libcanberra +Source: %{name}-%{version}.tar.zst +Source1: libcanberra-gtk-module.sh +Source99: baselibs.conf +# PATCH-FIX-UPSTREAM libcanberra-multi-backend.patch boo#753243 fdo#51662 dimstar@opensuse.org -- Set the multi backend as default and allow it actually to work. +Patch0: libcanberra-multi-backend.patch +BuildRequires: gtk-doc +BuildRequires: libltdl-devel +BuildRequires: pkgconfig +BuildRequires: update-desktop-files +BuildRequires: pkgconfig(alsa) +BuildRequires: pkgconfig(glib-2.0) >= 2.32 +BuildRequires: pkgconfig(gtk+-2.0) +BuildRequires: pkgconfig(gtk+-3.0) +BuildRequires: pkgconfig(libpulse) >= 0.9.11 +BuildRequires: pkgconfig(libudev) >= 160 +BuildRequires: pkgconfig(vorbisfile) +BuildRequires: pkgconfig(x11) + +%description +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +%package -n libcanberra0 +Summary: Portable sound event library +Group: System/Libraries +Requires: libpulse0 >= 0.9.11 + +%description -n libcanberra0 +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package contains the main library. + +%package gtk0 +Summary: Portable sound event library -- GTK+ 2 Library +Group: System/Libraries + +%description gtk0 +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package contains a library to make it easier to use +libcanberra from GTK+ 2 applications. + +%package gtk3-0 +Summary: Portable sound event library -- GTK+ 3 Library +Group: System/Libraries + +%description gtk3-0 +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package contains a library to make it easier to use +libcanberra from GTK+ 3 applications. + +%package gtk-module-common +Summary: Portable sound event library -- Common Files for GTK+ Modules +Group: System/Libraries + +%description gtk-module-common +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package contains files common to both the GTK+ 2 and GTK+ 3 +modules. + +%package gtk2-module +Summary: Portable sound event library -- GTK+ 2 Module +Group: System/Libraries +Requires: %{name}-gtk-module-common = %{version} +Supplements: (libcanberra0 and gtk2) + +%description gtk2-module +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package contains a GTK+ 2 module that triggers input feedback +event sounds. + +%package gtk3-module +Summary: Portable sound event library -- GTK+ 3 Module +Group: System/Libraries +Requires: %{name}-gtk-module-common = %{version} +Supplements: (libcanberra0 and gtk3) + +%description gtk3-module +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package contains a GTK+ 3 module that triggers input feedback +event sounds. + +%package -n canberra-gtk-play +Summary: Utilities from libcanberra +Group: System/GUI/GNOME +Provides: %{name}-gtk = %{version} +Obsoletes: %{name}-gtk < %{version} + +%description -n canberra-gtk-play +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package provides the canberra-gtk-play utility. + +%package -n canberra-gtk-play-gnome +Summary: .desktop links for the canberra-gtk-play utility +# Disable supplements as we do not want it installed by default. +# This package contains a ready sound for gdm +#Supplements: gdm +# This package contains login/logout sound for GNOME. +#Supplements: gnome-session +Group: System/GUI/GNOME +Provides: %{name}-gtk-gnome = %{version} +Obsoletes: %{name}-gtk-gnome < %{version} + +%description -n canberra-gtk-play-gnome +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package provides the canberra-gtk-play .desktop files for the +gnome-desktop and gdm. +Currently there are no desktop-login, desktop-logout or +session-ready sounds in the freedesktop sound theme, so installing +this will require a different sound-theme for it to be operational. + +%package devel +Summary: Development files for libcanberra, a portable sound event library +Group: Development/Libraries/C and C++ +Requires: libcanberra0 = %{version} + +%description devel +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package provides the development files for libcanberra. + +%package -n libcanberra-gtk3-devel +Summary: GTK+ 3 development files for libcanberra +Group: Development/Libraries/C and C++ +Requires: libcanberra-devel +Requires: libcanberra-gtk3-0 = %{version} +Requires: libcanberra0 = %{version} + +%description -n libcanberra-gtk3-devel +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package provides the development files for libcanberra-gtk3. + +%package -n libcanberra-gtk-devel +Summary: GTK+ 2 development files for libcanberra +Group: Development/Libraries/C and C++ +Requires: libcanberra-devel +Requires: libcanberra-gtk0 = %{version} +Requires: libcanberra0 = %{version} + +%description -n libcanberra-gtk-devel +libcanberra is an implementation of the XDG Sound Theme and Name +Specifications, for generating event sounds on free desktops, such +as GNOME. It comes with several backends (ALSA, PulseAudio, null) +and is designed to be portable. + +This package provides the development files for libcanberra-gtk2. + +%prep +%autosetup -p1 +cp %{SOURCE1} libcanberra-gtk-module.sh + +%build +./autogen.sh +%configure \ + --disable-static \ + --enable-pulse \ + --enable-alsa \ + --enable-null \ + --disable-oss \ + --enable-udev \ + --with-systemdsystemunitdir=no \ + --with-builtin=dso +make %{?_smp_mflags} V=1 + +%install +%make_install +install -Dpm 0755 libcanberra-gtk-module.sh \ + %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh + +%suse_update_desktop_file %{buildroot}%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop +%suse_update_desktop_file %{buildroot}%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop + +find %{buildroot} -type f -name "*.la" -delete -print + +%post -n libcanberra0 -p /sbin/ldconfig +%postun -n libcanberra0 -p /sbin/ldconfig +%post gtk0 -p /sbin/ldconfig +%postun gtk0 -p /sbin/ldconfig +%post gtk3-0 -p /sbin/ldconfig +%postun gtk3-0 -p /sbin/ldconfig + +%files -n libcanberra0 +%license LGPL +%{_libdir}/libcanberra.so.* +%dir %{_libdir}/libcanberra-*/ +%{_libdir}/libcanberra-*/libcanberra-alsa.so +%{_libdir}/libcanberra-*/libcanberra-multi.so +%{_libdir}/libcanberra-*/libcanberra-null.so +%{_libdir}/libcanberra-*/libcanberra-pulse.so + +%files gtk0 +%{_libdir}/libcanberra-gtk.so.* + +%files gtk3-0 +%{_libdir}/libcanberra-gtk3.so.* + +%files gtk-module-common +%{_bindir}/canberra-boot +%dir %{_sysconfdir}/X11/xinit/ +%dir %{_sysconfdir}/X11/xinit/xinitrc.d/ +%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh +%dir %{_libdir}/gnome-settings-daemon-3.0/ +%dir %{_libdir}/gnome-settings-daemon-3.0/gtk-modules/ +%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop + +%files gtk2-module +%{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so + +%files gtk3-module +%{_libdir}/gtk-3.0/modules/libcanberra-gtk*-module.so + +%files -n canberra-gtk-play +%{_bindir}/canberra-gtk-play + +%files -n canberra-gtk-play-gnome +%dir %{_datadir}/gnome/ +%dir %{_datadir}/gnome/autostart/ +%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop +%dir %{_datadir}/gnome/shutdown/ +%{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh +%dir %{_datadir}/gdm/ +%dir %{_datadir}/gdm/autostart/ +%dir %{_datadir}/gdm/autostart/LoginWindow/ +%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop + +%files -n libcanberra-gtk-devel +%{_libdir}/libcanberra-gtk.so +%{_libdir}/pkgconfig/libcanberra-gtk.pc + +%files -n libcanberra-gtk3-devel +%{_libdir}/libcanberra-gtk3.so +%{_libdir}/pkgconfig/libcanberra-gtk3.pc + +%files devel +%{_includedir}/canberra.h +%{_includedir}/canberra-gtk.h +%{_libdir}/libcanberra.so +%{_libdir}/pkgconfig/libcanberra.pc +%dir %{_datadir}/vala/ +%dir %{_datadir}/vala/vapi/ +%{_datadir}/vala/vapi/*.vapi + +%changelog