[Momonga-devel.ja:01314] GKrellM2
- From: Yonekawa Susumu <yone@xxxxxxxxxxxxx>
- Date: Thu, 30 Jan 2003 02:47:00 +0900 (JST)
米川です
新しい GKrellM を使いたくなって、gkrellm.spec を GKrellM2 対応にして
みました。よろしければ使ってください。
・plugins と themes は、全て取得し直さなければなりません
・コンパイルと、一部の動作確認しかしていません (何しろ量が多くて…)
・%ChangeLog は適当です (英語はダメダメなので…)
--
米川
%define nosrc 0
Summary: GNU (or Gtk) Krell Monitors (or Meters)
Name: gkrellm
Version: 2.1.7
Release: 1m
License: GPL
Group: Applications/System
Source0: http://web.wt.net/~billw/%{name}/%{name}-%{version}.tar.bz2
# Plugins
Source102: http://eric.bianchi.free.fr/gkrellm/gkrellmitime-1.0.tar.gz
%if %nosrc
NoSource: 102
%endif
Source103: http://telia.dl.sourceforge.net/sourceforge/gkrellkam/gkrellkam_2.0.0.tar.gz
%if %nosrc
NoSource: 103
%endif
Source106: http://telia.dl.sourceforge.net/sourceforge/gkrellmoon/gkrellmoon-0.6.tar.gz
%if %nosrc
NoSource: 106
%endif
Source109: http://www.geocities.com/m_muthukumar/gkrellaclock-0.3.2.tar.gz
%if %nosrc
NoSource: 109
%endif
Source110: http://unc.dl.sourceforge.net/sourceforge/gkrellstock/gkrellstock-0.5.tar.gz
%if %nosrc
NoSource: 110
%endif
Source111: http://telia.dl.sourceforge.net/sourceforge/gkrellshoot/gkrellshoot-0.4.1.tar.gz
%if %nosrc
NoSource: 111
%endif
Source113: http://www.peuchert.de/projects/gkPCcard/gkPCcard_r1pre1.tar.bz2
%if %nosrc
NoSource: 113
%endif
Source114: http://anchois.free.fr/gkx86info0.0.2.tar.gz
%if %nosrc
NoSource: 114
%endif
Source115: http://horus.comlab.uni-rostock.de/flynn/gkrellflynn-0.6.tar.gz
%if %nosrc
NoSource: 115
%endif
Source117: http://gkrellm.luon.net/files/gkrellmwireless-2.0.2.tar.gz
%if %nosrc
NoSource: 117
%endif
Source118: http://gkrellm.luon.net/files/gkrellm-volume-2.1.7.tar.gz
%if %nosrc
NoSource: 118
%endif
Source119: http://gkrellm.luon.net/files/gkrellmms-2.1.7.tar.gz
%if %nosrc
NoSource: 119
%endif
Source120: http://web.wt.net/~billw/gkrellm/Plugins/gkrellm-reminder-2.0.0.tar.gz
%if %nosrc
NoSource: 120
%endif
Source121: http://telia.dl.sourceforge.net/sourceforge/gkrellsun/gkrellsun-0.9.1.tar.gz
%if %nosrc
NoSource: 121
%endif
Source122: http://telia.dl.sourceforge.net/sourceforge/gkrellmlaunch/gkrellmlaunch-0.5.tar.gz
%if %nosrc
NoSource: 122
%endif
Source124: http://heim.ifi.uio.no/~oyvinha/gkleds/gkleds-0.8.1.tar.gz
%if %nosrc
NoSource: 124
%endif
# Themes
Source400: http://www.muhri.net/gkrellm/GKrellM-Skins.tar.gz
%if %nosrc
NoSource: 400
%endif
Patch0: gkrellm-font.patch
Patch1: gkrellm-plugins.patch
URL: http://gkrellm.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: gtk+-devel
BuildPrereq: xmms-devel
Requires: gtk+
%description
GKrellM is a single process stack of system monitors which supports
applying themes to match its appearance to your window manager, Gtk, or
any other theme.
%package xmms
Summary: xmms plugin for GKrellM
Group: Applications/System
Requires: %{name} = %{version}-%{release}
%description xmms
xmms plugin for GKrellM
%prep
%setup -q
%patch0 -p1
%patch1 -p1 -b .plugins
mkdir plugins
pushd plugins
tar xzf %SOURCE102
tar xzf %SOURCE103
tar xzf %SOURCE106
tar xzf %SOURCE109
tar xzf %SOURCE110
tar xzf %SOURCE111
tar xzf %SOURCE113
%ifarch %{ix86}
tar xzf %SOURCE114
%endif
tar xzf %SOURCE115
tar xzf %SOURCE117
tar xzf %SOURCE118
tar xzf %SOURCE119
tar xzf %SOURCE120
tar xzf %SOURCE121
tar xzf %SOURCE122
tar xzf %SOURCE124
popd
tar xzf %SOURCE400
%build
make CFLAGS="%{optflags}" SYSTEM_PLUGINS_DIR=%{_datadir}/gkrellm2/plugins
pushd plugins
for j in */*.*
do
/usr/bin/perl -p -i -e 's|<gkrellm.h>|"../../src/gkrellm.h"|' $j
/usr/bin/perl -p -i -e 's|<gkrellm2/gkrellm.h>|"../../src/gkrellm.h"|' $j
done
for j in */*/*.*
do
/usr/bin/perl -p -i -e 's|<gkrellm.h>|"../../../src/gkrellm.h"|' $j
/usr/bin/perl -p -i -e 's|<gkrellm2/gkrellm.h>|"../../../src/gkrellm.h"|' $j
done
for i in *
do
cd $i
if [ -e build ]; then
./build
elif [ -e gkrellflynn.c ]; then
make gkrellm2
elif [ -e src20/gkrellsun.c ]; then
pushd src20
make
cp gkrellsun.so ..
popd
else
make
fi
cd ..
done
popd
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}
make install \
INSTALLDIR=%{buildroot}%{_bindir} \
INCLUDEDIR=%{buildroot}%{_includedir} \
MANDIR=%{buildroot}%{_mandir}/man1 \
LOCALEDIR=%{buildroot}%{_datadir}/locale
# Plugins
mkdir -p %{buildroot}%{_datadir}/gkrellm2/plugins
cp plugins/*/*.so %{buildroot}%{_datadir}/gkrellm2/plugins
# Themes
mkdir -p %{buildroot}%{_datadir}/gkrellm2/themes
pushd GKrellM-skins
for i in *
do
tar xzf $i -C %{buildroot}%{_datadir}/gkrellm2/themes
done
popd
perl -p -i -e "s,\r,," \
%{buildroot}%{_datadir}/gkrellm2/themes/Evolution/gkrellmrc
perl -p -i -e "s,StyleChar ,StyleChart," \
%{buildroot}%{_datadir}/gkrellm2/themes/HeliX-Sweetpill.gkrellm/gkrellmrc*
perl -p -i -e "s,StylePane;,StylePanel," \
%{buildroot}%{_datadir}/gkrellm2/themes/HeliX-Sweetpill.gkrellm/gkrellmrc*
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%doc COPYRIGHT Changelog* README Themes.html pixmaps/gkrellmrc
%{_bindir}/gkrellm
%{_bindir}/gkrellmd
%{_datadir}/gkrellm2/plugins/gkPCcard.so
%{_datadir}/gkrellm2/plugins/gkleds.so
%{_datadir}/gkrellm2/plugins/gkrellaclock.so
%{_datadir}/gkrellm2/plugins/gkrellflynn.so
%{_datadir}/gkrellm2/plugins/gkrellkam2.so
%{_datadir}/gkrellm2/plugins/gkrellm_itime.so
%{_datadir}/gkrellm2/plugins/gkrellmlaunch.so
%{_datadir}/gkrellm2/plugins/gkrellmoon.so
%{_datadir}/gkrellm2/plugins/gkrellshoot.so
%{_datadir}/gkrellm2/plugins/gkrellstock.so
%{_datadir}/gkrellm2/plugins/gkrellsun.so
%ifarch %{ix86}
%{_datadir}/gkrellm2/plugins/gkx86info.so
%endif
%{_datadir}/gkrellm2/plugins/reminder.so
%{_datadir}/gkrellm2/plugins/volume.so
%{_datadir}/gkrellm2/plugins/wireless.so
%{_datadir}/gkrellm2/themes/*
%{_includedir}/*
%{_datadir}/locale/*/LC_MESSAGES/gkrellm.mo
%{_mandir}/man1/*.1*
%files xmms
%defattr(-,root,root)
%{_datadir}/gkrellm2/plugins/gkrellmms.so
%changelog
* Thu Jan 30 2003 Yonekawa Susumu <yone@xxxxxxxxxxxxx>
- (2.1.7-1m)
- update to 2.1.7
- update GkrellMItime to 1.0
- update GKrellKam to 2.0.0
- update gkrellmoon to 0.6
- update GKrellAclock to 0.3.2
- update GKrellStock to 0.5
- update GKrellShoot to 0.4.1
- update gkPCcard to 1.0pre1
- update Gkx86info for GKrellM2
- update GKrellflynn to 0.6
- update GKrellM-Wireless to 2.0.2
- update Volume to 2.1.7
- update GKrellMMS to 2.1.6
- update gkrellm-reminder to 2.0.0
- update gkrellsun to 0.9.1
- update GKrellMLaunch to 0.5
- add gkleds 0.8.1
- remove American Flag, Earth Anim
- remove GKrellMouse
- remove GK-Taskman
- remove gkrellmPing
- remove gkrellmwho
- remove IBAM
- remove SNMP
- remove all themes and use tarball of all the skins on www.muhri.net
- fix gkrellm-font.patch for GKrellM 2.1.6
- add system plugin directory patch
- remove gcc-3.1 patch
- system plugin directory, system theme directory were changed
- gkPCcard has normal Makefile. remove ./build_gkPCcard
- gkrellsun must be make in src20/
- requires gtk+ instead gtk1+
- remove imlib, net-snmp requires
- remove ./enable_nls on build
- add SYSTEM_PLUGINS_DIR on make command
- GKrellflynn needs make gkrellm2
- gkrellsun needs make on src20/ directory
- add %{_bindir}/gkrellmd on %files
- use %{_bindir}, %{_includedir} macro tag
* Sat Nov 9 2002 YAMAZAKI Makoto <uomaster@xxxxxxxxx>
- (1.2.13-2m)
- add gcc-3.1 patch
* Sun Jul 28 2002 YAMAZAKI Makoto <uomaster@xxxxxxxxx>
- (1.2.13-1m)
- update to 1.2.13
- update gkrellmms to 0.5.7, and remove gkrellmms-patch-0.5.5 (merged)
- update gkrellkam to 0.3.4
- update gkrellaclock to 0.2
- update gkrellstock to 0.4
- update gkrellshoot to 0.3.11
- update gkPCcard to r0.5
* Thu May 30 2002 YAMAZAKI Makoto <zaki@xxxxxxxxxxx>
- (1.2.11-10k)
- cancel gcc-3.1 autoconf-2.53
* Sat May 25 2002 YAMAZAKI Makoto <zaki@xxxxxxxxxxx>
- (1.2.11-8k)
- gcc 3.1(Patch100: gkrellm-gcc31.patch)
* Mon Apr 29 2002 Toru Hoshina <t@xxxxxxxxxxx>
- (1.2.11-6k)
- muki-. gkx86info.so is x86 only.
* Mon Apr 29 2002 Kazuhiko <kazuhiko@xxxxxxxxxxx>
- (1.2.11-4k)
- separate xmms plugin and snmp plugin
* Sat Apr 27 2002 Kenta MURATA <muraken@xxxxxxxxxxx>
- (1.2.11-2k)
- version up.
- apply patch for gkrellmms-0.5.5.
- omit NoSource: 0.
* Mon Feb 18 2002 Shingo Akagaki <dora@xxxxxxxxxxx>
- (1.2.8-12k)
- rebuild against for ucd-snmp 4.2.3
* Fri Feb 15 2002 Shingo Akagaki <dora@xxxxxxxxxxx>
- (1.2.8-10k)
- add xmms-devel build require
* Tue Jan 15 2002 Tsutomu Yasuda <tom@xxxxxxxxxxxxxxxxxxxx>
- (1.2.8-8k)
remove fmonitor.
dora ni o ko ra re ta------
* Wed Jan 9 2002 OZAWA -Crouton- Sakuro <crouton@xxxxxxxxxxx>
- (1.2.8-6k)
- Should BuildPreReq: ucd-snmp-devel.
* Mon Jan 7 2002 Tsutomu Yasuda <tom@xxxxxxxxxxx>
- (1.2.8-4k)
niwatama
* Mon Jan 7 2002 Tsutomu Yasuda <tom@xxxxxxxxxxx>
- (1.2.8-2k)
update
* Sun Dec 9 2001 Toru Hoshina <t@xxxxxxxxxxx>
- (1.2.5-6k)
alpha....
* Fri Dec 7 2001 Tsutomu Yasuda <tom@xxxxxxxxxxx>
- (1.2.5-2k)
added plugins and themes
* Tue Dec 4 2001 Toru Hoshina <t@xxxxxxxxxxx>
- (1.2.4-6k)
- add plugins dir. it'd be owned by gkrellm itself.
* Fri Nov 9 2001 Tsutomu Yasuda <tom@xxxxxxxxxxx>
- (1.2.4-4k)
enabled font_override & use_fontset
changed default font
* Thu Nov 01 2001 Motonobu Ichimura <famao@xxxxxxxxxxx>
- (1.2.4-2k)
- up to 1.2.4
* Wed Oct 17 2001 Toru Hoshina <t@xxxxxxxxxxx>
- (1.2.2-6k)
- rebuild against gettext 0.10.40.
* Sun Sep 16 2001 Kazuhiko <kazuhiko@xxxxxxxxxxx>
- (1.2.2-4k)
- add gkrellmrc to document dir
* Sun Aug 26 2001 Shingo Akagaki <dora@xxxxxxxxxxx>
- (1.2.2-2k)
- from Jirai (1.2.2-3k)
* Sun Aug 26 2001 Motonobu Ichimura <famao@xxxxxxxxxxx>
- (1.2.2-3k)
- up to 1.2.2
- cleanup spec file
* Wed Feb 15 2001 Daisuke Yabuki <dxy@xxxxxxx>
- (1.0.6-3k)
- initial build
diff -urN gkrellm-2.1.6.orig/src/gkrellm.h gkrellm-2.1.6/src/gkrellm.h
--- gkrellm-2.1.6.orig/src/gkrellm.h 2003-01-22 02:15:51.000000000 +0900
+++ gkrellm-2.1.6/src/gkrellm.h 2003-01-25 00:57:31.000000000 +0900
@@ -119,7 +119,7 @@
#endif
#define LOCAL_PLUGINS_DIR "/usr/local/lib/gkrellm2/plugins"
#if !defined(SYSTEM_PLUGINS_DIR)
-#define SYSTEM_PLUGINS_DIR "/usr/lib/gkrellm2/plugins"
+#define SYSTEM_PLUGINS_DIR "/usr/share/gkrellm2/plugins"
#endif
#else