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