File mate-settings-daemon.spec of Package mate-settings-daemon

#
# spec file for package mate-settings-daemon
#
# Copyright (c) 2015 SUSE LINUX 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/
#


%define _version 1.10
Name:           mate-settings-daemon
Version:        1.10.2
Release:        0
Summary:        MATE session settings daemon
License:        GPL-2.0 and LGPL-2.1
Group:          System/GUI/Other
Url:            http://mate-desktop.org/
Source0:        http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
BuildRequires:  libXxf86misc-devel
BuildRequires:  mate-common >= 1.9.0
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(dconf)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(libmatekbd) >= 1.9.0
BuildRequires:  pkgconfig(libmatemixer) >= 1.9.0
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libpulse-mainloop-glib)
BuildRequires:  pkgconfig(libxklavier)
BuildRequires:  pkgconfig(mate-desktop-2.0) >= 1.9.0
BuildRequires:  pkgconfig(polkit-gobject-1)
BuildRequires:  pkgconfig(sm)
# The default background is required as fallback.
Requires:       mate-backgrounds
# mate-settings-daemon needs a glib scheme to work correctly.
Requires:       matekbd-common
Recommends:     %{name}-lang
%glib2_gsettings_schema_requires

%description
This package contains the daemon which is responsible for setting
the various parameters of a MATE session and the applications that
run under it.

%package devel
Summary:        MATE session settings daemon development files
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}

%description devel
This package contains the daemon which is responsible for setting
the various parameters of a MATE session and the applications that
run under it.

%lang_package

%prep
%setup -q

%build
%configure \
  --libexecdir=%{_bindir}   \
  --disable-static          \
  --disable-schemas-install \
  --enable-pulse            \
  --disable-gstreamer       \
  --enable-polkit
make %{?_smp_mflags}

%install
%make_install
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
    rm -rf %{buildroot}%{_datadir}/MateConf/
fi

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LIB NEWS
%config %{_sysconfdir}/dbus-1/system.d/org.mate.SettingsDaemon.DateTimeMechanism.conf
%dir %{_sysconfdir}/%{name}/
%dir %{_sysconfdir}/%{name}/xrandr/
%dir %{_datadir}/mate-control-center/
%dir %{_datadir}/mate-control-center/keybindings/
%{_sysconfdir}/xdg/autostart/mate-settings-daemon.desktop
%{_bindir}/*
%{_libdir}/mate-settings-daemon/
%{_datadir}/dbus-1/services/*.service
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/icons/mate/
%{_datadir}/mate-control-center/keybindings/50-accessibility.xml
%{_datadir}/%{name}/
%{_datadir}/polkit-1/actions/org.mate.settingsdaemon.datetimemechanism.policy
%{_datadir}/glib-2.0/schemas/*.xml
%{_mandir}/man?/%{name}.?%{?ext_man}
%{_mandir}/man?/msd-*.?%{?ext_man}
%{_sysconfdir}/xrdb/

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc

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

%changelog
openSUSE Build Service is sponsored by