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