File mate-media.spec of Package mate-media

#
# spec file for package mate-media
#
# Copyright (c) 2014 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/


Name:           mate-media
Version:        1.8.0
Release:        0
License:        GPL-2.0+ and LGPL-2.1+
Summary:        MATE Desktop multimedia stack
Url:            http://mate-desktop.org
Group:          System/GUI/Other
Source:         http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
Recommends:     %{name}-lang
%glib2_gsettings_schema_requires

BuildRequires:  fdupes
BuildRequires:  itstool
BuildRequires:  libxml2-python
BuildRequires:  mate-common
BuildRequires:  mate-control-center-devel
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(unique-1.0)
BuildRequires:  update-desktop-files

%description
This package provides the Multimedia stack used by the MATE Desktop.

%lang_package

%prep
%setup -q

%build
%configure                                                             \
    --libexecdir=%{_libexecdir}/%{name}                                \
    --disable-static                                                   \
    --enable-profiles                                                  \
    --enable-pulseaudio
make %{?_smp_mflags} V=1

%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file mate-volume-control
%fdupes %{buildroot}%{_datadir}

%post
%desktop_database_post
%glib2_gsettings_schema_post

%postun
%desktop_database_postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING NEWS README
%{_sysconfdir}/xdg/autostart/mate-volume-control-applet.desktop
%{_bindir}/mate-volume-control
%{_bindir}/mate-volume-control-applet
%{_datadir}/applications/*.desktop
%{_datadir}/mate-media/
%{_datadir}/sounds/mate/
%{_mandir}/man1/mate-volume-control-applet.1.gz
%{_mandir}/man1/mate-volume-control.1.gz

%files lang -f %{name}.lang
%defattr(-,root,root,-)

%changelog
openSUSE Build Service is sponsored by