289 lines
8.7 KiB
RPMSpec
289 lines
8.7 KiB
RPMSpec
#
|
|
# spec file for package libcanberra (Version 0.12)
|
|
#
|
|
# 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.12
|
|
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}
|
|
|
|
%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
|
|
* Fri May 29 2009 crrodriguez@suse.de
|
|
- fix -devel package dependencies
|
|
* Tue Apr 14 2009 vuntz@novell.com
|
|
- Update to version 0.12:
|
|
+ if supported, leave the volume for event sounds unspecified
|
|
+ build system updates
|
|
+ various fixes and updates for the PulseAudio backend
|
|
+ detect forks and return an error for all functions in that case
|
|
+ don't crash if there is no default display on initialization.
|
|
Fixes fdo#20693
|
|
* Fri Feb 06 2009 hfiguiere@suse.de
|
|
- Review changes.
|
|
* Wed Jan 28 2009 lmedinas@gmail.com
|
|
- Update to version 0.11:
|
|
+ major GStreamer backend fixes
|
|
+ update to libtool 2.2
|
|
+ a few other fixes
|
|
* Tue Nov 25 2008 sbrabec@suse.cz
|
|
- Supplement gtk2-32bit/gtk2-64bit in baselibs.conf (bnc#354164).
|
|
* Fri Oct 10 2008 sbrabec@suse.cz
|
|
- Update to version 0.10:
|
|
* install Gtk+ module using GConf
|
|
* few other fixes
|
|
* Fri Oct 10 2008 sbrabec@suse.cz
|
|
- Devel file contains gtk files => requires libcanberra-gtk0.
|
|
* 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
|