File gnome-system-monitor.spec of Package gnome-system-monitor

#
# spec file for package gnome-system-monitor (Version 2.28.0)
#
# Copyright (c) 2009 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/
#

# norootforbuild


Name:           gnome-system-monitor
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-icon-theme-devel
BuildRequires:  gtk2-devel
BuildRequires:  gtkmm2-devel
BuildRequires:  intltool
BuildRequires:  libgtop-devel
BuildRequires:  librsvg-devel
BuildRequires:  libwnck-devel
BuildRequires:  libxml2-devel
BuildRequires:  update-desktop-files
BuildRequires:  hal-devel
BuildRequires:  hwinfo-devel
License:        GPL v2 or later
Group:          System/GUI/GNOME
Version:        2.28.0
Release:        1
Source0:        ftp://ftp.gnome.org/pub/GNOME/sources/gnome-system-monitor/2.24/%{name}-%{version}.tar.bz2
# PATCH-FEATURE-OPENSUSE gnome-system-monitor-fate302198.diff FATE#302198 bgo582311 hfiguiere@novell.com -- Add a hardware tab
Patch1:         gnome-system-monitor-fate302198.diff
# PATCH-FEATURE-OPENSUSE gnome-system-monitor-fate304741.diff FATE#304741 bgo582312 hfiguiere@novell.com -- Add a thinkpad tab
Patch2:         gnome-system-monitor-fate304741.diff
Url:            http://www.gnome.org
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        A Simple Process Monitor
Requires:       gnome-icon-theme
Requires:       %{name}-lang = %{version}
Requires:       /usr/bin/lsb_release
%gconf_schemas_prereq

%description
GNOME-system-monitor (formerly Procman) is a simple process and system
monitor for the GNOME 2.x Desktop.



Authors:
--------
    Kevin Vandersloot <kfv101@psu.edu>
    Erik Johnsson <zaphod@linux.nu>

%lang_package
%prep
%setup -q
%patch1
%patch2 -p1

%build
autoreconf -si
%configure \
    --disable-scrollkeeper \
    --enable-pcrecpp
%__make %{?jobs:-j%jobs}

%install
%makeinstall
# Icon is installed in GNOME-only path:
ln -s ../icons/gnome/32x32/apps/utilities-system-monitor.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/
echo DocPath=gnome-system-monitor >> $RPM_BUILD_ROOT%{_datadir}/applications/gnome-system-monitor.desktop
%suse_update_desktop_file -N "GNOME System Monitor" gnome-system-monitor System Monitor
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/gnome-system-monitor
%{_datadir}/applications/gnome-system-monitor.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/gnome-system-monitor

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by