File mate-applets.spec of Package mate-applets
#
# spec file for package mate-applets
#
# 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-applets
Version: 1.10.3
Release: 0
Summary: A set of applets for the MATE Desktop
License: GFDL-1.1 and GPL-2.0+
Group: System/GUI/Other
Url: http://mate-desktop.org/
Source0: http://pub.mate-desktop.org/releases/%{_version}/%{name}-%{version}.tar.xz
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: libxml2-python
BuildRequires: mate-common >= 1.9.0
BuildRequires: yelp-tools
BuildRequires: pkgconfig(NetworkManager)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtksourceview-2.0)
BuildRequires: pkgconfig(gucharmap-2.90)
BuildRequires: pkgconfig(libgtop-2.0)
BuildRequires: pkgconfig(libmatepanelapplet-4.0)
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libwnck-1.0)
BuildRequires: pkgconfig(mate-desktop-2.0) >= 1.9.0
BuildRequires: pkgconfig(mate-icon-theme) >= 1.9.0
BuildRequires: pkgconfig(mate-settings-daemon) >= 1.9.0
BuildRequires: pkgconfig(mateweather) >= 1.9.0
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(popt)
BuildRequires: pkgconfig(pygobject-3.0)
BuildRequires: pkgconfig(upower-glib)
Recommends: %{name}-lang = %{version}
%glib2_gsettings_schema_requires
%description
This package provides a set of applets to use with the MATE panel.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static \
--enable-stickynotes \
--disable-frequency-selector \
--libexecdir=%{_libexecdir}/%{name}
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}
%fdupes %{buildroot}%{python_sitelib}
if [ -d %{buildroot}%{_datadir}/MateConf/ ]; then
rm -rf %{buildroot}%{_datadir}/MateConf/
fi
# Probably a mistake from upstream during migration to glib
rm -rf %{buildroot}%{_libdir}/matecomponent/servers/
%post
%icon_theme_cache_post
%icon_theme_cache_post mate
%glib2_gsettings_schema_post
%postun
%icon_theme_cache_postun
%icon_theme_cache_postun mate
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING-DOCS NEWS README
%doc %{_datadir}/help/C/mate*/
%dir %{_sysconfdir}/sound/
%dir %{_sysconfdir}/sound/events/
%config %{_sysconfdir}/sound/events/mate-battstat_applet.soundlist
%{_bindir}/mate-invest-chart
%{_libexecdir}/%{name}/
%{_datadir}/dbus-1/*/*.service
%{_datadir}/%{name}/
%{_datadir}/mate/
%{_datadir}/mate-panel/
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/mate/*/apps/*
%{_datadir}/pixmaps/mate-*
%{_mandir}/man?/mate*.?%{?ext_man}
%{_datadir}/glib-2.0/schemas/*.xml
%{python_sitelib}/mate_invest/
%files lang -f %{name}.lang
%defattr(-,root,root)
%{_datadir}/help/
%exclude %{_datadir}/help/C/
%changelog