File mate-netspeed.spec of Package mate-netspeed
#
# spec file for mate-netspeed
#
# 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-netspeed
Version: 1.8.0
Release: 0
License: GPL-2.0
Summary: MATE Desktop window management tool
Url: http://mate-desktop.org
Group: System/GUI/Other
Source: http://pub.mate-desktop.org/releases/1.8/%{name}-%{version}.tar.xz
Requires: mate-panel >= 1.8.0
#Requires: hicolor-icon-theme
Recommends: %{name}-lang
%glib2_gsettings_schema_requires
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
BuildRequires: libxml2-python
BuildRequires: mate-common
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(libgtop-2.0)
BuildRequires: pkgconfig(libmatepanelapplet-4.0) >= 1.8.0
BuildRequires: yelp-tools
%description
This package provides a simple window management tool which provides the
following functionality:
* Allow to set basic rules for window types;
* Allow exceptions to the rules based on string matching for window
name and window class;
* Allows reversing of rules when the user manually changes something;
* Re-decorates windows on un-maximize
%lang_package
%prep
%setup -q
%build
%configure --libexecdir=%{_libexecdir}/%{name} --disable-scrollkeeper
make %{?_smp_mflags}
%install
%makeinstall
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
# wipe this, need a fix by upstream, linking against itself ?
#rm -f %{buildroot}%{_datadir}/mate/help/mate_netspeed_applet/C/figures/mate_netspeed_applet.png
#touch %{buildroot}%{_datadir}/mate/help/mate_netspeed_applet/C/figures/mate_netspeed_applet.png
%post
%glib2_gsettings_schema_post
%icon_theme_cache_post
%postun
%glib2_gsettings_schema_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc ChangeLog README COPYING
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/mate-netspeed-applet
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/C/mate_netspeed_applet/
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mate-panel/
%files lang -f %{name}.lang
%defattr(-,root,root,-)
%{_datadir}/help
%exclude %{_datadir}/help/C
%changelog