]> git.pld-linux.org Git - packages/lshw.git/blob - lshw.spec
- added without gui bcond
[packages/lshw.git] / lshw.spec
1 #
2 # Conditional build:
3 %bcond_without  gui     # build without GTK gui
4 #
5 Summary:        Hardware Lister
6 Summary(pl):    Narzêdzie wypisuj±ce sprzêt
7 Name:           lshw
8 Version:        B.02.06
9 Release:        1
10 License:        GPL v2
11 Group:          Applications/System
12 Source0:        http://dl.sourceforge.net/ezix/%{name}-%{version}.tar.gz
13 # Source0-md5:  370e10e3dad089be3f24f1cdf3874a52
14 URL:            http://ezix.sourceforge.net/software/lshw.html
15 BuildRequires:  libstdc++-devel
16 %{?with_gui:BuildRequires:      gtk+2-devel}
17 BuildRequires:  pkgconfig
18 Requires:       pciutils
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 lshw (Hardware Lister) is a small tool to provide detailed informaton
23 on the hardware configuration of the machine. It can report exact
24 memory configuration, firmware version, mainboard configuration, CPU
25 version and speed, cache configuration, bus speed, etc. on DMI-capable
26 x86 systems and on some PowerPC machines (PowerMac G4 is known to
27 work).
28
29 Information can be output in plain text, XML or HTML.
30
31 It currently supports DMI (x86 only), OpenFirmware device tree
32 (PowerPC only), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI, PCMCIA (only
33 tested on x86) and SCSI.
34
35 %description -l pl
36 lshw (Hardware Lister) to ma³e narzêdzie maj±ce udostêpniæ szczegó³owe
37 informacje dotycz±ce sprzêtowej konfiguracji maszyny. Mo¿e okre¶liæ
38 dok³adn± konfiguracjê pamiêci, wersjê firmware, konfiguracjê p³yty
39 g³ównej, wersjê i szybko¶æ CPU, konfiguracjê cache, szybko¶æ szyny
40 itp. na systemach x86 obs³uguj±cych DMI oraz niektórych maszynach
41 PowerPC (wiadomo, ¿e dzia³a na PowerMacu G4).
42
43 Informacje mog± byæ podawane jako czysty tekst, XML lub HTML.
44
45 Aktualnie program obs³uguje DMI (tylko x86), drzewo urz±dzeñ
46 OpenFirmware (tylko PowerPC), PCI/AGP, CPUID (x86), IDE/ATA/ATAPI,
47 PCMCIA (testowane tylko na x86) oraz SCSI.
48
49 %package gtk
50 Summary:        GTK+ version of lshw
51 Summary(pl):    lshw w wersji GTK+
52 Group:          Applications/System
53 Requires:       lshw
54
55 %description gtk
56 GTK+ version of lshw.
57
58 %description gtk -l pl
59 lshw w wersji GTK+.
60
61 %prep
62 %setup -q
63
64 %build
65 %{__make} \
66         CXX="%{__cxx}" \
67         CXXFLAGS="%{rpmcflags} -I./core"
68
69 %if %{with gui}
70 %{__make} gui \
71         CXX="%{__cxx}" \
72         CXXFLAGS="%{rpmcflags} -I../core `pkg-config --cflags gtk+-2.0`"
73 %endif
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 %if %{with gui}
83 %{__make} install-gui \
84         DESTDIR=$RPM_BUILD_ROOT
85 %endif
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %files
91 %defattr(644,root,root,755)
92 %doc docs/TODO docs/Changelog docs/lshw.xsd README
93 %attr(755,root,root) %{_sbindir}/%{name}
94 %{_datadir}/%{name}
95 %{_mandir}/man1/*
96
97 %if %{with gui}
98 %files gtk
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_sbindir}/gtk-%{name}
101 %endif
This page took 0.131428 seconds and 3 git commands to generate.