lshw-vl.spec 5.2 KB

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