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

#
# spec file for mate-settings-daemon
#
# 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-settings-daemon
Version:        1.8.2
Release:        0
License:        GPL-2.0 and LGPL-2.1
Summary:        MATE session settings daemon
Url:            http://mate-desktop.org/
Group:          System/GUI/Other
Source0:        http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
%glib2_gsettings_schema_requires

BuildRequires:  mate-common
BuildRequires:  pkgconfig(dconf)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(ice)
BuildRequires:  pkgconfig(libcanberra-gtk)
BuildRequires:  pkgconfig(libmatekbd)
BuildRequires:  pkgconfig(libmatekbdui)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libpulse-mainloop-glib)
BuildRequires:  pkgconfig(libxklavier)
BuildRequires:  pkgconfig(mate-desktop-2.0) >= 1.8.1
BuildRequires:  pkgconfig(polkit-gobject-1)
BuildRequires:  pkgconfig(sm)
BuildRequires:  libXxf86misc-devel
# 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

%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
%makeinstall
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -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
%config %{_sysconfdir}/dbus-1/system.d/org.mate.SettingsDaemon.DateTimeMechanism.conf
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/xrandr
%{_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}/%{name}/
%{_datadir}/polkit-1/actions/org.mate.settingsdaemon.datetimemechanism.policy
%{_datadir}/glib-2.0/schemas/*.xml
%{_mandir}/man1/%{name}.1.gz

%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