libcanberra/libcanberra.spec

257 lines
7.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package libcanberra (Version 0.8)
#
# Copyright (c) 2008 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 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.8
Release: 2
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}-%{release}
%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}-%{release}
%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: pkgconfig
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 --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%{_libdir}/libcanberra/libcanberra-multi.so
rm $RPM_BUILD_ROOT%{_datadir}/doc/libcanberra/README
%post -n libcanberra0 -p /sbin/ldconfig
%postun -n libcanberra0 -p /sbin/ldconfig
%post gtk0 -p /sbin/ldconfig
%postun gtk0 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libcanberra0
%defattr(-,root,root)
%doc README LGPL
%{_libdir}/libcanberra.so.*
%dir %{_libdir}/libcanberra
%{_libdir}/libcanberra/libcanberra-alsa.so
%{_libdir}/libcanberra/libcanberra-gstreamer.so
%{_libdir}/libcanberra/libcanberra-null.so
%{_libdir}/libcanberra/libcanberra-oss.so
%{_libdir}/libcanberra/libcanberra-pulse.so
%files gtk0
%defattr(-,root,root)
%{_libdir}/libcanberra-gtk.so.*
%files gtk
%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
* Fri Aug 29 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 2008 rodrigo@suse.de
- BuildRequire update-desktop-files
- Added missing %%description for libcanberra
* Thu Aug 28 2008 rodrigo@suse.de
- Fixed rpmlint errors
* Wed Aug 27 2008 rodrigo@suse.de
- Don't remove README file
* Wed Aug 27 2008 rodrigo@suse.de
- Fixed Source file name
* Wed Aug 27 2008 rodrigo@suse.de
- First package of libcanberra, needed for new gnome-control-center