File mate-applets.spec of Package mate-applets

#
# spec file for mate-applets
#
# 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-applets
Version:        1.8.1
Release:        1
License:        GFDL-1.1 and GPL-2.0+
Summary:        A set of applets for the MATE Desktop
Url:            http://mate-desktop.org
Group:          System/GUI/Other
Source0:        http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
Recommends:     %{name}-lang
%glib2_gsettings_schema_requires

BuildRequires:  fdupes
BuildRequires:  hicolor-icon-theme
BuildRequires:  libxml2-python
BuildRequires:  mate-common
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)
BuildRequires:  pkgconfig(mate-icon-theme)
BuildRequires:  pkgconfig(mate-settings-daemon)
BuildRequires:  pkgconfig(mateweather)
BuildRequires:  pkgconfig(polkit-gobject-1)
BuildRequires:  pkgconfig(popt)
BuildRequires:  pkgconfig(pygobject-3.0)
BuildRequires:  pkgconfig(upower-glib)
BuildRequires:  yelp-tools

%lang_package

%description
This package provides a set of applets to use with the MATE panel.

%prep
%setup -q

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

%install
%makeinstall
%find_lang %{name}
%fdupes %{buildroot}%{_datadir}
%fdupes %{buildroot}%{python_sitelib}
if [ -d %{buildroot}%{_datadir}/MateConf ]; then
   rm -r %{buildroot}%{_datadir}/MateConf
fi

# Probably a mistake from upstream during migration to glib
rm -rf %{buildroot}%{_libdir}/matecomponent/servers

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README COPYING COPYING-DOCS
%dir %{_datadir}/mate-applets
%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}/help/C/
%{_datadir}/icons/hicolor/
%{_datadir}/icons/mate/
%{_datadir}/mate-2.0/
%{_datadir}/mate-applets/
%{_datadir}/%{name}/builder/
%{_datadir}/%{name}/geyes/
%{_datadir}/mate-panel/
%{_datadir}/pixmaps/*
%{_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
openSUSE Build Service is sponsored by