Accepting request 1232785 from GNOME:Factory
OBS-URL: https://build.opensuse.org/request/show/1232785 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libcanberra?expand=0&rev=49
This commit is contained in:
commit
0b5446a0aa
19
_service
Normal file
19
_service
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<services>
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">http://git.0pointer.net/clone/libcanberra.git</param>
|
||||||
|
<param name="revision">master</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
|
||||||
|
<param name="versionrewrite-pattern">v?(.*)(\+0)?</param>
|
||||||
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
|
<!-- <param name="changesgenerate">enable</param> -->
|
||||||
|
</service>
|
||||||
|
<service name="tar" mode="buildtime"/>
|
||||||
|
<service name="recompress" mode="buildtime">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">zst</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="manual" />
|
||||||
|
</services>
|
||||||
|
|
3
libcanberra-0.30+2.obscpio
Normal file
3
libcanberra-0.30+2.obscpio
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:44f41859c8ef21a2d0c429f44f60fb02a49b2716c54c8d3290458f36eea9a623
|
||||||
|
size 485899
|
BIN
libcanberra-0.30.tar.xz
(Stored with Git LFS)
BIN
libcanberra-0.30.tar.xz
(Stored with Git LFS)
Binary file not shown.
@ -1,71 +0,0 @@
|
|||||||
From c0620e432650e81062c1967cc669829dbd29b310 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Michael Meeks <michael.meeks@suse.com>
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
@ -1,3 +1,21 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 19 10:17:46 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
- 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 <fvogt@suse.com>
|
Thu Apr 4 12:56:22 UTC 2024 - Fabian Vogt <fvogt@suse.com>
|
||||||
|
|
||||||
|
4
libcanberra.obsinfo
Normal file
4
libcanberra.obsinfo
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name: libcanberra
|
||||||
|
version: 0.30+2
|
||||||
|
mtime: 1352503095
|
||||||
|
commit: c0620e432650e81062c1967cc669829dbd29b310
|
@ -18,19 +18,17 @@
|
|||||||
|
|
||||||
%define debug_package_requires libcanberra0 = %{version}-%{release}
|
%define debug_package_requires libcanberra0 = %{version}-%{release}
|
||||||
Name: libcanberra
|
Name: libcanberra
|
||||||
Version: 0.30
|
Version: 0.30+2
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Portable sound event library
|
Summary: Portable sound event library
|
||||||
License: LGPL-2.0-or-later
|
License: LGPL-2.0-or-later
|
||||||
Group: Development/Libraries/GNOME
|
Group: Development/Libraries/GNOME
|
||||||
URL: http://0pointer.de/lennart/projects/libcanberra
|
URL: http://0pointer.de/lennart/projects/libcanberra
|
||||||
Source: http://0pointer.de/lennart/projects/libcanberra/%{name}-%{version}.tar.xz
|
Source: %{name}-%{version}.tar.zst
|
||||||
Source1: libcanberra-gtk-module.sh
|
Source1: libcanberra-gtk-module.sh
|
||||||
Source99: baselibs.conf
|
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.
|
# 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
|
Patch0: libcanberra-multi-backend.patch
|
||||||
# PATCH-FIX-UPSTREAM libcanberra-broadway-fix.patch boo#789066 michael.meeks@suse.com
|
|
||||||
Patch1: libcanberra-broadway-fix.patch
|
|
||||||
BuildRequires: gtk-doc
|
BuildRequires: gtk-doc
|
||||||
BuildRequires: libltdl-devel
|
BuildRequires: libltdl-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
@ -217,13 +215,15 @@ This package provides the development files for libcanberra-gtk2.
|
|||||||
cp %{SOURCE1} libcanberra-gtk-module.sh
|
cp %{SOURCE1} libcanberra-gtk-module.sh
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure \
|
./autogen.sh
|
||||||
--disable-static \
|
%configure \
|
||||||
--enable-pulse \
|
--disable-static \
|
||||||
--enable-alsa \
|
--enable-pulse \
|
||||||
--enable-null \
|
--enable-alsa \
|
||||||
--disable-oss \
|
--enable-null \
|
||||||
--enable-udev \
|
--disable-oss \
|
||||||
|
--enable-udev \
|
||||||
|
--with-systemdsystemunitdir=no \
|
||||||
--with-builtin=dso
|
--with-builtin=dso
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
@ -231,7 +231,6 @@ make %{?_smp_mflags} V=1
|
|||||||
%make_install
|
%make_install
|
||||||
install -Dpm 0755 libcanberra-gtk-module.sh \
|
install -Dpm 0755 libcanberra-gtk-module.sh \
|
||||||
%{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh
|
%{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh
|
||||||
rm %{buildroot}%{_datadir}/doc/libcanberra/README
|
|
||||||
|
|
||||||
%suse_update_desktop_file %{buildroot}%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
|
%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
|
%suse_update_desktop_file %{buildroot}%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
|
||||||
@ -246,14 +245,13 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
%postun gtk3-0 -p /sbin/ldconfig
|
%postun gtk3-0 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n libcanberra0
|
%files -n libcanberra0
|
||||||
%doc README
|
|
||||||
%license LGPL
|
%license LGPL
|
||||||
%{_libdir}/libcanberra.so.*
|
%{_libdir}/libcanberra.so.*
|
||||||
%dir %{_libdir}/libcanberra-%{version}/
|
%dir %{_libdir}/libcanberra-*/
|
||||||
%{_libdir}/libcanberra-%{version}/libcanberra-alsa.so
|
%{_libdir}/libcanberra-*/libcanberra-alsa.so
|
||||||
%{_libdir}/libcanberra-%{version}/libcanberra-multi.so
|
%{_libdir}/libcanberra-*/libcanberra-multi.so
|
||||||
%{_libdir}/libcanberra-%{version}/libcanberra-null.so
|
%{_libdir}/libcanberra-*/libcanberra-null.so
|
||||||
%{_libdir}/libcanberra-%{version}/libcanberra-pulse.so
|
%{_libdir}/libcanberra-*/libcanberra-pulse.so
|
||||||
|
|
||||||
%files gtk0
|
%files gtk0
|
||||||
%{_libdir}/libcanberra-gtk.so.*
|
%{_libdir}/libcanberra-gtk.so.*
|
||||||
@ -299,7 +297,6 @@ find %{buildroot} -type f -name "*.la" -delete -print
|
|||||||
%{_libdir}/pkgconfig/libcanberra-gtk3.pc
|
%{_libdir}/pkgconfig/libcanberra-gtk3.pc
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%doc %{_datadir}/gtk-doc/html/libcanberra/
|
|
||||||
%{_includedir}/canberra.h
|
%{_includedir}/canberra.h
|
||||||
%{_includedir}/canberra-gtk.h
|
%{_includedir}/canberra-gtk.h
|
||||||
%{_libdir}/libcanberra.so
|
%{_libdir}/libcanberra.so
|
||||||
|
Loading…
Reference in New Issue
Block a user