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

Revision 10764, 5.0 KB checked in by ara_t, 8 years ago (diff)

rebuild with gcc-5.4.0

Line 
1Summary: Hardware information listing tool
2Summary(ja): ハードウェア情報表示ツール
3Name:    lshw
4Version: B.02.16
5Release: 2%{?_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* Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> B.02.16-2
120- rebuild with gcc-5.4.0
121
122* Mon Jun 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> B.02.16-1
123- new upstream release
124
125* Fri Nov 18 2011 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.15-1
126- new upstream release
127
128* Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.13-1
129- new upstream release
130
131* Sun Dec 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.12.01-0vl1
132- initial build for Vine Linux
133
134* Mon Nov  5 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-1
135- B.02.12.01
136- Replace trademark icons
137
138* Tue Aug 14 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-3
139- Move desktop and pam config to files
140- Simplify build
141
142* Tue Aug 07 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-2
143- Remove trademarks
144
145* Mon Aug 06 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-1
146- B.02.11.01
147
148* Sun Aug 05 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-3
149- Move artwork to gui subpackage
150- Implement consolehelper support
151
152* Sat Aug 04 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-2
153- License is GPLv2 (only)
154- Fix ui %%description
155
156* Wed Aug 01 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-1
157- Follow upstream version scheme
158
159* Wed Jul 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.11-1
160- 2.11
161
162* Wed Jun 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.10-2
163- minor fixes
164- add patch to avoid stripping
165- add desktop file
166- strip changelog
167- move from sbin to bin
168- new url
169
170* Wed Feb 14 2007 Dag Wieers <dag@wieers.com> - 2.10-1 - 4876+/dag
171- Updated to release B.02.10.
172
173* Tue Dec 21 2004 Dag Wieers <dag@wieers.com> - 2.0-1
174- Initial package. (using DAR)
175
Note: See TracBrowser for help on using the repository browser.