lshw-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. Summary: Hardware information listing tool
  2. Summary(ja): ハードウェア情報表示ツール
  3. Name: lshw
  4. Version: B.02.16
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/System
  8. URL: http://ezix.org/project/wiki/HardwareLiSter
  9. Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
  10. Source1: lshw.desktop
  11. Source2: lshw.consolehelper
  12. Source3: lshw.pam
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  14. BuildRequires: sqlite3-devel
  15. BuildRequires: gtk2-devel >= 2.4
  16. BuildRequires: desktop-file-utils
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: daisuke
  20. %description
  21. lshw (Hardware Lister) is a small tool to provide detailed informaton on
  22. the hardware configuration of the machine. It can report exact memory
  23. configuration, firmware version, mainboard configuration, CPU version and
  24. speed, cache configuration, bus speed, etc. on DMI-capable x86 systems
  25. and on some PowerPC machines (PowerMac G4 is known to work).
  26. Information can be output in plain text, XML or HTML.
  27. %package gui
  28. Summary: Graphical hardware lister
  29. Summary(ja): グラフィカルなハードウエア情報表示ツール
  30. Group: Applications/System
  31. Requires: usermode
  32. Requires: %{name} = %{version}-%{release}
  33. %description gui
  34. Graphical frontend for the hardware lister (lshw) tool.
  35. If desired, hardware information can be saved to file in
  36. plain, XML or HTML format.
  37. %prep
  38. %setup -q -n %{name}-%{version}
  39. %{__sed} -i 's|-g -Wall -g|%{optflags}|' src/Makefile
  40. %{__sed} -i 's|-g -Wall -Os|%{optflags}|' src/core/Makefile
  41. %{__sed} -i 's|-g -Wall -Os|%{optflags}|' src/gui/Makefile
  42. %{__sed} -i 's|LDFLAGS= -Os -s|LDFLAGS=|' src/gui/Makefile
  43. %build
  44. %{__make} %{?_smp_mflags} SBINDIR="%{_sbindir}" gui
  45. # Replace copyrighted icons
  46. pushd src
  47. %{__make} nologo
  48. %install
  49. %{__rm} -rf %{buildroot}
  50. %{__make} install \
  51. DESTDIR="%{buildroot}" \
  52. PREFIX="%{_prefix}" \
  53. SBINDIR="%{_sbindir}" \
  54. MANDIR="%{_mandir}" \
  55. INSTALL="%{__install} -p"
  56. %{__make} install-gui \
  57. DESTDIR="%{buildroot}" \
  58. PREFIX="%{_prefix}" \
  59. SBINDIR="%{_sbindir}" \
  60. MANDIR="%{_mandir}" \
  61. INSTALL="%{__install} -p"
  62. %{__ln_s} -f gtk-lshw %{buildroot}%{_sbindir}/lshw-gui
  63. # desktop icon
  64. %{__install} -D -m 0644 -p ./src/gui/artwork/logo.svg \
  65. %{buildroot}%{_datadir}/pixmaps/%{name}-logo.svg
  66. desktop-file-install --vendor "" \
  67. --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
  68. # consolehelper
  69. %{__install} -d %{buildroot}%{_bindir}
  70. %{__ln_s} -f consolehelper %{buildroot}%{_bindir}/%{name}-gui
  71. %{__install} -D -m 0644 %{SOURCE2} \
  72. %{buildroot}%{_sysconfdir}/security/console.apps/%{name}-gui
  73. %{__install} -D -m 0644 %{SOURCE3} \
  74. %{buildroot}%{_sysconfdir}/pam.d/%{name}-gui
  75. %clean
  76. %{__rm} -rf %{buildroot}
  77. %files
  78. %defattr(-, root, root, -)
  79. %doc COPYING README docs/*
  80. %doc %{_mandir}/man1/lshw.1*
  81. %{_sbindir}/%{name}
  82. %dir %{_datadir}/%{name}
  83. %{_datadir}/%{name}/*.txt
  84. %{_datadir}/%{name}/*.ids
  85. %files gui
  86. %defattr(-, root, root, -)
  87. %doc COPYING
  88. %config(noreplace) %{_sysconfdir}/pam.d/%{name}-gui
  89. %config(noreplace) %{_sysconfdir}/security/console.apps/%{name}-gui
  90. %{_bindir}/%{name}-gui
  91. %{_sbindir}/gtk-%{name}
  92. %{_sbindir}/%{name}-gui
  93. %{_datadir}/%{name}/artwork
  94. %{_datadir}/%{name}/ui/gtk-%{name}.ui
  95. %{_datadir}/pixmaps/%{name}-logo.svg
  96. %{_datadir}/applications/%{name}.desktop
  97. %changelog
  98. * Mon Jun 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> B.02.16-1
  99. - new upstream release
  100. * Fri Nov 18 2011 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.15-1
  101. - new upstream release
  102. * Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.13-1
  103. - new upstream release
  104. * Sun Dec 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.12.01-0vl1
  105. - initial build for Vine Linux
  106. * Mon Nov 5 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-1
  107. - B.02.12.01
  108. - Replace trademark icons
  109. * Tue Aug 14 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-3
  110. - Move desktop and pam config to files
  111. - Simplify build
  112. * Tue Aug 07 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-2
  113. - Remove trademarks
  114. * Mon Aug 06 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-1
  115. - B.02.11.01
  116. * Sun Aug 05 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-3
  117. - Move artwork to gui subpackage
  118. - Implement consolehelper support
  119. * Sat Aug 04 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-2
  120. - License is GPLv2 (only)
  121. - Fix ui %%description
  122. * Wed Aug 01 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-1
  123. - Follow upstream version scheme
  124. * Wed Jul 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.11-1
  125. - 2.11
  126. * Wed Jun 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.10-2
  127. - minor fixes
  128. - add patch to avoid stripping
  129. - add desktop file
  130. - strip changelog
  131. - move from sbin to bin
  132. - new url
  133. * Wed Feb 14 2007 Dag Wieers <dag@wieers.com> - 2.10-1 - 4876+/dag
  134. - Updated to release B.02.10.
  135. * Tue Dec 21 2004 Dag Wieers <dag@wieers.com> - 2.0-1
  136. - Initial package. (using DAR)