File procmeter.spec of Package procmeter
#
# spec file for package procmeter
#
# Copyright (c) 2012 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: procmeter
Version: 3.6
Release: 0
Summary: Display actual system parameters
License: GPL-2.0+
Group: System/Monitoring
Url: http://www.gedanken.demon.co.uk/procmeter3/
Source: http://www.gedanken.demon.co.uk/download-procmeter/%{name}3-%{version}.tgz
Source1: procmeter3.desktop
%if 0%{?favor_gtk2}
BuildRequires: gtk2-devel
%else
BuildRequires: gtk3-devel
%endif
BuildRequires: libsensors4-devel
%if 0%{?suse_version} > 1210
BuildRequires: libX11-devel
BuildRequires: libXaw-devel
BuildRequires: libXt-devel
%endif
BuildRequires: update-desktop-files
Provides: procmtr
Obsoletes: procmtr
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
With procmeter one can display various system parameters as e.g.
processor load, network load, etc.
%package devel
Summary: Display actual system parameters -- Development Files
Group: Development/Libraries/Other
Requires: %{name} = %{version}
%description devel
With procmeter one can display various system parameters as e.g.
processor load, network load, etc.
This package provides files needed to build modules for procmeter.
%prep
%setup -q -n procmeter3-%{version}
%build
make INSTDIR=%{_prefix} CFLAGS="%{optflags}"
%install
%makeinstall INSTDIR=%{_prefix}
%suse_update_desktop_file -i procmeter3 System Monitor
%clean
rm -rf $RPM_BUILD_ROOT
%if 0%{?suse_version} > 1130
%post
%desktop_database_post
%endif
%if 0%{?suse_version} > 1130
%postun
%desktop_database_postun
%endif
%files
%defattr(-,root,root)
%doc ChangeLog COPYING NEWS README
%{_datadir}/applications/*.desktop
%{_bindir}/*
%{_libexecdir}/ProcMeter3/
%doc %{_mandir}/man?/*
%exclude %{_libexecdir}/ProcMeter3/example/
%files devel
%defattr(-,root,root)
%{_includedir}/ProcMeter3/
%{_libexecdir}/ProcMeter3/example/
%changelog