gkrellm-vl.spec 6.0 KB

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