xosview/xosview.spec

Name: xosview
Summary: X Window System utility for monitoring system resources
Version: 1.8.3
Release: 1
License: GPL/BSD
Group: Applications/System
URL: http://xosview.sourceforge.net/
Description: The xosview utility displays a set of bar graphs which show the current system state, including memory usage, CPU usage, system load, etc. Xosview runs under the X Window System.

CentOS 7 x86_64

The build could not start because the following file is missing: xosview-1.8.3.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: xosview-1.8.3.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

### EL2 ships with xosview-1.7.3-6.72.1
%{?el2:# Tag: rfx}

%{?el4:%define _without_modxorg 1}
%{?el3:%define _without_modxorg 1}
%{?el2:%define _without_modxorg 1}

%{?el2:%define _without_freedesktop 1}

%define desktop_vendor rpmforge

Summary: X Window System utility for monitoring system resources
Name: xosview
Version: 1.8.3
Release: 1%{?dist}
License: GPL/BSD
Group: Applications/System
URL: http://xosview.sourceforge.net/

Source: http://dl.sf.net/xosview/xosview-%{version}.tar.gz
Source1: xosview.png
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: gcc-c++
%{?_without_modxorg:BuildRequires: XFree86-devel}
%{!?_without_modxorg:BuildRequires: libX11-devel}

%{!?_without_freedesktop:BuildRequires: desktop-file-utils}

%description
The xosview utility displays a set of bar graphs which show the
current system state, including memory usage, CPU usage, system load,
etc. Xosview runs under the X Window System.

%prep
%setup

%{__cat} <<EOF >xosview.desktop
[Desktop Entry]
Name=Xosview OS Monitor
Comment=Display resources in real-time
Exec=xosview
Terminal=false
Type=Application
Icon=xosview.png
Categories=Application;System;
Encoding=UTF-8
EOF

#%{__cp} -fpv %{_datadir}/libtool/config.* config/

%build
%configure \
	--disable-linux-memstat
%{__make} %{?_smp_mflags} all

%install
%{__rm} -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}%{_bindir} \
			%{buildroot}%{_mandir}/man1/ \
			%{buildroot}%{_prefix}/lib/X11/app-defaults/
%makeinstall PREFIX_TO_USE="%{buildroot}%{_prefix}"
%{__install} -Dp -m0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/xosview.png

%{__chmod} 0755 %{buildroot}%{_bindir}/xosview

%if %{?_without_freedesktop:1}0
	%{__install} -Dp -m0644 xosview.desktop %{buildroot}%{_datadir}/gnome/apps/Utilities/xosview.desktop
%else
	%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
	desktop-file-install --vendor %{desktop_vendor}    \
		--add-category X-Red-Hat-Base              \
		--dir %{buildroot}%{_datadir}/applications \
		xosview.desktop
%endif

### FIXME: Binary does not get stripped by brp-strip (RPM bug?)
strip %{buildroot}%{_bindir}/xosview

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc CHANGES COPYING* README README.linux TODO
%doc %{_mandir}/man1/xosview.1*
%{_bindir}/xosview
%{_prefix}/lib/X11/app-defaults/XOsview
%{_datadir}/icons/xosview.png
%{?_without_freedesktop:%{_datadir}/gnome/apps/Utilities/xosview.desktop}
%{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-xosview.desktop}

%changelog
* Sun Nov 26 2006 Dag Wieers <dag@wieers.com> - 1.8.3-1
- Updated to release 1.8.3.

* Mon Mar 28 2005 Dag Wieers <dag@wieers.com> - 1.8.2-1
- Updated to release 1.8.2.

* Sun Oct 10 2004 Dag Wieers <dag@wieers.com> - 1.8.0-1
- Initial package. (using DAR)