5280a38
Name: libcanberra
626caf6
Version: 0.11
626caf6
Release: 5%{?dist}
5280a38
Summary: Portable Sound Event Library
5280a38
Group: System Environment/Libraries
3310f11
Source0: http://0pointer.de/lennart/projects/libcanberra/libcanberra-%{version}.tar.gz
edab1f6
License: LGPLv2+
5280a38
Url: http://git.0pointer.de/?p=libcanberra.git;a=summary
5280a38
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5280a38
BuildRequires: gtk2-devel
5280a38
BuildRequires: alsa-lib-devel
5280a38
BuildRequires: libvorbis-devel
5280a38
BuildRequires: libtool-ltdl-devel
5280a38
BuildRequires: gtk-doc
edab1f6
BuildRequires: pulseaudio-libs-devel >= 0.9.11-1
93dbc9c
BuildRequires: gstreamer-devel
e8d76ac
BuildRequires: libtdb-devel
37747da
BuildRequires: GConf2-devel
788eee2
Requires: sound-theme-freedesktop
ff14663
Requires: pulseaudio-libs >= 0.9.11-1
5280a38
5280a38
%description
5280a38
A small and lightweight implementation of the XDG Sound Theme Specification
5280a38
(http://0pointer.de/public/sound-theme-spec.html).
5280a38
5280a38
%package gtk2
5280a38
Summary: Gtk+ Bindings for libcanberra
5280a38
Group: System Environment/Libraries
5280a38
Requires: %{name} = %{version}-%{release}
5280a38
5280a38
%description gtk2
5280a38
Gtk+ bindings for libcanberra
5280a38
5280a38
%package devel
edab1f6
Summary: Development Files for libcanberra Client Development
5280a38
Group: Development/Libraries
5280a38
Requires: %{name} = %{version}-%{release}
5280a38
Requires: pkgconfig
5280a38
Requires: gtk-doc
788eee2
Requires: gtk2-devel
5280a38
5280a38
%description devel
edab1f6
Development Files for libcanberra Client Development
5280a38
5280a38
%post -p /sbin/ldconfig
5280a38
%postun -p /sbin/ldconfig
5280a38
37747da
%post gtk2
37747da
/sbin/ldconfig
37747da
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
37747da
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/libcanberra.schemas > /dev/null || :
37747da
5280a38
%postun gtk2 -p /sbin/ldconfig
5280a38
37747da
%pre gtk2
37747da
if [ "$1" -gt 1 ]; then
37747da
	export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
37747da
	gconftool-2 --makefile-install-rule \
37747da
		%{_sysconfdir}/gconf/schemas/libcanberra.schemas >& /dev/null || :
37747da
fi
37747da
37747da
%preun gtk2
37747da
if [ "$1" -eq 0 ]; then
37747da
	export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
37747da
	gconftool-2 --makefile-uninstall-rule \
37747da
      		%{_sysconfdir}/gconf/schemas/libcanberra.schemas >& /dev/null || :
37747da
fi
37747da
5280a38
%prep
5280a38
%setup -q
5280a38
5280a38
%build
5280a38
%configure --disable-static --disable-rpath --enable-pulse --enable-alsa --enable-null --with-builtin=dso
edab1f6
make %{?_smp_mflags}
5280a38
5280a38
%install
5280a38
rm -rf $RPM_BUILD_ROOT
5280a38
make DESTDIR=$RPM_BUILD_ROOT install
5280a38
find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \;
3310f11
rm $RPM_BUILD_ROOT%{_docdir}/libcanberra/README
5280a38
5280a38
%clean
5280a38
rm -rf $RPM_BUILD_ROOT
5280a38
5280a38
%files
5280a38
%defattr(-,root,root)
5280a38
%doc README LGPL
5280a38
%{_libdir}/libcanberra.so.*
626caf6
%dir %{_libdir}/libcanberra-%{version}
626caf6
%{_libdir}/libcanberra-%{version}/libcanberra-alsa.so
626caf6
%{_libdir}/libcanberra-%{version}/libcanberra-pulse.so
626caf6
%{_libdir}/libcanberra-%{version}/libcanberra-null.so
626caf6
%{_libdir}/libcanberra-%{version}/libcanberra-multi.so
626caf6
%{_libdir}/libcanberra-%{version}/libcanberra-oss.so
626caf6
%{_libdir}/libcanberra-%{version}/libcanberra-gstreamer.so
5280a38
5280a38
%files gtk2
5280a38
%defattr(-,root,root)
5280a38
%{_libdir}/libcanberra-gtk.so.*
5280a38
%{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so
2008286
%{_bindir}/canberra-gtk-play
14a9d10
%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
14a9d10
%{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh
37747da
%{_sysconfdir}/gconf/schemas/libcanberra.schemas
5280a38
5280a38
%files devel
5280a38
%defattr(-,root,root)
5280a38
%doc %{_datadir}/gtk-doc/html/libcanberra
5280a38
%{_includedir}/canberra-gtk.h
5280a38
%{_includedir}/canberra.h
5280a38
%{_libdir}/libcanberra-gtk.so
5280a38
%{_libdir}/libcanberra.so
5280a38
%{_libdir}/pkgconfig/libcanberra-gtk.pc
5280a38
%{_libdir}/pkgconfig/libcanberra.pc
5280a38
5280a38
%changelog
85c763a
* Wed Jan 21 2009 Lennart Poettering <lpoetter@redhat.com> 0.11-5
626caf6
- New version
626caf6
01e3253
* Sun Dec 14 2008 Lennart Poettering <lpoetter@redhat.com> 0.10-4
01e3253
- Moved login sound to "Application" startup phase.
01e3253
c6f9967
* Thu Nov 13 2008 Matthias Clasen <mclasen@redhat.com> 0.10-3
c6f9967
- Rebuild
c6f9967
01e3253
* Fri Oct 10 2008 Lennart Poettering <lpoetter@redhat.com> 0.10-2
5f7c2b4
- Drop libcanberra-gtk-module.sh since the gconf stuff is supported just fine in current gnome-session already.
5f7c2b4
37747da
* Mon Oct 6 2008 Lennart Poettering <lpoetter@redhat.com> 0.10-1
37747da
- New version
37747da
e8d76ac
* Thu Sep 9 2008 Lennart Poettering <lpoetter@redhat.com> 0.9-1
e8d76ac
- New version
e8d76ac
93dbc9c
* Thu Aug 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.8-2
93dbc9c
- Fix build-time dep on Gstreamer
93dbc9c
65c7b9a
* Thu Aug 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.8-1
65c7b9a
- New version
65c7b9a
3310f11
* Thu Aug 14 2008 Lennart Poettering <lpoetter@redhat.com> 0.7-1
3310f11
- New version
3310f11
eaf9312
* Mon Aug 4 2008 Lennart Poettering <lpoetter@redhat.com> 0.6-1
eaf9312
- New version
eaf9312
ff14663
* Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-4
ff14663
- Really add versioned dependency on libpulse
ff14663
05c2ca5
* Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-3
05c2ca5
- Ship libcanberra-gtk-module.sh directly in CVS
05c2ca5
16e504a
* Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-2
16e504a
- Fix build
16e504a
14a9d10
* Wed Jul 30 2008 Lennart Poettering <lpoetter@redhat.com> 0.5-1
14a9d10
- New version
14a9d10
edab1f6
* Mon Jul 28 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-3
edab1f6
- Add versioned dependency on libpulse
edab1f6
4b06276
* Sun Jul 27 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-2
4b06276
- Fix module name in libcanberra-gtk-module.sh
4b06276
2008286
* Fri Jul 25 2008 Lennart Poettering <lpoetter@redhat.com> 0.4-1
2008286
- New version
2008286
- Install libcanberra-gtk-module.sh
2008286
788eee2
* Mon Jun 16 2008 Lennart Poettering <lpoetter@redhat.com> 0.3-2
788eee2
- Add dependency on sound-theme-freedesktop
788eee2
5280a38
* Fri Jun 13 2008 Lennart Poettering <lpoetter@redhat.com> 0.3-1
5280a38
- Initial package, based on Colin Guthrie's Mandriva package
5280a38