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

Revision 12368, 5.2 KB checked in by tomop, 4 years ago (diff)

updated 5 packages

hddtemp-0.3-0.36.beta15

lshw-B.02.19.2-1

libndp-1.7-1

openssl-1.1.1f-1

smartmontools-7.1-1

Line 
1Summary: Hardware information listing tool
2Summary(ja): ハードウェア情報表示ツール
3Name:           lshw
4Version:        B.02.19.2
5Release:        1%{?_dist_release}
6Group:          Applications/System
7License:        GPLv2
8URL:            http://ezix.org/project/wiki/HardwareLiSter
9Vendor:         Project Vine
10Distribution:   Vine Linux
11Packager:       daisuke
12
13Source0: http://www.ezix.org/software/files/%{name}-%{version}.tar.gz
14Source1: lshw.desktop
15Source2: lshw.consolehelper
16Source3: lshw.pam
17
18BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19BuildRequires: sqlite3-devel
20BuildRequires: gtk2-devel >= 2.4
21BuildRequires: desktop-file-utils
22BuildRequires: desktop-file-utils
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%find_lang %{name}
94
95%clean
96%{__rm} -rf %{buildroot}
97
98%files -f %{name}.lang
99%defattr(-, root, root, -)
100%license COPYING
101%doc README docs/*
102%doc %{_mandir}/man1/lshw.1*
103%{_sbindir}/%{name}
104%dir %{_datadir}/%{name}
105%{_datadir}/%{name}/*.txt
106%{_datadir}/%{name}/*.ids
107
108%files gui
109%defattr(-, root, root, -)
110%doc COPYING
111%config(noreplace) %{_sysconfdir}/pam.d/%{name}-gui
112%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}-gui
113%{_bindir}/%{name}-gui
114%{_sbindir}/gtk-%{name}
115%{_sbindir}/%{name}-gui
116%{_datadir}/%{name}/artwork
117%{_datadir}/%{name}/ui/gtk-%{name}.ui
118%{_datadir}/pixmaps/%{name}-logo.svg
119%{_datadir}/applications/%{name}.desktop
120
121%changelog
122* Wed Apr 08 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> B.02.19.2
123- new upstream release.
124
125* Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> B.02.16-2
126- rebuild with gcc-5.4.0
127
128* Mon Jun 25 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> B.02.16-1
129- new upstream release
130
131* Fri Nov 18 2011 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.15-1
132- new upstream release
133
134* Wed Jul 23 2008 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.13-1
135- new upstream release
136
137* Sun Dec 09 2007 Daisuke SUZUKI <daisuke@linux.or.jp> B.02.12.01-0vl1
138- initial build for Vine Linux
139
140* Mon Nov  5 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.12.01-1
141- B.02.12.01
142- Replace trademark icons
143
144* Tue Aug 14 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-3
145- Move desktop and pam config to files
146- Simplify build
147
148* Tue Aug 07 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-2
149- Remove trademarks
150
151* Mon Aug 06 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11.01-1
152- B.02.11.01
153
154* Sun Aug 05 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-3
155- Move artwork to gui subpackage
156- Implement consolehelper support
157
158* Sat Aug 04 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-2
159- License is GPLv2 (only)
160- Fix ui %%description
161
162* Wed Aug 01 2007 Terje Rosten <terjeros@phys.ntnu.no> - B.02.11-1
163- Follow upstream version scheme
164
165* Wed Jul 25 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.11-1
166- 2.11
167
168* Wed Jun 27 2007 Terje Rosten <terjeros@phys.ntnu.no> - 2.10-2
169- minor fixes
170- add patch to avoid stripping
171- add desktop file
172- strip changelog
173- move from sbin to bin
174- new url
175
176* Wed Feb 14 2007 Dag Wieers <dag@wieers.com> - 2.10-1 - 4876+/dag
177- Updated to release B.02.10.
178
179* Tue Dec 21 2004 Dag Wieers <dag@wieers.com> - 2.0-1
180- Initial package. (using DAR)
181
Note: See TracBrowser for help on using the repository browser.