Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 5b6b4b68ffc9290d5f6a5c7a944e768b > files > 7

libcanberra-0.30-2.mga3.src.rpm

%define shortname canberra 

# Majors
%define major 0
%define major_gtk 0

# Library names
%define libname %mklibname %{shortname} %{major}
%define libname_gtk %mklibname %{shortname}-gtk %{major_gtk}
%define libname_gtk3 %mklibname %{shortname}-gtk3_ %{major_gtk}
%define	libname_gtkdevel  %mklibname -d %{shortname}-gtk
%define libname_devel %mklibname -d %{shortname}

%define _with_systemd 1

Summary:	XDG compliant sound event library
Name:		libcanberra
Version:	0.30
Release:	%mkrel 2
Source0:	http://0pointer.de/lennart/projects/libcanberra/%{name}-%{version}.tar.xz
Source1:	%{name}-gtk-module.sh
Source2:	%{shortname}-profile-d.sh
Source3:	%{shortname}-alsa.conf
Source4:	%{shortname}-pulse.conf
Patch0:		libcanberra-0.28-linkage.patch
License:	LGPLv2+
Group:		System/Libraries
Url:		http://0pointer.de/lennart/projects/libcanberra/
BuildRequires:	gtk+2-devel
BuildRequires:	gtk+3-devel
BuildRequires:	libalsa-devel
BuildRequires:	libvorbis-devel
BuildRequires:	libltdl-devel
BuildRequires:	gtk-doc
BuildRequires:	tdb-devel
BuildRequires:	pulseaudio-devel

# (cg) The following seem to be required to make autoreconf not moan.
BuildRequires:	gettext-devel
BuildRequires:	libGConf2-devel

%if %{_with_systemd}
BuildRequires:	udev-devel
BuildRequires:	systemd-units
%endif

%description
A small and lightweight implementation of the XDG Sound Theme Specification
(http://0pointer.de/public/sound-theme-spec.html).

%package -n %{shortname}-common
Summary:	Common files needed for libcanberra
Group:		Sound/Utilities
# (cg) This is just temporary. This should really be a generic requires.
Requires:	sound-theme-freedesktop
Requires(post):  rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1


%description -n %{shortname}-common
Common files needed for libcanberra

%package -n %{libname}
Summary:	XDG complient sound event library
Group:		System/Libraries
Requires:	%{shortname}-common

%description -n %{libname}
A small and lightweight implementation of the XDG Sound Theme Specification
(http://0pointer.de/public/sound-theme-spec.html).

%package -n %{shortname}-gtk
Summary:	GTK utilities for the %{name} XDG complient sound event library
Group:		System/Libraries
Obsoletes:	%{name}-gtk2

%description -n %{shortname}-gtk
GTK specific utilities for %{name}, a small and lightweight implementation of
the XDG Sound Theme Specification (http://0pointer.de/public/sound-theme-spec.html).

%package -n %{libname_gtk}
Summary:	GTK modules for the %{name} XDG complient sound event library
Group:		System/Libraries
Requires:	%{shortname}-gtk = %{version}-%{release}

%description -n %{libname_gtk}
GTK specific libraries for %{name}, a small and lightweight implementation of
the XDG Sound Theme Specification (http://0pointer.de/public/sound-theme-spec.html).


%package -n %{libname_gtk3}
Summary:	GTK 3 modules for the %{name} XDG complient sound event library
Group:		System/Libraries
Requires:	%{shortname}-gtk >= %{version}-%{release}
Obsoletes:	%{_lib}%{shortname}-gtk30 < 0.28-3

%description -n %{libname_gtk3}
GTK specific libraries for %{name}, a small and lightweight implementation of
the XDG Sound Theme Specification (http://0pointer.de/public/sound-theme-spec.html).

%package -n %{libname_gtkdevel}
Summary:	GTK modules for the %{name} XDG complient sound event library
Group:		System/Libraries
Provides:	%{name}-gtk-devel = %{version}-%{release}
Requires:	%{libname_gtk} = %{version}-%{release}
Requires:	%{libname_gtk3} = %{version}-%{release}
Requires:	%{libname_devel} = %{version}-%{release}

%description -n %{libname_gtkdevel}
GTK specific libraries for %{name}, a small and lightweight implementation of
the XDG Sound Theme Specification (http://0pointer.de/public/sound-theme-spec.html).

%package -n %{libname_devel}
Summary:	Headers and libraries for %{name} development
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{libname_devel}
Development files for %{name}, a small and lightweight implementation of
the XDG Sound Theme Specification (http://0pointer.de/public/sound-theme-spec.html).

%prep
%setup -q
%apply_patches

%build
%configure2_5x \
	--disable-gstreamer \
	--disable-oss \
	--disable-static \
%if !%{_with_systemd}
	--without-systemdsystemunitdir 
%else
	--with-systemdsystemunitdir=%{_unitdir}
%endif

%make

%install
%makeinstall_std

# Remove metalink libraries
find %{buildroot} -name *.la -delete

install -D -m755  %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit.d/libcanberra-gtk-module.sh
install -D -m644  %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/40canberra.sh
install -D -m644  %{SOURCE3} %{buildroot}%{_sysconfdir}/sound/profiles/alsa/canberra.conf
install -D -m644  %{SOURCE4} %{buildroot}%{_sysconfdir}/sound/profiles/pulse/canberra.conf

# Remove the multi output module until it's more stable
rm -f %{buildroot}%{_libdir}/libcanberra-%{version}/libcanberra-multi.so

# handle docs in files section
rm -rf %{buildroot}%{_defaultdocdir}

%files -n %{shortname}-common
%{_sysconfdir}/profile.d/40canberra.sh
%{_sysconfdir}/sound/profiles/alsa/canberra.conf
%{_sysconfdir}/sound/profiles/pulse/canberra.conf

%if %{_with_systemd}
%{_bindir}/canberra-boot
%{_unitdir}/canberra-system-bootup.service
%{_unitdir}/canberra-system-shutdown-reboot.service
%{_unitdir}/canberra-system-shutdown.service
%endif

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*
%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/%{name}-alsa.so
%{_libdir}/%{name}-%{version}/%{name}-pulse.so
%{_libdir}/%{name}-%{version}/%{name}-null.so

%files -n %{libname_gtk}
%{_libdir}/%{name}-gtk.so.%{major_gtk}*
%{_libdir}/gtk-2.0/modules/%{name}-gtk-module.so

%files -n %{libname_gtk3}
%{_libdir}/%{name}-gtk3.so.%{major_gtk}*
%{_libdir}/gtk-3.0/modules/%{name}-gtk3-module.so
%{_libdir}/gtk-3.0/modules/libcanberra-gtk-module.so

%files -n %{shortname}-gtk
%{_sysconfdir}/X11/xinit.d/libcanberra-gtk-module.sh
%{_bindir}/canberra-gtk-play
%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
%{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop

%files -n %{libname_gtkdevel}
%doc %{_datadir}/gtk-doc/html/%{name}
%doc README
%{_includedir}/%{shortname}-gtk.h
%{_libdir}/%{name}-gtk.so
%{_libdir}/libcanberra-gtk3.so
%{_libdir}/pkgconfig/%{name}-gtk.pc
%{_libdir}/pkgconfig/libcanberra-gtk3.pc
%{_datadir}/vala/vapi/libcanberra-gtk.vapi

%files -n %{libname_devel}
%doc README
%{_includedir}/%{shortname}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/vala/vapi/libcanberra.vapi


%changelog

* Sat Jan 12 2013 umeabot <umeabot> 0.30-2.mga3
+ Revision: 356903
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Tue Dec 25 2012 luigiwalser <luigiwalser> 0.30-1.mga3
+ Revision: 334821
- fix RPM group

  + fwang <fwang>
    - new version 0.30

* Fri Jun 29 2012 colin <colin> 0.29-2.mga3
+ Revision: 264947
- Rebuild against new libudev major

* Mon May 28 2012 colin <colin> 0.29-1.mga3
+ Revision: 248383
- New version: 0.29

* Sat Apr 28 2012 tmb <tmb> 0.28-10.mga2
+ Revision: 233636
- rebuild for broken requires

* Sat Apr 28 2012 tmb <tmb> 0.28-9.mga2
+ Revision: 233620
- Require rpm-helper >= 0.24.8-1 for systemd support

* Fri Apr 27 2012 tmb <tmb> 0.28-8.mga2
+ Revision: 233517
- rebuild for versioned rpm-helper requires

* Wed Feb 01 2012 tv <tv> 0.28-7.mga2
+ Revision: 203776
- patch 3: hang fix from RH

* Thu Dec 22 2011 wally <wally> 0.28-6.mga2
+ Revision: 186122
- add P1 and P2 from upstream
- add P0 to fix linking

* Wed Aug 31 2011 wally <wally> 0.28-5.mga2
+ Revision: 137127
- another rebuild due to package eating monster called BS

* Mon Aug 29 2011 wally <wally> 0.28-4.mga2
+ Revision: 135988
- rebuild due to package eating monster called BS
- fix gtk3 lib package name

  + colin <colin>
    - Add back in %%preun_uninstall_gconf_schemas. It's still needed.
    - Remove post and postun scripts as post_install_gconf_schemas no longer exists.
     - Tidy up some whitespace

  + tv <tv>
    - fix file list
    - new release

* Sun Jul 17 2011 dmorgan <dmorgan> 0.27-3.mga2
+ Revision: 125312
- Enable systemd

* Wed Jun 08 2011 dmorgan <dmorgan> 0.27-2.mga2
+ Revision: 101746
- Enable gtk3 part

* Fri Feb 25 2011 ennael <ennael> 0.27-2.mga1
+ Revision: 59809
- no systemd for now

* Mon Feb 21 2011 colin <colin> 0.27-1.mga1
+ Revision: 55197
- systemd support requires udev
- Tidy up systemd support
- New version

* Sun Feb 20 2011 eandry <eandry> 0.26-3.mga1
+ Revision: 54990
- drop builroot
- bump release

  + mikala <mikala>
    - imported package libcanberra