File mate-settings-daemon.spec of Package mate-settings-daemon
#
# spec file for package mate-settings-daemon
#
# Copyright (c) 2016 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.16
Name: mate-settings-daemon
Version: 1.16.0
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: hicolor-icon-theme
BuildRequires: mate-common >= %{_version}
BuildRequires: pkgconfig
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(dconf)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(libcanberra-gtk)
BuildRequires: pkgconfig(libmatekbd) >= %{_version}
BuildRequires: pkgconfig(libmatemixer) >= %{_version}
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(libxklavier)
BuildRequires: pkgconfig(mate-desktop-2.0) >= %{_version}
BuildRequires: pkgconfig(nss)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xxf86misc)
# 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
NOCONFIGURE=1 mate-autogen
%configure \
--libexecdir=%{_bindir} \
--disable-static \
--disable-schemas-install \
--with-gtk=2.0 \
--enable-pulse \
--enable-polkit
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
find %{buildroot} -type f -name "*.la" -delete -print
%post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%icon_theme_cache_post mate
%postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%icon_theme_cache_postun mate
%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/
%{_sysconfdir}/xrdb/
%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/hicolor/*/apps/*
%dir %{_datadir}/icons/mate/
%dir %{_datadir}/icons/mate/*/
%dir %{_datadir}/icons/mate/*/actions/
%{_datadir}/icons/mate/*/actions/*
%{_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}
%files devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%files lang -f %{name}.lang
%defattr(-,root,root)
%changelog