xosview-vl.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  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.8.3
  9. Release: 1%{?_dist_release}
  10. Exclusiveos: Linux
  11. Source0: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  12. URL: http://xosview.sourceforge.net/
  13. Source1: xosview.png
  14. Patch0: xosview-non-i386.patch
  15. Patch1: xosview-io_h.patch
  16. Patch2: xosview-ppc.patch
  17. Patch3: xosview-rpath.patch
  18. Patch5: xosview-1.7.1-s390.patch
  19. Patch6: xosview-1.8.0-proc.patch
  20. Patch7: xosview-1.7.3-gcc3.patch
  21. Patch8: xosview-1.8.0-procstat.patch
  22. Patch9: xosview-1.8.0-strip.patch
  23. License: GPL/BSD
  24. Group: Applications/System
  25. Buildroot: %{_tmppath}/%{name}-%{version}-root
  26. # XXX ia64 needs porting work
  27. ExcludeArch: alpha ia64 sparc
  28. BuildRequires: libX11-devel
  29. %if %{desktop_file}
  30. BuildRequires: desktop-file-utils >= %{desktop_file_utils_version}
  31. %endif
  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 -p0
  43. #%patch1 -p0
  44. #%patch2 -p1 -b .ppc
  45. #%patch3 -p0
  46. #%patch5 -p1 -b .s390
  47. #%patch6 -p1 -b .proc
  48. #%patch7 -p1 -b .gcc3
  49. #%patch8 -p1 -b .procstat
  50. #%patch9 -p1 -b .strip
  51. # --- XXX Cruft Alert!
  52. rm -f linux/*.o
  53. %build
  54. export CXX=g++
  55. %{__cp} /usr/share/libtool/config.* config/
  56. CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated -DHAVE_SNPRINTF" %configure --disable-linux-memstat
  57. make all
  58. %install
  59. rm -rf %{buildroot}
  60. mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1,%{_datadir}/X11/app-defaults} \
  61. %{buildroot}%{_datadir}/icons
  62. make install PREFIX_TO_USE=$RPM_BUILD_ROOT%{_prefix} \
  63. XAPPLOADDIR=$RPM_BUILD_ROOT%{_datadir}/X11/app-defaults
  64. install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icons
  65. chmod u-s %{buildroot}%{_bindir}/*
  66. %if %{desktop_file}
  67. mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
  68. desktop="%{buildroot}%{_datadir}/applications/xosview.desktop"
  69. %else
  70. mkdir -p %{buildroot}/etc/X11/applnk/Utilities
  71. desktop="%{buildroot}/etc/X11/applnk/Utilities/xosview.desktop"
  72. %endif
  73. cat > $desktop <<EOF
  74. [Desktop Entry]
  75. Encoding=UTF-8
  76. Categories=Application;System;
  77. name=xosview
  78. Comment=OS resource statistics Viewer
  79. Exec=xosview
  80. Terminal=false
  81. Type=Application
  82. Icon=/usr/share/icons/xosview.png
  83. EOF
  84. %clean
  85. rm -rf %{buildroot}
  86. %files
  87. %defattr(-,root,root,0755)
  88. %doc README* TODO CHANGES
  89. %{_bindir}/xosview
  90. %{_mandir}/man1/*
  91. %{_datadir}/X11/app-defaults/XOsview
  92. %{_datadir}/icons/*
  93. %if %{desktop_file}
  94. %{_datadir}/applications/*
  95. %else
  96. /etc/X11/applnk/Utilities/xosview.desktop
  97. %endif
  98. %changelog
  99. * Thu Jun 5 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-1
  100. - rebuilt with xorg-x11 7.3
  101. - fixed installed location
  102. - added -DHAVE_SNPRINTF flags to CXXFLAGS
  103. - spec in UTF-8
  104. * Sun May 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.8.3-0vl2
  105. - rebuilt with new toolchain
  106. * Mon Jan 8 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl1
  107. - new upstream release
  108. - changed %desktop_file to 1
  109. * Wed Jul 13 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.2-0vl1
  110. - new upstream release, work on kernel 2.6
  111. - dropped Patches (which were merged into upstream)
  112. - added BuildRequires: XOrg-devel
  113. * Thu Mar 20 2003 IWAI Masaharu <iwai@alib.jp> 1.8.0-9vl2
  114. - add README*, TODO and CHANGES in the document directory
  115. * Wed Nov 27 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.8.0-9vl1
  116. - based on 1.8.0-9 from Rawhide and built for Vine Linux
  117. - built with new toolchain environment
  118. - %%define desktop_file 0 for Vine
  119. - the previous Vine version was 1.7.1-2vl5. The changelog was as follows:
  120. - Fri Mar 15 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.7.1-2vl5
  121. - rebuilt with glibc > 2.2
  122. - Wed Jul 18 2001 <sagami@vinelinux.org>
  123. - 1.7.1-2vl5: use %%{ix86} for _arch instead of i386 :-)
  124. - Tue Feb 20 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  125. - 1.7.1-2vl4
  126. - add alpha patch (%%patch1) from Kondara
  127. - include alpha, again
  128. - Thu Jan 25 2001 Tomoya TAKA <tomoya@olive.plala.or.jp>
  129. - 1.7.1-2vl3
  130. - ExcludeArch: alpha :-P
  131. - added Japanese summary and description
  132. - Sun Nov 12 2000 MACHINO, Satoshi <machino@vinelinux.org> 1.7.1-2vl2
  133. - build on gcc-2.95.3
  134. - added patch0 for i386
  135. - partially used rpmmacros
  136. - Wed Feb 16 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  137. - 1.7.1-2vl1
  138. - modified spec for ppc archtecture
  139. * Tue Sep 17 2002 Than Ngo <than@redhat.com> 1.8.0-9
  140. - Adjust some patch files (bug #74141)
  141. * Sat Aug 10 2002 Elliot Lee <sopwith@redhat.com>
  142. - rebuilt with gcc-3.2 (we hope)
  143. * Wed Jul 24 2002 Than Ngo <than@redhat.com> 1.8.0-7
  144. - desktop file issue (bug #69551)
  145. * Tue Jul 23 2002 Tim Powers <timp@redhat.com> 1.8.0-6
  146. - build using gcc-3.2-0.1
  147. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 1.8.0-5
  148. - automated rebuild
  149. * Thu Jun 20 2002 Than Ngo <than@redhat.com> 1.8.0-4
  150. - Don't forcibly strip binaries
  151. * Sun Jun 2 2002 Than Ngo <than@redhat.com> 1.8.0-3
  152. - fix a bug in cpumeter (bug #64798)
  153. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  154. - automated rebuild
  155. * Wed Apr 24 2002 Karsten Hopp <karsten@redhat.de> 1.8.0-1
  156. - update to current version
  157. - redo .proc patch
  158. - change URLs
  159. * Fri Feb 22 2002 Than Ngo <than@redhat.com> 1.7.3-10
  160. - rebuild in new environment.
  161. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  162. - automated rebuild
  163. * Tue Dec 18 2001 Than Ngo <than@redhat.com> 1.7.3-8
  164. - xosview +net goes into hard loop (bug #57150)
  165. - add patch for building against g++ 3
  166. - use RPM_OPT_FLAG
  167. * Wed Nov 14 2001 Than Ngo <than@redhat.com> 1.7.3-7
  168. - added missing Icon in desktop file
  169. - fixed Url
  170. * Wed Sep 12 2001 Tim Powers <timp@redhat.com>
  171. - rebuild with new gcc and binutils
  172. * Tue Apr 10 2001 Phil Knirsch <pknirsch@redhat.de>
  173. - Fix for s390 patch to actually work
  174. * Tue Mar 20 2001 Preston Brown <pbrown@redhat.com>
  175. - fix up .desktop entry
  176. * Sun Feb 11 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  177. - fix typo
  178. * Sun Feb 11 2001 Florian La Roche <Florian.LaRoche@redhat.de>
  179. - adjusted s390 patches
  180. * Wed Jan 31 2001 Preston Brown <pbrown@redhat.com>
  181. - upgrade to 1.7.3, fixes (#11380)
  182. * Mon Jan 15 2001 Than Ngo <than@redhat.com>
  183. - ported to ibm s/390
  184. * Tue Jul 25 2000 Jeff Johnson <jbj@redhat.com>
  185. - migrate wmconfig to applnk.
  186. * Fri Jul 14 2000 Jeff Johnson <jbj@redhat.com>
  187. - rebuild the auto-rebuild.
  188. - exclude alpha and i164 for now.
  189. * Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
  190. - automatic rebuild
  191. * Tue Jul 2 2000 Jakub Jelinek <jakub@redhat.com>
  192. - Rebuild with new C++
  193. * Fri Jun 2 2000 Jeff Johnson <jbj@redhat.com>
  194. - rebuild for 7.0
  195. * Mon Feb 14 2000 Matt Wilson <msw@redhat.com>
  196. - rebuild on i386
  197. * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com>
  198. - compress man pages.
  199. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  200. - auto rebuild in the new build environment (release 2)
  201. * Mon Mar 8 1999 Jeff Johnson <jbj@redhat.com>
  202. - updated to 1.7.1.
  203. * Wed Mar 3 1999 Matt Wilson <msw@redhat.com>
  204. - updated to 1.7.0
  205. * Fri Feb 5 1999 Bill Nottingham <notting@redhat.com>
  206. - build against new libstdc++, build on arm
  207. * Tue Dec 22 1998 Jeff Johnson <jbj@redhat.com>
  208. - update to 1.6.2.a.
  209. * Tue Jun 16 1998 Jeff Johnson <jbj@redhat.com>
  210. - add sparc/alpha functionality.
  211. - add %clean
  212. * Mon Jun 01 1998 Prospector System <bugs@redhat.com>
  213. - translations modified for de
  214. * Mon Jun 01 1998 Erik Troan <ewt@redhat.com>
  215. - how the hell did this get setuid root?
  216. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  217. - translations modified for de, fr, tr
  218. * Wed Apr 29 1998 Cristian Gafton <gafton@redhat.com>
  219. - upgraded to 1.5.1 (so that it compiles with egcs)
  220. - buildroot
  221. * Tue Nov 4 1997 Erik Troan <ewt@redhat.com>
  222. - commented out line causing core dumps when exiting
  223. * Fri Oct 24 1997 Marc Ewing <marc@redhat.com>
  224. - wmconfig
  225. * Fri Aug 22 1997 Erik Troan <ewt@redhat.com>
  226. - built against glibc