File mate-netspeed.spec of Package mate-netspeed
#
# spec file for package mate-netspeed
#
# 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-netspeed
Version: 1.10.2
Release: 0
Summary: MATE Desktop window management tool
License: GPL-2.0
Group: System/GUI/Other
Url: http://mate-desktop.org/
Source: 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(dbus-glib-1)
BuildRequires: pkgconfig(libgtop-2.0)
BuildRequires: pkgconfig(libmatepanelapplet-4.0) >= 1.9.0
BuildRequires: pkgconfig(mate-desktop-2.0) >= 1.9.0
Requires: hicolor-icon-theme
Requires: mate-panel >= 1.9.0
Recommends: %{name}-lang = %{version}
%glib2_gsettings_schema_requires
%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}
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}%{_datadir}
%post
%icon_theme_cache_post
%glib2_gsettings_schema_post
%postun
%icon_theme_cache_postun
%glib2_gsettings_schema_postun
%files
%defattr(-,root,root)
%doc AUTHORS COPYING README NEWS
%{_libexecdir}/%{name}/
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/C/%{name}-applet/
%{_datadir}/icons/hicolor/*/*/*
%dir %{_datadir}/mate-panel/
%dir %{_datadir}/mate-panel/applets/
%{_datadir}/mate-panel/applets/org.mate.panel.NetspeedApplet.mate-panel-applet
%dir %{_datadir}/mate-panel/ui/
%{_datadir}/mate-panel/ui/netspeed-menu.xml
%files lang -f %{name}.lang
%defattr(-,root,root)
%{_datadir}/help/
%exclude %{_datadir}/help/C/
%changelog