Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 97caf96bbd7edb05a01af1c9d2e1475a > files > 4

gkrellm-2.2.4-4mdk.src.rpm

%define name	gkrellm
%define version 2.2.4
%define release 4mdk

Summary:	Multiple stacked system monitors
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Monitoring
URL:		http://gkrellm.net
Source0:	http://web.wt.net/~billw/gkrellm/%{name}-%{version}.tar.bz2
Source4:	gkrellm-themes.tar.bz2
Source5:	gkrellmd.init.bz2
Source6:	%{name}.bash-completion.bz2
BuildRequires:	gettext
BuildRequires:	gtk+2-devel
BuildRequires:	ImageMagick
BuildRequires:	file
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
GKrellM charts SMP CPU, load, Disk, and all active net interfaces
automatically. An on/off button and online timer for the PPP interface
is provided. Monitors for memory and swap usage, file system, internet
connections, APM laptop battery, mbox style mailboxes, and cpu temps.
Also includes an uptime monitor, a hostname label, and a clock/calendar.
Additional features are:

  * Autoscaling grid lines with configurable grid line resolution.
  * LED indicators for the net interfaces.
  * A gui popup for configuration of chart sizes and resolutions.

%package	devel
Summary:	Include files for gkrellm
Group:		Development/Other
Requires:	%name = %version

%description	devel
gkrellm header files for gkrellm development and plugin support.

%package	server
Summary:	Server component for gkrellm
Group:		Monitoring
PreReq:		rpm-helper

%description	server
The server component allows you to monitor a server remotely from 
a client running gkrellm, without installing gkrellm on the server.

%prep
%setup -q
%setup -q -D -T -a4
bzcat %{SOURCE5} > %{name}.init
bzcat %{SOURCE6} > %{name}.bash-completion
for i in `find -type d -name .xvpics`
	do rm -rf $i
done
# make it lib64 aware
perl -pi -e "/PLUGINS_DIR/ and s|/lib/|/%{_lib}/|g" ./src/gkrellm.h
perl -pi -e "s|/lib/|/%{_lib}/|" Makefile

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
rm -rf %{buildroot}
mkdir -p %{buildroot}
#./enable_nls
%make CFLAGS="$RPM_OPT_FLAGS" \
      SMC_LIBS="-L%{_prefix}/X11R6/%{_lib} -lSM -lICE" \
      LOCALEDIR=%{_datadir}/locale


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_bindir}
make install INSTALLROOT=%{buildroot}%{_prefix} INSTALLDIR=%{buildroot}/%{_bindir} \
  INCLUDEDIR=%{buildroot}%{_includedir} MANDIR=%{buildroot}%{_mandir}/man1 \
  LOCALEDIR=%{buildroot}%{_datadir}/locale

mkdir -p %{buildroot}%{_libdir}/%{name}2/plugins

mkdir -p %{buildroot}{%{_iconsdir},%{_liconsdir},%{_miconsdir}}
# support two known weird output naming standards...
convert %{name}.ico %{name}.png
if [ -f %{name}.png.0 ]; then mv %{name}.png.0 %{name}.png; fi
if [ -f %{name}-0.png ]; then mv %{name}-0.png %{name}.png; fi
convert %{name}.png -geometry 48x48 %{buildroot}%{_liconsdir}/%{name}.png
convert %{name}.png -geometry 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert %{name}.png -geometry 16x16 %{buildroot}%{_miconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/%{name}2/themes
cp -av gkrellm-themes/* %{buildroot}%{_datadir}/%{name}2/themes

mkdir -p %{buildroot}%{_menudir}
cat > %{buildroot}%{_menudir}/gkrellm <<EOF
?package(gkrellm): \
command="%{_bindir}/gkrellm" \
title="Gkrellm" \
longtitle="A GTK-based monitoring app" \
needs="x11" \
section="Applications/Monitoring" \
icon="monitoring_section.png" \
startup_notify="true"
EOF

install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 server/gkrellmd.conf %{buildroot}%{_sysconfdir}

install -d -m 755 %{buildroot}%{_initrddir}
install -m 755 %{name}.init %{buildroot}%{_initrddir}/gkrellmd

install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 644 %{name}.bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

%multiarch_includes %{buildroot}%{_includedir}/gkrellm2/gkrellm.h
%multiarch_includes %{buildroot}%{_includedir}/gkrellm2/gkrellmd.h

%{find_lang} %{name}

%clean
rm -rf %{buildroot}

%post
%update_menus
   
%postun
%clean_menus

%post server
%_post_service gkrellmd 

%preun server
%_preun_service gkrellmd


%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYRIGHT Changelog INSTALL README *.html
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
%{_bindir}/gkrellm
%{_menudir}/*
%{_iconsdir}/gkrellm.png
%{_liconsdir}/gkrellm.png
%{_miconsdir}/gkrellm.png 
%{_mandir}/man1/gkrellm.1*
%{_libdir}/gkrellm2
%{_datadir}/gkrellm2

%files devel
%defattr(-,root,root)
%doc *.html
%{_includedir}/gkrellm2
%{_libdir}/pkgconfig/gkrellm.pc
%multiarch %{_includedir}/multiarch-*/gkrellm2

%files server
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/gkrellmd.conf
%attr(0755,root,root) %{_initrddir}/gkrellmd
%{_bindir}/gkrellmd
%{_mandir}/man1/gkrellmd.1*

%changelog
* Wed Mar 16 2005 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.2.4-4mdk
- fix the convert stuff
- fix rpmlint errors

* Mon Jan 31 2005 Guillaume Rousse <guillomovitch@mandrake.org> 2.2.4-3mdk 
- more multiarch fix
- spec cleanup

* Fri Jan 21 2005 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.2.4-2mdk
- multiarch

* Thu Oct 28 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 2.2.4-1mdk
- New release 2.2.4

* Thu Jul 22 2004 Guillaume Rousse <guillomovitch@mandrakesoft.com> 2.2.2-1mdk
- New release 2.2.2

* Fri Jun 11 2004 Guillaume Rousse <guillomovitch@mandrake.org> 2.2.1-1mdk 
- new version
- rpmbuildupdate aware

* Wed Mar 31 2004 Guillaume Rousse <guillomovitch@mandrake.org> 2.1.28-1mdk
- new version

* Thu Jan 22 2004 Guillaume Rousse <guillomovitch@mandrake.org> 2.1.25-2mdk
- build icon from sources (Charles A Edwards <eslrahc@bellsouth.net>)

* Thu Jan 22 2004 Guillaume Rousse <guillomovitch@mandrake.org> 2.1.25-1mdk
- new version

* Mon Jan 05 2004 Abel Cheung <deaddog@deaddog.org> 2.1.24-3mdk
- Remove bash-completion dependency

* Mon Dec 29 2003 Guillaume Rousse <guillomovitch@mandrake.org> 2.1.24-2mdk
- added bash-completion
- bzipped additional sources

* Sat Dec 27 2003 Guillaume Rousse <guillomovitch@mandrake.org> 2.1.24-1mdk
- new version

* Thu Dec 18 2003 Guillaume Rousse <guillomovitch@mandrake.org> 2.1.23-1mdk
- new version

* Wed Dec 17 2003 Guillaume Rousse <guillomovitch@mandrake.org> 2.1.22-1mdk
- new version

* Tue Nov 18 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 2.1.21-1mdk
- new version

* Wed Oct  8 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.1.16-2mdk
- lib64 fixes

* Thu Aug 21 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 2.1.16-1mdk
- 2.1.16

* Fri Aug 08 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 2.1.15-2mdk
- rebuild

* Wed Aug 06 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 2.1.15-1mdk
- 2.1.15

* Tue Jul 08 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 2.1.14-2mdk
- fix l10n - specify correct LOCALEDIR during build instead of default
  /usr/local/share/locale (Andrey Borzenkov <arvidjaar@mail.ru>)

* Mon Jun 30 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 2.1.14-1mdk
- 2.1.14

* Sat Jun 21 2003 Guillaume Rousse <guillomovitch@linux-mandrake.com> 2.1.12-2mdk
- plugins dir is %{_libdir}/gkrellm2
- spec cleanup

* Sat Jun 14 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 2.1.12-1mdk
- 2.1.12a
- use $RPM_OPT_FLAGS
- fix pkgconfig file
- get rid of .xvpics files
- fix unowned dirs

* Tue Apr  8 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 2.1.7a-3mdk
- Make it lib64 aware

* Thu Jan 30 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.7a-2mdk
- gkrellmd initscript is back (thanks to Buchan Milne)

* Thu Jan 30 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.7a-1mdk
- Release 2.1.7a

* Mon Jan 13 2003 Frederic Crozat <fcrozat@mandrakesoft.com> 2.1.5-1mdk
- Release 2.1.5

* Wed Oct 16 2002 Vincent Danen <vdanen@mandrakesoft.com> 2.0.4-2mdk
- rebuild

* Fri Oct 11 2002 Vincent Danen <vdanen@mandrakesoft.com> 2.0.4-1mdk
- 2.0.4
- fix menu
- include gkrellmd manpage
- from bgmilne@linux-mandrake.com:
  - 2.0.0
  - BuildRequires pkgconfig, gtk+2-devel
  - Put binaries in bindir, not prefix/X11R6/bin
  - Add server package for gkrellmd

* Tue Sep  3 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.2.13-3mdk
- fix icons (re: Robby Stephenson)

* Wed Aug 21 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.2.13-2mdk
- remove language files from devel package (conflicts)

* Fri Aug 09 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.2.13-1mdk
- 1.2.13

* Tue Jul 16 2002 Stefan van der Eijk <stefan@eijk.nu> 1.2.11-2mdk
- BuildRequires

* Sat May 04 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.2.11-1mdk
- 1.2.11

* Sat Mar 02 2002 David BAUDENS <baudens@mandrakesoft.com> 1.2.8-2mdk
- Use monitoring_section.png for menu (so don't break E menu)
- Requires: %%version-%%release and not only %%version

* Thu Jan 31 2002 Vincent Danen <vdanen@mandrakesoft.com> 1.2.8-1mdk
- 1.2.8
- include some themes as another source package and not in the gkrellm
  source package (bad)
- convert menu icons to png

* Wed Nov  7 2001 Sebastien Dupont <sdupont@mandrakesoft.com> 1.2.4-2mdk
- include some themes

* Wed Oct 31 2001 Sebastien Dupont <sdupont@mandrakesoft.com> 1.2.4-1mdk
- new version 1.2.4

* Wed Oct 31 2001 Sebastien Dupont <sdupont@mandrakesoft.com> 1.2.2-3mdk
- lang problems & doc

* Fri Oct 19 2001 Sebastien Dupont <sdupont@mandrakesoft.com> 1.2.2-2mdk
- License

* Sat Sep 29 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.2.2-1mdk
- 1.2.2
- include locales

* Thu Aug  9 2001 Stew Benedict <sbenedict@mandrakesoft.com> 1.2.1-1mdk
- 1.2.1 s/Copyright/License/ move plugins to /usr/lib/gkrellm for FHS

* Mon Apr 30 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.8-1mdk
- 1.0.8

* Wed Mar 14 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.7-1mdk
- 1.0.7

* Wed Jan 31 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.6-1mdk
- 1.0.6

* Tue Jan 23 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.5-1mdk
- 1.0.5

* Tue Jan 16 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.4-1mdk
- 1.0.4

* Sun Jan 07 2001 Vincent Danen <vdanen@mandrakesoft.com> 1.0.3-1mdk
- 1.0.3

* Wed Nov 15 2000 Vincent Danen <vdanen@mandrakesoft.com> 1.0.2-1mdk
- 1.0.2

* Mon Nov  6 2000 Vincent Danen <vdanen@mandrakesoft.com> 1.0.1-2mdk
- rebuild for new libstdc++

* Thu Oct 20 2000 Vincent Danen <vdanen@mandrakesoft.com> 1.0.1-1mdk
- 1.0.1

* Fri Oct 13 2000 Vincent Danen <vdanen@mandrakesoft.com> 1.0.0-1mdk
- 1.0.0

* Fri Oct 06 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.10.5-3mdk
- added missing icons

* Tue Aug 08 2000 Frederic Lepied <flepied@mandrakesoft.com> 0.10.5-2mdk
- automatically added BuildRequires

* Mon Aug 07 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.10.5-1mdk
- 0.10.5
- more macros
- added requires version for gkrellm-devel
- move include dir from /usr/X11R6/include to /usr/include

* Wed Jul 12 2000 Vincent Danen <vdanen@mandrakesoft.com> 0.10.4-1mdk
- 0.10.4
- macroization
- move plugins to their own RPM
- add devel package

* Wed Jul 05 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.10.2-1mdk
- v 0.10.2

* Wed May 24 2000 Vincent Danen <vdanen@linux-mandrake.com> 0.9.10-1mdk
- 0.9.10
- bzip2 patches
- comment out all plugins since they refuse to compile

* Tue Apr 25 2000 Vincent Danen <vdanen@linux-mandrake.com> 0.9.8-1mdk
- 0.9.8
- Added gkrellmms plugin by Sander Lebbink <sander@cerberus.demon.nl>

* Mon Apr 10 2000 Lenny Cartier <lenny@mandrakesoft.com> 0.9.7-1mdk
- fix group
- add menu entry

* Fri Mar 24 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.9.7

* Sun Mar 12 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.9.6
- Added seti@home plugin by Henry Palonen <henkka@yty.net>
- Added plugin to to display fan speeds by Jarkko Lietolahti <jappe@iki.fi>
- since plugins (currently) need to be in ~/.gkrellm/plugins, you must
  symlink to the plugins in /usr/share/gkrellm/plugins

* Fri Mar 3 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.9.5

* Mon Feb 28 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.9.4
- libgtop is no longer required

* Thu Feb 24 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.9.3

* Wed Feb 23 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.9.1

* Tue Feb 22 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.9.0
- libgtop-devel is now required but it seems to be broken as the
  glibtop-config.h is in /usr/lib/libgtop/include and not /usr/include/ like
  it should be (you must manually copy before building the RPM)

* Sun Feb 13 2000 Vincent Danen <vdanen@linux-mandrake.com>
- 0.8.1

* Mon Dec 06 1999 Lenny Cartier <lenny@mandrakesoft.com>
- 0.7.5

* Fri Nov 19 1999 Lenny Cartier <lenny@mandrakesoft.com>
- New in contrib
- Used the SRPMS provided by Vincent Danen
- bz2 archive
- 0.7.4

* Wed Nov 17 1999 Vincent Danen <vdanen@linux-mandrake.com>
- updated specfile for Mandrake contribution

* Thu Nov 11 1999 Vincent Danen <vdanen@softhome.net>
- wrote spec file
- 0.7.3