File gnome-netspeed-applet.spec of Package gnome-netspeed-applet

#
# spec file for package gnome-netspeed-applet
#
# Copyright (c) 2011 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:           gnome-netspeed-applet
%define _name   netspeed_applet
Summary:        GNOME Applet to show the speed of the network connection
Version:        0.16
Release:        168
Url:            http://projects.gnome.org/netspeed/
License:        GPL-2.0+
Group:          Productivity/Networking/Diagnostic
Source0:        %{_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gnome-netspeed-applet-gnome3.patch bgo#637048 vuntz@opensuse.org -- Port to GNOME 3 technologies, taken from upstream bug
Patch0:         gnome-netspeed-applet-gnome3.patch
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  libtool
%if 0%{?favor_gtk2}
BuildRequires:  gnome-panel-devel
BuildRequires:  libgtop-devel
%else
BuildRequires:  pkgconfig(libgtop-2.0)
BuildRequires:  pkgconfig(libpanelapplet-4.0)
%endif
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Netspeed is just a little GNOME-applet that shows how much traffic
occurs on a specified network device (for example eth0).

%lang_package
%prep
%setup -q -n %{_name}-%{version}
%if !0%{?favor_gtk2}
%patch0 -p1
autoreconf -fi
%endif

%build
%configure \
        --disable-scrollkeeper
%__make

%install
%makeinstall
%find_lang %{_name} %{?no_lang_C}

%clean
rm -rf $RPM_BUILD_ROOT

%if 0%{?suse_version} > 1130

%post
%icon_theme_cache_post

%postun
%icon_theme_cache_postun
%endif

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README TODO
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/netspeed_applet/
%doc %{_datadir}/gnome/help/netspeed_applet/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/netspeed_applet/
%doc %{_datadir}/omf/netspeed_applet/netspeed_applet-C.omf
%{_datadir}/icons/hicolor/*/apps/netspeed-applet.*
%{_datadir}/icons/hicolor/*/devices/netspeed-*.png
%{_datadir}/icons/hicolor/*/status/netspeed-wireless-*.png
%if 0%{?favor_gtk2}
%{_libdir}/bonobo/servers/GNOME_NetspeedApplet.server
%else
%{_datadir}/dbus-1/services/org.gnome.panel.applet.NetspeedAppletFactory.service
%{_datadir}/gnome-panel/4.0/applets/org.gnome.panel.Netspeed.panel-applet
%endif
%{_libexecdir}/netspeed_applet2

%files lang -f %{_name}.lang

%changelog