gkrellm-vl.spec 6.4 KB

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