File gkrellm.spec of Package gkrellm

#
# spec file for package gkrellm (Version 2.3.2)
#
# 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/
#



Name:           gkrellm
Version:        2.3.2
Release:        3
License:        GPL v3 or later
Summary:        Manages Multiple Stacked Monitors
Url:            http://www.gkrellm.net
Group:          System/Monitoring
Source:         %{name}-%{version}.tar.bz2
Source1:        %name.desktop
Source2:        gkrellm-16.png
Source3:        gkrellm-24.png
Source4:        gkrellm-32.png
Source5:        gkrellm-48.png
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch0:         %{name}-libsensors.patch
# PATCH-MISSING-TAG -- See http://en.opensuse.org/Packaging/Patches
Patch1:         gkrellm-getline.patch
BuildRequires:  gtk2-devel
BuildRequires:  libsensors4-devel
BuildRequires:  openssl-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
With a single process, GKrellM manages multiple stacked monitors and
supports applying themes to match the monitors appearance to your
window manager, Gtk, or any other theme.

* SMP CPU, Disk, Proc, and active net interface monitors with LEDs.

* Internet monitor that displays current and charts historical port
   hits.

* Memory and swap space usage meters and a system uptime monitor.

* File system meters show capacity and free space and can mount and
   umount.

* A mailbox monitor that can launch a mail reader and fetch remote
   mail.

* Clock, calendar, and hostname display.

* APM laptop battery monitor.

* CPU and motherboard temperature display if lm_sensors modules are
   installed.

* Multiple monitors managed by a single process to reduce system
   load.

* PPP on and off button that can execute your PPP scripts.

* Charts are autoscaling with configurable grid line resolution.

* Separate colors for "in" and "out" data.  The in color is used for
   CPU user time, disk read, forks, and net receive data.  The out
   color is used for CPU sys time, disk write, load, and net
   transmit data.

* A different theme can be created with the GIMP.

%prep
%setup -q
%patch0
%patch1

%build
echo '#define HAVE_SSL 1' >> src/configure.h
make "CFLAGS=%{optflags} -fno-strict-aliasing" SMC_LIBS="-L/usr/X11R6/%{_lib} -lSM -lICE" LOCALEDIR="%{_datadir}/locale"

%install
mkdir -p %{buildroot}%{_prefix}/bin
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_prefix}/include
mkdir -p %{buildroot}%{_libdir}/pkgconfig
make install STRIP= \
     SMC_LIBS="-L/usr/X11R6/%{_lib} -lSM -lICE" \
     INSTALLROOT=%{buildroot}%{_prefix} \
     PKGCONFIGDIR=%{buildroot}%{_libdir}/pkgconfig \
     LOCALEDIR=%{buildroot}%{_datadir}/locale
rm -r %{buildroot}%{_includedir}/gkrellm2
rm %{buildroot}%{_libdir}/pkgconfig/gkrellm.pc
for i in {16,24,32,48}; do
   mkdir -p %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps
done
cp %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gkrellm.png
cp %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/gkrellm.png
cp %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gkrellm.png
cp %{SOURCE5} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gkrellm.png
%suse_update_desktop_file -i -G "System Monitor" %name System Monitor
%find_lang %{name}

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYRIGHT Changelog README Themes.html
%{_bindir}/*
%{_datadir}/icons/hicolor/*/apps/gkrellm.png
%{_datadir}/applications/gkrellm.desktop
%doc %{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by