xosview-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. %define desktop_file 1
  2. %if %{desktop_file}
  3. %define desktop_file_utils_version 0.2.90
  4. %endif
  5. Summary: An X Window System utility for monitoring system resources.
  6. Summary(ja): X Window System のシステムリソースモニタ
  7. Name: xosview
  8. Version: 1.9.2
  9. Release: 1%{?_dist_release}
  10. URL: http://www.pogo.org.uk/~mark/xosview/
  11. Source0: http://www.pogo.org.uk/~mark/xosview/releases/xosview-1.9.2.tar.gz
  12. # An old png file is being used for the icon. It is located at:
  13. Source1: http://roxos.sunsite.dk/dev-contrib/guido/XOsview.png
  14. Patch0: xosview-1.9.2-appdef.patch
  15. Group: Applications/System
  16. # The netbsd/swapinternal.{cc,h} source files are BSD only (with
  17. # advertising), but neither file is used in the linux version of
  18. # xosview. Instead, the source files used are linux/swapmeter.{cc,h},
  19. # both of which fall under the GPL. All other files are either GPL
  20. # based, or can fall under either the BSD or GPL copyright.
  21. License: GPL+
  22. Buildroot: %{_tmppath}/%{name}-%{version}-root
  23. # XXX ia64 needs porting work
  24. ExcludeArch: alpha ia64 sparc
  25. BuildRequires: libX11-devel
  26. BuildRequires: libXpm-devel
  27. %if %{desktop_file}
  28. BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
  29. %endif
  30. Requires: xorg-x11-fonts-misc
  31. %description
  32. The xosview utility displays a set of bar graphs which show the
  33. current system state, including memory usage, CPU usage, system load,
  34. etc. Xosview runs under the X Window System.
  35. %description -l ja
  36. xosview は,メモリ・CPU の使用率やシステム負荷など,現在のシステムの
  37. 状態をグラフで表示するユーティリティです.xosview は X Window System
  38. 上で動作します.
  39. %prep
  40. %setup -q
  41. %patch0 -p1
  42. %build
  43. %configure
  44. %{__make} %{?_smp_mflags} all
  45. cat > %{name}.desktop <<EOF
  46. [Desktop Entry]
  47. Encoding=UTF-8
  48. Name=OS Resource Viewer
  49. Comment=
  50. Exec=xosview
  51. Terminal=false
  52. Type=Application
  53. Icon=xosview
  54. Categories=Utility;System;
  55. EOF
  56. %install
  57. %{__rm} -rf %{buildroot}
  58. %{__install} -d %{buildroot}%{_bindir} \
  59. %{buildroot}%{_mandir}/man1 \
  60. %{buildroot}%{_datadir}/icons \
  61. %{buildroot}%{_datadir}/applications \
  62. %{buildroot}%{_datadir}/X11/app-defaults
  63. %{__make} install PREFIX_TO_USE=%{buildroot}%{_prefix} INSTALL="%{__install} -p"
  64. %{__install} -p -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/%{name}.png
  65. desktop-file-install --dir %{buildroot}%{_datadir}/applications %{name}.desktop
  66. %clean
  67. rm -rf %{buildroot}
  68. %files
  69. %defattr(-,root,root,-)
  70. %doc CHANGES COPYING COPYING.GPL README README.linux TODO
  71. %{_bindir}/%{name}
  72. %{_mandir}/man1/%{name}.1*
  73. %{_datadir}/icons/%{name}.png
  74. %{_datadir}/X11/app-defaults/XOsview
  75. %{_datadir}/applications/%{name}.desktop
  76. %changelog
  77. * Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.9.2-1
  78. - new upstream release; new upstream location
  79. - spec revamp based on Fedora
  80. * Thu Jun 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-1
  81. - rebuilt with xorg-x11 7.3
  82. - fixed installed location
  83. - added -DHAVE_SNPRINTF flags to CXXFLAGS
  84. - spec in UTF-8
  85. * Sun May 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.8.3-0vl2
  86. - rebuilt with new toolchain
  87. * Mon Jan 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl1
  88. - new upstream release
  89. - changed %desktop_file to 1
  90. * Wed Jul 13 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.2-0vl1
  91. - new upstream release, work on kernel 2.6
  92. - dropped Patches (which were merged into upstream)
  93. - added BuildRequires: XOrg-devel
  94. * Thu Mar 20 2003 IWAI Masaharu <iwai@alib.jp> 1.8.0-9vl2
  95. - add README*, TODO and CHANGES in the document directory
  96. * Wed Nov 27 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.8.0-9vl1
  97. - based on 1.8.0-9 from Rawhide and built for Vine Linux
  98. - built with new toolchain environment
  99. - %%define desktop_file 0 for Vine
  100. - the previous Vine version was 1.7.1-2vl5. The changelog was as follows:
  101. - Fri Mar 15 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.7.1-2vl5
  102. - rebuilt with glibc > 2.2
  103. - Wed Jul 18 2001 <sagami@vinelinux.org>
  104. - 1.7.1-2vl5: use %%{ix86} for _arch instead of i386 :-)
  105. - Tue Feb 20 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  106. - 1.7.1-2vl4
  107. - add alpha patch (%%patch1) from Kondara
  108. - include alpha, again
  109. - Thu Jan 25 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  110. - 1.7.1-2vl3
  111. - ExcludeArch: alpha :-P
  112. - added Japanese summary and description
  113. - Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.7.1-2vl2
  114. - build on gcc-2.95.3
  115. - added patch0 for i386
  116. - partially used rpmmacros
  117. - Wed Feb 16 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  118. - 1.7.1-2vl1
  119. - modified spec for ppc archtecture
  120. * Tue Sep 17 2002 Than Ngo <than@redhat.com> 1.8.0-9
  121. - Adjust some patch files (bug #74141)
  122. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
  123. - rebuilt with gcc-3.2 (we hope)
  124. * Wed Jul 24 2002 Than Ngo <than@redhat.com> 1.8.0-7
  125. - desktop file issue (bug #69551)
  126. * Tue Jul 23 2002 Tim Powers <timp@redhat.com> 1.8.0-6
  127. - build using gcc-3.2-0.1
  128. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.8.0-5
  129. - automated rebuild
  130. * Thu Jun 20 2002 Than Ngo <than@redhat.com> 1.8.0-4
  131. - Don't forcibly strip binaries
  132. * Sun Jun 2 2002 Than Ngo <than@redhat.com> 1.8.0-3
  133. - fix a bug in cpumeter (bug #64798)
  134. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  135. - automated rebuild
  136. * Wed Apr 24 2002 Karsten Hopp <karsten@redhat.de> 1.8.0-1
  137. - update to current version
  138. - redo .proc patch
  139. - change URLs
  140. * Fri Feb 22 2002 Than Ngo <than@redhat.com> 1.7.3-10
  141. - rebuild in new environment.
  142. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  143. - automated rebuild
  144. * Tue Dec 18 2001 Than Ngo <than@redhat.com> 1.7.3-8
  145. - xosview +net goes into hard loop (bug #57150)
  146. - add patch for building against g++ 3
  147. - use RPM_OPT_FLAG
  148. * Wed Nov 14 2001 Than Ngo <than@redhat.com> 1.7.3-7
  149. - added missing Icon in desktop file
  150. - fixed Url
  151. * Wed Sep 12 2001 Tim Powers <timp@redhat.com>
  152. - rebuild with new gcc and binutils
  153. * Tue Apr 10 2001 Phil Knirsch <pknirsch@redhat.de>
  154. - Fix for s390 patch to actually work
  155. * Tue Mar 20 2001 Preston Brown <pbrown@redhat.com>
  156. - fix up .desktop entry
  157. * Sun Feb 11 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  158. - fix typo
  159. * Sun Feb 11 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  160. - adjusted s390 patches
  161. * Wed Jan 31 2001 Preston Brown <pbrown@redhat.com>
  162. - upgrade to 1.7.3, fixes (#11380)
  163. * Mon Jan 15 2001 Than Ngo <than@redhat.com>
  164. - ported to ibm s/390
  165. * Tue Jul 25 2000 Jeff Johnson <jbj@redhat.com>
  166. - migrate wmconfig to applnk.
  167. * Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
  168. - rebuild the auto-rebuild.
  169. - exclude alpha and i164 for now.
  170. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  171. - automatic rebuild
  172. * Tue Jul 2 2000 Jakub Jelinek <jakub@redhat.com>
  173. - Rebuild with new C++
  174. * Fri Jun 2 2000 Jeff Johnson <jbj@redhat.com>
  175. - rebuild for 7.0
  176. * Mon Feb 14 2000 Matt Wilson <msw@redhat.com>
  177. - rebuild on i386
  178. * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
  179. - compress man pages.
  180. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  181. - auto rebuild in the new build environment (release 2)
  182. * Mon Mar 8 1999 Jeff Johnson <jbj@redhat.com>
  183. - updated to 1.7.1.
  184. * Wed Mar 3 1999 Matt Wilson <msw@redhat.com>
  185. - updated to 1.7.0
  186. * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
  187. - build against new libstdc++, build on arm
  188. * Tue Dec 22 1998 Jeff Johnson <jbj@redhat.com>
  189. - update to 1.6.2.a.
  190. * Tue Jun 16 1998 Jeff Johnson <jbj@redhat.com>
  191. - add sparc/alpha functionality.
  192. - add %clean
  193. * Mon Jun 01 1998 Prospector System <bugs@redhat.com>
  194. - translations modified for de
  195. * Mon Jun 01 1998 Erik Troan <ewt@redhat.com>
  196. - how the hell did this get setuid root?
  197. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  198. - translations modified for de, fr, tr
  199. * Wed Apr 29 1998 Cristian Gafton <gafton@redhat.com>
  200. - upgraded to 1.5.1 (so that it compiles with egcs)
  201. - buildroot
  202. * Tue Nov 4 1997 Erik Troan <ewt@redhat.com>
  203. - commented out line causing core dumps when exiting
  204. * Fri Oct 24 1997 Marc Ewing <marc@redhat.com>
  205. - wmconfig
  206. * Fri Aug 22 1997 Erik Troan <ewt@redhat.com>
  207. - built against glibc