source: projects/specs/trunk/g/gkrellm/gkrellm-vl.spec @ 925

Revision 925, 6.2 KB checked in by Takemikaduchi, 14 years ago (diff)

new upstream release and fix patch

Line 
1Summary:        Multiple stacked system monitors: 1 process.
2Name:           gkrellm
3Version:        2.3.4
4Release:        1%{?_dist_release}
5License:        GPL
6Group:          Applications/System
7URL:            http://members.dslextreme.com/users/billw/gkrellm/gkrellm.html
8Source:         http://members.dslextreme.com/users/billw/gkrellm/%{name}-%{version}.tar.bz2
9Vendor:         Project Vine
10Distribution:   Vine Linux
11
12# styles for vine.
13Source1:        HW-Vine2.tar.bz2
14Patch0:         gkrellm-2.3.4.ja.po.patch
15Requires:       gtk2 >= 2.4, glib2 >= 2.0
16BuildRequires:  gtk2-devel >= 2.4, glib2-devel >= 2.0, gettext
17BuildRequires:  ImageMagick, bzip2
18%if %{?_dist_release} == "vl6"
19BuildRequires:  xorg-x11-devel
20%endif
21%if %{?_dist_release} == "vl5"
22BuildRequires:  xorg-x11-devel
23%endif
24%if %{?_dist_release} == "vl4"
25BuildRequires:  XOrg-devel
26%endif
27BuildRoot:      %{_tmppath}/%{name}-%{version}-root
28
29%description
30GKrellM charts SMP CPU, load, Disk, and all active net interfaces
31automatically. An on/off button and online timer for the PPP interface
32is provided. Monitors for memory and swap usage, file system, internet
33connections, APM laptop battery, mbox style mailboxes, and cpu temps.
34Also includes an uptime monitor, a hostname label, and a clock/calendar.
35Additional features are:
36
37  * Autoscaling grid lines with configurable grid line resolution.
38  * LED indicators for the net interfaces.
39  * A gui popup for configuration of chart sizes and resolutions.
40
41%description -l ja
42Gkrellm は、
43・SMP CPU、負荷、Disk、およびすべてのアクティブなネットインターフェース
44  のチャート表示。
45・PPP インターフェィスの on/off ボタンとオンラインタイマーの提供。
46・メモリ/swap の使用量、ファイルシステム、インターネット接続、
47  APM ラップトップバッテリー、mbox 形式メールボックス、cpu 温度の監視。
48・稼働時間、ホスト名、よび時計/カレンダーの表示。
49などを行います。
50付加機能は以下の通り:
51* 設定可能なグリッドラインの精度の自動調整。
52* ネットワークインターフェィスの LED インジケータ。
53* チャートのサイズと解像度設定の為のポップアップダイアログ。
54
55%prep
56rm -rf $RPM_BUILD_ROOT
57%setup -q
58%__tar jxf  %{SOURCE1}
59%patch0 -p1
60
61%build
62
63%__make \
64    CFLAGS="$RPM_OPT_FLAGS" \
65    SMC_LIBS="-L/usr/X11R6/%{_lib} -lSM -lICE" \
66    LOCALEDIR=%{_localedir} \
67    INCLUDEDIR=%{_includedir}
68
69%install
70%__rm -rf %{buildroot}
71%__mkdir -p %{buildroot}%{_bindir}
72%__mkdir -p %{buildroot}%{_mandir}/man1
73%__mkdir -p %{buildroot}%{_libdir}/pkgconfig 
74%__mkdir -p %{buildroot}%{_includedir}/gkrellm2
75%__mkdir -p %{buildroot}%{_libdir}/gkrellm2/plugins
76%__mkdir -p %{buildroot}%{_datadir}/gkrellm2
77%__mkdir -p %{buildroot}%{_datadir}/gkrellm2/themes
78
79make install \
80    INSTALLROOT=%{buildroot}%{_prefix} \
81    PKGCONFIGDIR=%{buildroot}%{_libdir}/pkgconfig \
82    LOCALEDIR=%{buildroot}%{_datadir}/locale \
83    MANDIR=%{buildroot}%{_mandir}/man1 \
84    INCLUDEDIR=%{buildroot}%{_includedir}
85
86## %ifarch x86_64
87## # convert program terminate with segmentation fault: fix me!
88## convert gkrellm.ico gkrellm.png || [ -f gkrellm-0.png ]
89## %else
90## convert gkrellm.ico gkrellm.png
91## %endif
92
93## for i in gkrellm-*.png
94## do
95## %__install -D -p -m 644 $i \
96##     %{buildroot}%{_datadir}/pixmaps/$i
97## done
98## pushd %{buildroot}%{_datadir}/pixmaps
99## ln -s gkrellm-0.png gkrellm.png
100## popd
101## #    %{buildroot}%{_datadir}/pixmaps/gkrellm.png
102
103%__cp -a HW-Vine2 \
104    %{buildroot}%{_datadir}/gkrellm2/themes/
105
106# Install desktop menu entry
107%__mkdir -p %{buildroot}%{_datadir}/applications
108%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
109[Desktop Entry]
110Name=Gkrellm
111Name[ja]=Gkrellm
112Comment=GNU Krellm monitor
113Comment[ja]=GNU Krell モニタ
114Exec=gkrellm -w
115Icon=/usr/share/pixmaps/gkrellm-3.png
116Terminal=false
117Type=Application
118Categories=GTK;System;Monitor;
119EOF
120
121%clean
122%__rm -rf %{buildroot}
123
124%files
125%defattr(-,root,root)
126%doc COPYRIGHT Changelog README Themes.html
127%doc INSTALL
128%{_bindir}/*
129%{_mandir}/man1/*
130%dir %{_includedir}/gkrellm2
131%{_includedir}/gkrellm2/*
132%{_libdir}/pkgconfig/gkrellm.pc
133%{_datadir}/locale/*/LC_MESSAGES/gkrellm.mo
134## %{_datadir}/pixmaps/*
135%{_datadir}/gkrellm2
136%{_datadir}/applications/%{name}.desktop
137%{_libdir}/gkrellm2
138
139%changelog
140* Sun May 02 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.3.4-1
141- new upstream release
142- fix Patch0 for gkrellm-2.3.4
143
144* Fri Jul 17 2009 KATO Masashi <mkato@par.odn.ne.jp> 2.3.2-1
145- new upstream release
146- added desktop entry
147
148* Sun Feb 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> 2.3.1-2
149- rebuilt with gnutls-2.6.x
150
151* Tue Aug 26 2008 KATO Masashi <mkato@par.odn.ne.jp> 2.3.1-1
152- applied new versioning policy
153- rebuilt with xorg-x11 7.3
154- spec in UTF-8
155- added "%description -l ja" section to spec file
156
157* Thu Dec 20 2007 Shu KONNO <owa@bg.wakwak.com> 2.3.1-0vl3
158- added option SMC_LIBS in make
159- added option PKGCONFIGDIR in make install
160- added adhoc convert script because segmentation fault occurred (for x86_64)
161
162* Wed Dec 19 2007 KATO Masashi <mkato@par.odn.ne.jp> 2.3.1-0vl1, 2
163- new upstream release
164
165* Sun Jun 17 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.10-0vl2
166- rebuilt with new toolchain
167
168* Sun Jan 21 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.10-0vl1
169- new upstream release
170- s/Copyright/License/
171- updated URL
172
173* Mon Jun 28 2004 KATO Masashi <mkato@par.odn.ne.jp> 2.2.1-0vl1
174- new upstream release
175- add HW-Vine theme(test theme for gkrellm2)
176
177* Sun Jan 13 2002 Tomoya TAKA <taka@vinelinux.org> 1.2.8-0vl1
178- update to 1.2.8
179
180* Thu Aug 23 2001 Toru Sagami <sagami@vinelinux.org>
181- 1.2.2-0vl1
182
183* Thu Aug 02 2001 <sagami@vinelinux.org>
184- 1.2.1-0vl1: added more/less docs
185
186* Sun Jul 22 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
187- 1.0.8-0vl2
188- add %%defattr(-,root,root) in %files section
189- add %%{_libdir}/%{name}/plugins and %%{_datadir}/%{name}/themes
190  as system wide plugin and theme directories
191
192* Thu Jul 19 2001 <sagami@vinelinux.org>
193- 1.0.8-0vl1: enabled nls
194
195* Fri Oct  6 2000 Jun Nishii <jun@vinelinux.org>
196- 0.10.5-0vl1
197
198* Thu Apr 6 2000 Bill Wilson
199- added INCLUDEDIR to the make install
200
201* Fri Oct 29 1999 Gary Thomas <gdt@linuxppc.org>
202- .spec file still broken
203
204* Thu Oct 7 1999 David Mihm <davemann@ionet.net>
205- fixed spec.
Note: See TracBrowser for help on using the repository browser.