source: projects/specs/trunk/l/lshw/lshw-vl.spec @ 5158

Revision 5158, 4.8 KB checked in by daisuke, 13 years ago (diff)

lshw: new upstream release

Line 
1Summary: Hardware information listing tool
2Summary(ja): ハードウェア情報表示ツール
3Name:    lshw
4Version: B.02.15
5Release: 1%{?_dist_release}
6License: GPLv2
7Group:   Applications/System
8URL:     http://ezix.org/project/wiki/HardwareLiSter
9
10Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
11Source1: lshw.desktop
12Source2: lshw.consolehelper
13Source3: lshw.pam
14
15BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16BuildRequires: sqlite3-devel
17BuildRequires: gtk2-devel >= 2.4
18BuildRequires: desktop-file-utils
19
20Vendor: Project Vine
21Distribution: Vine Linux
22Packager: daisuke
23
24%description
25lshw (Hardware Lister) is a small tool to provide detailed informaton on
26the hardware configuration of the machine. It can report exact memory
27configuration, firmware version, mainboard configuration, CPU version and
28speed, cache configuration, bus speed, etc. on DMI-capable x86 systems
29and on some PowerPC machines (PowerMac G4 is known to work).
30
31Information can be output in plain text, XML or HTML.
32
33%package gui
34Summary:  Graphical hardware lister
35Summary(ja): グラフィカルなハードウエア情報表示ツール
36Group:    Applications/System
37Requires: usermode
38Requires: %{name} = %{version}-%{release}
39
40%description gui
41Graphical frontend for the hardware lister (lshw) tool.
42If desired, hardware information can be saved to file in
43plain, 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
57pushd 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
82desktop-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
114%{_datadir}/pixmaps/%{name}-logo.svg
115%{_datadir}/applications/%{name}.desktop
116
117%changelog
118* Fri Nov 18 2011 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.15-1
119- new upstream release
120
121* Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.13-1
122- new upstream release
123
124* Sun Dec 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.12.01-0vl1
125- initial build for Vine Linux
126
127* Mon Nov  5 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-1
128- B.02.12.01
129- Replace trademark icons
130
131* Tue Aug 14 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-3
132- Move desktop and pam config to files
133- Simplify build
134
135* Tue Aug 07 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-2
136- Remove trademarks
137
138* Mon Aug 06 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-1
139- B.02.11.01
140
141* Sun Aug 05 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-3
142- Move artwork to gui subpackage
143- Implement consolehelper support
144
145* Sat Aug 04 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-2
146- License is GPLv2 (only)
147- Fix ui %%description
148
149* Wed Aug 01 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-1
150- Follow upstream version scheme
151
152* Wed Jul 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.11-1
153- 2.11
154
155* Wed Jun 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.10-2
156- minor fixes
157- add patch to avoid stripping
158- add desktop file
159- strip changelog
160- move from sbin to bin
161- new url
162
163* Wed Feb 14 2007 Dag Wieers <dag@wieers.com> - 2.10-1 - 4876+/dag
164- Updated to release B.02.10.
165
166* Tue Dec 21 2004 Dag Wieers <dag@wieers.com> - 2.0-1
167- Initial package. (using DAR)
168
Note: See TracBrowser for help on using the repository browser.