libcanberra/libcanberra.spec

245 lines
7.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libcanberra (Version 0.14)
#
# 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/
#
# norootforbuild
Name: libcanberra
Summary: Portable sound event library
BuildRequires: alsa-devel gconf2-devel gstreamer-0_10-devel gtk-doc gtk2-devel libpulse-devel >= 0.9.11 libvorbis-devel lynx update-desktop-files
Url: http://0pointer.de/lennart/projects/libcanberra/
License: LGPL v2.0 or later
Version: 0.14
Release: 1
Group: System/Libraries
Source: libcanberra-%{version}.tar.bz2
Source1: libcanberra-gtk-module.sh
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: sound-theme-freedesktop
Requires: libpulse0 >= 0.9.11
%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
Authors:
--------
Lennart Poettering
%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
Authors:
--------
Lennart Poettering
%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
Authors:
--------
Lennart Poettering
%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
Authors:
--------
Lennart Poettering
%package devel
License: LGPL v2.0 or later
Summary: Portable sound event library
Group: Development/Libraries/C and C++
Requires: libcanberra0 = %{version}
Requires: libcanberra-gtk0 = %{version}
Requires: gtk-doc
Requires: gtk2-devel
%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
Authors:
--------
Lennart Poettering
%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 $RPM_BUILD_ROOT%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \;
install -D -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/X11/xinit/xinitrc.d/libcanberra-gtk-module.sh
rm $RPM_BUILD_ROOT%{_datadir}/doc/libcanberra/README
%find_gconf_schemas
%clean
rm -rf $RPM_BUILD_ROOT
%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