File mate-indicator-applet.spec of Package mate-indicator-applet

#
# spec file for package mate-indicator-applet
#
# 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-indicator-applet
Version:        1.10.0
Release:        0
Summary:        Information from applications consistently on the panel
License:        GPL-3.0 and LGPL-3.0
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
# Do not own /usr/share/mate-panel/applets/
BuildRequires:  mate-applets
BuildRequires:  mate-common >= 1.9.0
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(indicator-0.4)
BuildRequires:  pkgconfig(libmatepanelapplet-4.0) >= 1.9.0
BuildRequires:  pkgconfig(mate-settings-daemon) >= 1.9.0
Recommends:     %{name}-lang = %{version}
%glib2_gsettings_schema_requires

%description
The indicator applet exposes Ayatana Indicators in the MATE Panel.
Ayatana Indicators are an initiative by Canonical to provide crisp
and clean system and application status indication. They take the
form of an icon and associated menu, displayed (usually) in the
desktop panel. Existing indicators include the Message Menu,
Battery Menu and Sound menu.

%lang_package

%prep
%setup -q

%build
%configure \
  --disable-static                    \
  --disable-scrollkeeper              \
  --libexecdir=%{_libexecdir}/%{name}
make %{?_smp_mflags}

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

%post
%glib2_gsettings_schema_post

%postun
%glib2_gsettings_schema_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING COPYING.LGPL NEWS README
%{_libexecdir}/mate-indicator-applet/
%{_datadir}/dbus-1/services/org.mate.panel.applet.IndicatorApplet*.service
%{_datadir}/icons/hicolor/scalable/apps/mate-indicator-applet.svg
%{_datadir}/mate-panel/applets/org.ayatana.panel.IndicatorApplet.mate-panel-applet
%{_datadir}/mate-panel/applets/org.ayatana.panel.IndicatorAppletAppmenu.mate-panel-applet
%{_datadir}/mate-panel/applets/org.ayatana.panel.IndicatorAppletComplete.mate-panel-applet

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

%changelog
openSUSE Build Service is sponsored by