lshw-vl.spec 4.6 KB

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