# # spec file for package libcanberra (Version 0.16) # # Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # 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 Version: 0.16 Release: 1 License: LGPL v2.0 or later 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 BuildRequires: alsa-devel BuildRequires: gconf2-devel BuildRequires: gstreamer-0_10-devel BuildRequires: gtk-doc BuildRequires: gtk2-devel BuildRequires: libpulse-devel >= 0.9.11 BuildRequires: libvorbis-devel BuildRequires: lynx BuildRequires: update-desktop-files BuildRoot: %{_tmppath}/%{name}-%{version}-build %define debug_package_requires libcanberra0 = %{version}-%{release} %package -n libcanberra0 License: LGPL v2.0 or later Summary: Portable sound event library Group: System/Libraries Requires: libpulse0 >= 0.9.11 Requires: sound-theme-freedesktop %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. It consists of the following parts: 1. 1. libcanberra: the main library 2. 2. libcanberra-gtk: some glue code to make it easier to use libcanberra from Gtk+ applications 3. 3. libcanberra-gtk-module: a Gtk+ module that uses libcanberra-gtk to trigger input feedback event sounds %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. It consists of the following parts: 1. 1. libcanberra: the main library 2. 2. libcanberra-gtk: some glue code to make it easier to use libcanberra from Gtk+ applications 3. 3. libcanberra-gtk-module: a Gtk+ module that uses libcanberra-gtk to trigger input feedback event sounds %package gtk0 License: LGPL v2.0 or later Summary: Portable sound event library Group: System/Libraries Requires: libcanberra0 = %{version} %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. It consists of the following parts: 1. 1. libcanberra: the main library 2. 2. libcanberra-gtk: some glue code to make it easier to use libcanberra from Gtk+ applications 3. 3. libcanberra-gtk-module: a Gtk+ module that uses libcanberra-gtk to trigger input feedback event sounds %package gtk License: LGPL v2.0 or later Summary: Portable sound event library Group: System/Libraries Requires: libcanberra0 = %{version} %gconf_schemas_prereq %description gtk 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: 1. 1. libcanberra: the main library 2. 2. libcanberra-gtk: some glue code to make it easier to use libcanberra from Gtk+ applications 3. 3. libcanberra-gtk-module: a Gtk+ module that uses libcanberra-gtk to trigger input feedback event sounds %package devel License: LGPL v2.0 or later Summary: Portable sound event library Group: Development/Libraries/C and C++ Requires: gtk-doc Requires: gtk2-devel Requires: libcanberra-gtk0 = %{version} 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. It consists of the following parts: 1. 1. libcanberra: the main library 2. 2. libcanberra-gtk: some glue code to make it easier to use libcanberra from Gtk+ applications 3. 3. libcanberra-gtk-module: a Gtk+ module that uses libcanberra-gtk to trigger input feedback event sounds %prep %setup -q %build %configure --with-pic --disable-static --disable-rpath --enable-pulse --enable-alsa --enable-null --with-builtin=dso %__make %{?jobs:-j%jobs} %install %makeinstall %suse_update_desktop_file %{buildroot}%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop find %{buildroot} \( -name *.a -o -name *.la \) -exec rm {} \; install -D -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh rm %{buildroot}%{_datadir}/doc/libcanberra/README %find_gconf_schemas %clean rm -rf %{buildroot} %post -n libcanberra0 -p /sbin/ldconfig %postun -n libcanberra0 -p /sbin/ldconfig %post gtk0 -p /sbin/ldconfig %postun gtk0 -p /sbin/ldconfig %pre gtk -f %{name}.schemas_pre %preun gtk -f %{name}.schemas_preun %posttrans gtk -f %{name}.schemas_posttrans %files -n libcanberra0 %defattr(-,root,root) %doc README LGPL %{_libdir}/libcanberra.so.* %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 %files gtk0 %defattr(-,root,root) %{_libdir}/libcanberra-gtk.so.* %files gtk -f %{name}.schemas_list %defattr(-,root,root) %{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so %dir %{_sysconfdir}/X11/xinit %dir %{_sysconfdir}/X11/xinit/xinitrc.d %{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh %{_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 %files devel %defattr(-,root,root) %doc %{_datadir}/gtk-doc/html/libcanberra %{_includedir}/canberra-gtk.h %{_includedir}/canberra.h %{_libdir}/libcanberra-gtk.so %{_libdir}/libcanberra.so %{_libdir}/pkgconfig/libcanberra-gtk.pc %{_libdir}/pkgconfig/libcanberra.pc %changelog