gkrellm-vl.spec 6.5 KB

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