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

Revision 6428, 4.9 KB checked in by Takemikaduchi, 12 years ago (diff)

alsa-tools: rebuild
others: new upstream release

Line 
1Summary: Hardware information listing tool
2Summary(ja): ハードウェア情報表示ツール
3Name:    lshw
4Version: B.02.16
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}/%{name}/ui/gtk-%{name}.ui
115%{_datadir}/pixmaps/%{name}-logo.svg
116%{_datadir}/applications/%{name}.desktop
117
118%changelog
119* Mon Jun 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> B.02.16-1
120- new upstream release
121
122* Fri Nov 18 2011 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.15-1
123- new upstream release
124
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
Note: See TracBrowser for help on using the repository browser.