lshw-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. Summary: Hardware information listing tool
  2. Summary(ja): ハードウェア情報表示ツール
  3. Name: lshw
  4. Version: B.02.15
  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}/pixmaps/%{name}-logo.svg
  95. %{_datadir}/applications/%{name}.desktop
  96. %changelog
  97. * Fri Nov 18 2011 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.15-1
  98. - new upstream release
  99. * Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.13-1
  100. - new upstream release
  101. * Sun Dec 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.12.01-0vl1
  102. - initial build for Vine Linux
  103. * Mon Nov 5 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-1
  104. - B.02.12.01
  105. - Replace trademark icons
  106. * Tue Aug 14 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-3
  107. - Move desktop and pam config to files
  108. - Simplify build
  109. * Tue Aug 07 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-2
  110. - Remove trademarks
  111. * Mon Aug 06 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-1
  112. - B.02.11.01
  113. * Sun Aug 05 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-3
  114. - Move artwork to gui subpackage
  115. - Implement consolehelper support
  116. * Sat Aug 04 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-2
  117. - License is GPLv2 (only)
  118. - Fix ui %%description
  119. * Wed Aug 01 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-1
  120. - Follow upstream version scheme
  121. * Wed Jul 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.11-1
  122. - 2.11
  123. * Wed Jun 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.10-2
  124. - minor fixes
  125. - add patch to avoid stripping
  126. - add desktop file
  127. - strip changelog
  128. - move from sbin to bin
  129. - new url
  130. * Wed Feb 14 2007 Dag Wieers <dag@wieers.com> - 2.10-1 - 4876+/dag
  131. - Updated to release B.02.10.
  132. * Tue Dec 21 2004 Dag Wieers <dag@wieers.com> - 2.0-1
  133. - Initial package. (using DAR)