xosview-vl.spec 8.2 KB

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