Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85e8e2b1da | ||
|
|
c0c6d8fd4a |
2 changed files with 53 additions and 26 deletions
|
|
@ -1,12 +1,11 @@
|
|||
Name: libcanberra
|
||||
Version: 0.25
|
||||
Release: 2%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: Portable Sound Event Library
|
||||
Group: System Environment/Libraries
|
||||
Source0: http://0pointer.de/lennart/projects/libcanberra/libcanberra-%{version}.tar.gz
|
||||
License: LGPLv2+
|
||||
Url: http://git.0pointer.de/?p=libcanberra.git;a=summary
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: gtk3-devel
|
||||
BuildRequires: alsa-lib-devel
|
||||
|
|
@ -22,6 +21,10 @@ BuildRequires: gettext-devel
|
|||
Requires: sound-theme-freedesktop
|
||||
Requires: pulseaudio-libs >= 0.9.15
|
||||
|
||||
# Link canberra-gtk-play against GTK 2.x for F14
|
||||
Patch0: link-gtk-play-against-gtk2.patch
|
||||
BuildRequires: automake autoconf libtool
|
||||
|
||||
%description
|
||||
A small and lightweight implementation of the XDG Sound Theme Specification
|
||||
(http://0pointer.de/public/sound-theme-spec.html).
|
||||
|
|
@ -30,8 +33,9 @@ A small and lightweight implementation of the XDG Sound Theme Specification
|
|||
Summary: Gtk+ 2.x Bindings for libcanberra
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
# GConf and other stuff is included in the gtk3 package, so always pull that in.
|
||||
Requires: %{name}-gtk3 = %{version}-%{release}
|
||||
Requires(pre): GConf2
|
||||
Requires(post): GConf2
|
||||
Requires(preun): GConf2
|
||||
|
||||
%description gtk2
|
||||
Gtk+ 2.x bindings for libcanberra
|
||||
|
|
@ -40,9 +44,9 @@ Gtk+ 2.x bindings for libcanberra
|
|||
Summary: Gtk+ 3.x Bindings for libcanberra
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires(pre): GConf2
|
||||
# GConf and other stuff is included in the gtk2 package, so always pull that in.
|
||||
Requires: %{name}-gtk2 = %{version}-%{release}
|
||||
Requires(preun): GConf2
|
||||
Requires(post): GConf2
|
||||
|
||||
%description gtk3
|
||||
Gtk+ 3.x bindings for libcanberra
|
||||
|
|
@ -51,8 +55,6 @@ Gtk+ 3.x bindings for libcanberra
|
|||
Summary: Development Files for libcanberra Client Development
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
Requires: gtk-doc
|
||||
Requires: gtk2-devel
|
||||
|
||||
%description devel
|
||||
|
|
@ -61,18 +63,22 @@ Development Files for libcanberra Client Development
|
|||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%pre gtk2 -p /sbin/ldconfig
|
||||
%post gtk2 -p /sbin/ldconfig
|
||||
%preun gtk2 -p /sbin/ldconfig
|
||||
%postun gtk2 -p /sbin/ldconfig
|
||||
|
||||
%pre gtk3
|
||||
%pre gtk2
|
||||
/sbin/ldconfig
|
||||
%gconf_schema_prepare libcanberra
|
||||
|
||||
%post gtk3
|
||||
%post gtk2
|
||||
/sbin/ldconfig
|
||||
%gconf_schema_upgrade libcanberra
|
||||
|
||||
%preun gtk2
|
||||
/sbin/ldconfig
|
||||
%gconf_schema_remove libcanberra
|
||||
|
||||
%postun gtk2 -p /sbin/ldconfig
|
||||
|
||||
%post gtk3 -p /sbin/ldconfig
|
||||
|
||||
%preun gtk3
|
||||
%gconf_schema_remove libcanberra
|
||||
|
||||
|
|
@ -80,21 +86,19 @@ Development Files for libcanberra Client Development
|
|||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1 -b .gtk2
|
||||
|
||||
%build
|
||||
autoreconf -f
|
||||
%configure --disable-static --enable-pulse --enable-alsa --enable-null --enable-gstreamer --disable-oss --with-builtin=dso
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
find $RPM_BUILD_ROOT \( -name *.a -o -name *.la \) -exec rm {} \;
|
||||
rm $RPM_BUILD_ROOT%{_docdir}/libcanberra/README
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README LGPL
|
||||
|
|
@ -110,12 +114,6 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%defattr(-,root,root)
|
||||
%{_libdir}/libcanberra-gtk.so.*
|
||||
%{_libdir}/gtk-2.0/modules/libcanberra-gtk-module.so
|
||||
|
||||
%files gtk3
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libcanberra-gtk3.so.*
|
||||
%{_libdir}/gtk-3.0/modules/libcanberra-gtk3-module.so
|
||||
%{_libdir}/gtk-3.0/modules/libcanberra-gtk-module.so
|
||||
%{_bindir}/canberra-gtk-play
|
||||
%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
|
||||
%{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh
|
||||
|
|
@ -126,9 +124,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
|
||||
%{_sysconfdir}/gconf/schemas/libcanberra.schemas
|
||||
|
||||
%files gtk3
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libcanberra-gtk3.so.*
|
||||
%{_libdir}/gtk-3.0/modules/libcanberra-gtk3-module.so
|
||||
%{_libdir}/gtk-3.0/modules/libcanberra-gtk-module.so
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc %{_datadir}/gtk-doc/html/libcanberra
|
||||
%doc %{_datadir}/gtk-doc
|
||||
%{_includedir}/canberra-gtk.h
|
||||
%{_includedir}/canberra.h
|
||||
%{_libdir}/libcanberra-gtk.so
|
||||
|
|
@ -144,6 +148,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||
%{_datadir}/vala/vapi/libcanberra.vapi
|
||||
|
||||
%changelog
|
||||
* Thu Sep 09 2010 Bastien Nocera <bnocera@redhat.com> 0.25-4
|
||||
- Make the gtk2 module installable without gtk3
|
||||
|
||||
* Mon Aug 23 2010 Matthias Clasen <mclasen@redhat.com> 0.25-3
|
||||
- Co-own /usr/share/gtk-doc (#604379)
|
||||
|
||||
* Mon Jun 28 2010 Matthias Clasen <mclasen@redhat.com> 0.25-2
|
||||
- Rebuild
|
||||
|
||||
|
|
|
|||
17
link-gtk-play-against-gtk2.patch
Normal file
17
link-gtk-play-against-gtk2.patch
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
--- libcanberra-0.25/src/Makefile.am 2010-06-13 18:41:49.000000000 +0100
|
||||
+++ libcanberra-0.25.new/src/Makefile.am 2010-09-09 15:58:59.000000000 +0100
|
||||
@@ -356,11 +356,11 @@ endif
|
||||
if HAVE_GTK3
|
||||
|
||||
canberra_gtk_play_LDADD = \
|
||||
- $(GTK3_LIBS) \
|
||||
+ $(GTK_LIBS) \
|
||||
libcanberra.la \
|
||||
- libcanberra-gtk3.la
|
||||
+ libcanberra-gtk.la
|
||||
canberra_gtk_play_CFLAGS = \
|
||||
- $(GTK3_CFLAGS)
|
||||
+ $(GTK_CFLAGS)
|
||||
|
||||
else
|
||||
if HAVE_GTK
|
||||
Loading…
Add table
Add a link
Reference in a new issue