xosview-vl.spec 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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: 2%{?_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. * Thu Sep 01 2016 Toshiaki Ara <ara_t@384.jp> - 1.16-2
  81. - rebuild with gcc-5.4.0
  82. * Fri Apr 3 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.16-1
  83. - updated to 1.16
  84. * Thu Mar 22 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.9.2-1
  85. - new upstream release; new upstream location
  86. - spec revamp based on Fedora
  87. * Thu Jun 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-1
  88. - rebuilt with xorg-x11 7.3
  89. - fixed installed location
  90. - added -DHAVE_SNPRINTF flags to CXXFLAGS
  91. - spec in UTF-8
  92. * Sun May 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.8.3-0vl2
  93. - rebuilt with new toolchain
  94. * Mon Jan 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl1
  95. - new upstream release
  96. - changed %desktop_file to 1
  97. * Wed Jul 13 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.2-0vl1
  98. - new upstream release, work on kernel 2.6
  99. - dropped Patches (which were merged into upstream)
  100. - added BuildRequires: XOrg-devel
  101. * Thu Mar 20 2003 IWAI Masaharu <iwai@alib.jp> 1.8.0-9vl2
  102. - add README*, TODO and CHANGES in the document directory
  103. * Wed Nov 27 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.8.0-9vl1
  104. - based on 1.8.0-9 from Rawhide and built for Vine Linux
  105. - built with new toolchain environment
  106. - %%define desktop_file 0 for Vine
  107. - the previous Vine version was 1.7.1-2vl5. The changelog was as follows:
  108. - Fri Mar 15 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.7.1-2vl5
  109. - rebuilt with glibc > 2.2
  110. - Wed Jul 18 2001 <sagami@vinelinux.org>
  111. - 1.7.1-2vl5: use %%{ix86} for _arch instead of i386 :-)
  112. - Tue Feb 20 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  113. - 1.7.1-2vl4
  114. - add alpha patch (%%patch1) from Kondara
  115. - include alpha, again
  116. - Thu Jan 25 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  117. - 1.7.1-2vl3
  118. - ExcludeArch: alpha :-P
  119. - added Japanese summary and description
  120. - Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.7.1-2vl2
  121. - build on gcc-2.95.3
  122. - added patch0 for i386
  123. - partially used rpmmacros
  124. - Wed Feb 16 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  125. - 1.7.1-2vl1
  126. - modified spec for ppc archtecture
  127. * Tue Sep 17 2002 Than Ngo <than@redhat.com> 1.8.0-9
  128. - Adjust some patch files (bug #74141)
  129. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
  130. - rebuilt with gcc-3.2 (we hope)
  131. * Wed Jul 24 2002 Than Ngo <than@redhat.com> 1.8.0-7
  132. - desktop file issue (bug #69551)
  133. * Tue Jul 23 2002 Tim Powers <timp@redhat.com> 1.8.0-6
  134. - build using gcc-3.2-0.1
  135. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.8.0-5
  136. - automated rebuild
  137. * Thu Jun 20 2002 Than Ngo <than@redhat.com> 1.8.0-4
  138. - Don't forcibly strip binaries
  139. * Sun Jun 2 2002 Than Ngo <than@redhat.com> 1.8.0-3
  140. - fix a bug in cpumeter (bug #64798)
  141. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  142. - automated rebuild
  143. * Wed Apr 24 2002 Karsten Hopp <karsten@redhat.de> 1.8.0-1
  144. - update to current version
  145. - redo .proc patch
  146. - change URLs
  147. * Fri Feb 22 2002 Than Ngo <than@redhat.com> 1.7.3-10
  148. - rebuild in new environment.
  149. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  150. - automated rebuild
  151. * Tue Dec 18 2001 Than Ngo <than@redhat.com> 1.7.3-8
  152. - xosview +net goes into hard loop (bug #57150)
  153. - add patch for building against g++ 3
  154. - use RPM_OPT_FLAG
  155. * Wed Nov 14 2001 Than Ngo <than@redhat.com> 1.7.3-7
  156. - added missing Icon in desktop file
  157. - fixed Url
  158. * Wed Sep 12 2001 Tim Powers <timp@redhat.com>
  159. - rebuild with new gcc and binutils
  160. * Tue Apr 10 2001 Phil Knirsch <pknirsch@redhat.de>
  161. - Fix for s390 patch to actually work
  162. * Tue Mar 20 2001 Preston Brown <pbrown@redhat.com>
  163. - fix up .desktop entry
  164. * Sun Feb 11 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  165. - fix typo
  166. * Sun Feb 11 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  167. - adjusted s390 patches
  168. * Wed Jan 31 2001 Preston Brown <pbrown@redhat.com>
  169. - upgrade to 1.7.3, fixes (#11380)
  170. * Mon Jan 15 2001 Than Ngo <than@redhat.com>
  171. - ported to ibm s/390
  172. * Tue Jul 25 2000 Jeff Johnson <jbj@redhat.com>
  173. - migrate wmconfig to applnk.
  174. * Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
  175. - rebuild the auto-rebuild.
  176. - exclude alpha and i164 for now.
  177. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  178. - automatic rebuild
  179. * Tue Jul 2 2000 Jakub Jelinek <jakub@redhat.com>
  180. - Rebuild with new C++
  181. * Fri Jun 2 2000 Jeff Johnson <jbj@redhat.com>
  182. - rebuild for 7.0
  183. * Mon Feb 14 2000 Matt Wilson <msw@redhat.com>
  184. - rebuild on i386
  185. * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
  186. - compress man pages.
  187. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  188. - auto rebuild in the new build environment (release 2)
  189. * Mon Mar 8 1999 Jeff Johnson <jbj@redhat.com>
  190. - updated to 1.7.1.
  191. * Wed Mar 3 1999 Matt Wilson <msw@redhat.com>
  192. - updated to 1.7.0
  193. * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
  194. - build against new libstdc++, build on arm
  195. * Tue Dec 22 1998 Jeff Johnson <jbj@redhat.com>
  196. - update to 1.6.2.a.
  197. * Tue Jun 16 1998 Jeff Johnson <jbj@redhat.com>
  198. - add sparc/alpha functionality.
  199. - add %clean
  200. * Mon Jun 01 1998 Prospector System <bugs@redhat.com>
  201. - translations modified for de
  202. * Mon Jun 01 1998 Erik Troan <ewt@redhat.com>
  203. - how the hell did this get setuid root?
  204. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  205. - translations modified for de, fr, tr
  206. * Wed Apr 29 1998 Cristian Gafton <gafton@redhat.com>
  207. - upgraded to 1.5.1 (so that it compiles with egcs)
  208. - buildroot
  209. * Tue Nov 4 1997 Erik Troan <ewt@redhat.com>
  210. - commented out line causing core dumps when exiting
  211. * Fri Oct 24 1997 Marc Ewing <marc@redhat.com>
  212. - wmconfig
  213. * Fri Aug 22 1997 Erik Troan <ewt@redhat.com>
  214. - built against glibc