2008-09-13 04:39:59 +02:00
|
|
|
#
|
2010-07-22 09:49:00 +02:00
|
|
|
# spec file for package libcanberra (Version 0.25)
|
2008-09-13 04:39:59 +02:00
|
|
|
#
|
2010-01-18 13:58:47 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2008-09-13 04:39:59 +02:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: libcanberra
|
2010-07-22 09:49:00 +02:00
|
|
|
Version: 0.25
|
|
|
|
Release: 1
|
|
|
|
License: LGPL v2.0 or later
|
2008-09-13 04:39:59 +02:00
|
|
|
Summary: Portable sound event library
|
|
|
|
Url: http://0pointer.de/lennart/projects/libcanberra/
|
|
|
|
Group: System/Libraries
|
|
|
|
Source: libcanberra-%{version}.tar.bz2
|
|
|
|
Source1: libcanberra-gtk-module.sh
|
2010-01-18 13:58:47 +01:00
|
|
|
Source99: baselibs.conf
|
2009-09-04 01:33:14 +02:00
|
|
|
BuildRequires: gconf2-devel
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
BuildRequires: lynx
|
|
|
|
BuildRequires: update-desktop-files
|
2010-07-22 23:43:35 +02:00
|
|
|
BuildRequires: pkgconfig(alsa)
|
|
|
|
BuildRequires: pkgconfig(gstreamer-0.10)
|
|
|
|
BuildRequires: pkgconfig(gtk+-2.0)
|
|
|
|
BuildRequires: pkgconfig(gtk+-3.0)
|
|
|
|
BuildRequires: pkgconfig(libpulse) >= 0.9.11
|
|
|
|
BuildRequires: pkgconfig(vorbisfile)
|
2008-09-13 04:39:59 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%define debug_package_requires libcanberra0 = %{version}-%{release}
|
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%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.
|
|
|
|
|
2008-09-13 04:39:59 +02:00
|
|
|
%package -n libcanberra0
|
2010-07-22 09:49:00 +02:00
|
|
|
License: LGPL v2.0 or later
|
2008-09-13 04:39:59 +02:00
|
|
|
Summary: Portable sound event library
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: libpulse0 >= 0.9.11
|
2009-09-04 01:33:14 +02:00
|
|
|
Requires: sound-theme-freedesktop
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%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
|
2010-07-22 23:43:35 +02:00
|
|
|
designed to be portable.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
This package contains the main library.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%package gtk0
|
2010-07-22 09:49:00 +02:00
|
|
|
License: LGPL v2.0 or later
|
2010-07-22 23:43:35 +02:00
|
|
|
Summary: Portable sound event library -- GTK+ 2 Library
|
2008-09-13 04:39:59 +02:00
|
|
|
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
|
2010-07-22 23:43:35 +02:00
|
|
|
designed to be portable.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
This package contains a library to make it easier to use
|
|
|
|
libcanberra from GTK+ 2 applications.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
2010-07-22 09:49:00 +02:00
|
|
|
%package gtk3-0
|
2010-07-22 23:43:35 +02:00
|
|
|
Summary: Portable sound event library -- GTK+ 3 Library
|
2010-07-22 09:49:00 +02:00
|
|
|
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. It consists of the following parts:
|
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
This package contains a library to make it easier to use
|
|
|
|
libcanberra from GTK+ 3 applications.
|
2010-07-22 09:49:00 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%package gtk-module-common
|
|
|
|
Summary: Portable sound event library -- Common Files for GTK+ Modules
|
2010-07-22 09:49:00 +02:00
|
|
|
Group: System/Libraries
|
2010-07-22 23:43:35 +02:00
|
|
|
Recommends: %{name}-gtk2-module
|
|
|
|
Recommends: %{name}-gtk3-module
|
|
|
|
BuildArch: noarch
|
|
|
|
%gconf_schemas_prereq
|
2010-07-22 09:49:00 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%description gtk-module-common
|
2010-07-22 09:49:00 +02:00
|
|
|
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. It consists of the following parts:
|
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
This package contains files common to both the GTK+ 2 and GTK+ 3
|
|
|
|
modules.
|
2010-07-22 09:49:00 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%package gtk2-module
|
|
|
|
Summary: Portable sound event library -- GTK+ 2 Module
|
|
|
|
Group: System/Libraries
|
|
|
|
Requires: %{name}-gtk-module-common = %{version}
|
|
|
|
Supplements: packageand(libcanberra0:gtk2)
|
2010-07-22 09:49:00 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%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. It consists of the following parts:
|
2010-07-22 09:49:00 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
This package contains a GTK+ 2 module that triggers input feedback
|
|
|
|
event sounds.
|
|
|
|
|
|
|
|
%package gtk3-module
|
|
|
|
Summary: Portable sound event library -- GTK+ 3 Module
|
2008-09-13 04:39:59 +02:00
|
|
|
Group: System/Libraries
|
2010-07-22 23:43:35 +02:00
|
|
|
Requires: %{name}-gtk-module-common = %{version}
|
|
|
|
Supplements: packageand(libcanberra0:gtk3)
|
2008-09-13 04:39:59 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%description gtk3-module
|
2008-09-13 04:39:59 +02:00
|
|
|
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. It consists of the following parts:
|
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
This package contains a GTK+ 3 module that triggers input feedback
|
|
|
|
event sounds.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%package -n canberra-gtk-play
|
|
|
|
License: LGPL v2.0 or later
|
|
|
|
Summary: Portable sound event library -- Utility
|
|
|
|
Group: System/Libraries
|
|
|
|
Provides: %{name}-gtk = %{version}
|
|
|
|
Obsoletes: %{name}-gtk < %{version}
|
|
|
|
# This package contains login/logout sound for GNOME
|
|
|
|
Supplements: gnome-session
|
|
|
|
# This package contains a ready sound for gdm
|
|
|
|
Supplements: gdm
|
|
|
|
|
|
|
|
%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.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
This package provides the canberra-gtk-play utility.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%package devel
|
2010-07-22 09:49:00 +02:00
|
|
|
License: LGPL v2.0 or later
|
2010-07-22 23:43:35 +02:00
|
|
|
Summary: Portable sound event library -- Development files
|
2008-09-13 04:39:59 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-07-22 23:43:35 +02:00
|
|
|
Requires: libcanberra0 = %{version}
|
2009-09-04 01:33:14 +02:00
|
|
|
Requires: libcanberra-gtk0 = %{version}
|
2010-07-22 09:49:00 +02:00
|
|
|
Requires: libcanberra-gtk3-0 = %{version}
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%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
|
2010-07-22 23:43:35 +02:00
|
|
|
designed to be portable.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
This package provides the development files for libcanberra.
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2009-06-12 18:03:42 +02:00
|
|
|
%configure --with-pic --disable-static --disable-rpath --enable-pulse --enable-alsa --enable-null --with-builtin=dso
|
2008-09-13 04:39:59 +02:00
|
|
|
%__make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%makeinstall
|
2010-07-22 23:43:35 +02:00
|
|
|
find %{buildroot}%{_libdir} -name '*.la' -delete -print
|
2009-09-04 01:33:14 +02:00
|
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
|
2009-10-06 00:40:59 +02:00
|
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
|
2009-09-04 01:33:14 +02:00
|
|
|
install -D -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh
|
|
|
|
rm %{buildroot}%{_datadir}/doc/libcanberra/README
|
2008-10-11 23:55:16 +02:00
|
|
|
%find_gconf_schemas
|
|
|
|
|
|
|
|
%clean
|
2009-09-04 01:33:14 +02:00
|
|
|
rm -rf %{buildroot}
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%post -n libcanberra0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libcanberra0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post gtk0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun gtk0 -p /sbin/ldconfig
|
|
|
|
|
2010-07-22 09:49:00 +02:00
|
|
|
%post gtk3-0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun gtk3-0 -p /sbin/ldconfig
|
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%pre gtk-module-common -f %{name}.schemas_pre
|
2008-10-11 23:55:16 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%preun gtk-module-common -f %{name}.schemas_preun
|
2009-07-31 19:57:32 +02:00
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%posttrans gtk-module-common -f %{name}.schemas_posttrans
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%files -n libcanberra0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc README LGPL
|
|
|
|
%{_libdir}/libcanberra.so.*
|
2009-04-24 00:35:38 +02:00
|
|
|
%dir %{_libdir}/libcanberra-%{version}
|
|
|
|
%{_libdir}/libcanberra-%{version}/libcanberra-alsa.so
|
|
|
|
%{_libdir}/libcanberra-%{version}/libcanberra-gstreamer.so
|
|
|
|
%{_libdir}/libcanberra-%{version}/libcanberra-multi.so
|
|
|
|
%{_libdir}/libcanberra-%{version}/libcanberra-null.so
|
|
|
|
%{_libdir}/libcanberra-%{version}/libcanberra-oss.so
|
|
|
|
%{_libdir}/libcanberra-%{version}/libcanberra-pulse.so
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%files gtk0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/libcanberra-gtk.so.*
|
|
|
|
|
2010-07-22 23:43:35 +02:00
|
|
|
%files gtk3-0
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/libcanberra-gtk3.so.*
|
|
|
|
|
|
|
|
%files gtk-module-common -f %{name}.schemas_list
|
|
|
|
%defattr(-, root, root)
|
2008-09-13 04:39:59 +02:00
|
|
|
%dir %{_sysconfdir}/X11/xinit
|
|
|
|
%dir %{_sysconfdir}/X11/xinit/xinitrc.d
|
|
|
|
%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh
|
2010-07-22 23:43:35 +02:00
|
|
|
|
|
|
|
%files gtk2-module
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so
|
|
|
|
|
|
|
|
%files gtk3-module
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_libdir}/gtk-3.0/modules/libcanberra-gtk*-module.so
|
|
|
|
|
|
|
|
%files -n canberra-gtk-play
|
|
|
|
%defattr(-,root,root)
|
2008-09-13 04:39:59 +02:00
|
|
|
%{_bindir}/canberra-gtk-play
|
|
|
|
%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
|
2009-10-06 00:40:59 +02:00
|
|
|
%dir %{_datadir}/gdm
|
|
|
|
%dir %{_datadir}/gdm/autostart
|
|
|
|
%dir %{_datadir}/gdm/autostart/LoginWindow
|
|
|
|
%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libcanberra
|
|
|
|
%{_includedir}/canberra.h
|
2010-07-22 23:43:35 +02:00
|
|
|
%{_includedir}/canberra-gtk.h
|
2008-09-13 04:39:59 +02:00
|
|
|
%{_libdir}/libcanberra.so
|
2010-07-22 23:43:35 +02:00
|
|
|
%{_libdir}/libcanberra-gtk.so
|
|
|
|
%{_libdir}/libcanberra-gtk3.so
|
2008-09-13 04:39:59 +02:00
|
|
|
%{_libdir}/pkgconfig/libcanberra.pc
|
2010-07-22 23:43:35 +02:00
|
|
|
%{_libdir}/pkgconfig/libcanberra-gtk.pc
|
2010-07-22 09:49:00 +02:00
|
|
|
%{_libdir}/pkgconfig/libcanberra-gtk3.pc
|
2009-10-08 01:31:40 +02:00
|
|
|
%dir %{_datadir}/vala
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/*.vapi
|
2008-09-13 04:39:59 +02:00
|
|
|
|
|
|
|
%changelog
|