gkrellm-vl.spec 6.2 KB

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