]>
Commit | Line | Data |
---|---|---|
1417ab0c | 1 | # TODO |
da82098e | 2 | # - make this primary db of oui/pnp/blacklist db (merge ieee-oui, kmod/module-init-tools) ? |
1417ab0c | 3 | # - merge (switch?) with http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/hwids ? |
2f80ccdf | 4 | # their db contains also OUI, IAB IDs databases: https://github.com/gentoo/hwids |
b31a4824 | 5 | # - enable .gz if lshw has .gz support |
a7a382ff | 6 | Summary: Hardware identification and configuration data |
d9ecb95a | 7 | Summary(pl.UTF-8): Dane do identyfikacji i konfiguracji sprzętu |
0b19847d | 8 | Name: hwdata |
8b0c7ae2 | 9 | # see hwdata.spec inside of tarball |
368e92bb | 10 | Version: 0.243 |
da82098e | 11 | Release: 6 |
1417ab0c | 12 | License: GPL v2+ |
a7a382ff | 13 | Group: Applications/System |
1417ab0c | 14 | Source0: https://fedorahosted.org/releases/h/w/hwdata/%{name}-%{version}.tar.bz2 |
368e92bb | 15 | # Source0-md5: 98615d098bafb7bad1ae5912c073edc7 |
0fdf1ddc | 16 | Requires: ieee-oui |
a7a382ff | 17 | Conflicts: Xconfigurator < 4.9.42-1 |
b9f6b63d ER |
18 | Conflicts: pciutils < 3.1.10-6 |
19 | Conflicts: usbutils < 006-3 | |
41f13202 | 20 | BuildArch: noarch |
a7a382ff | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
b9f6b63d ER |
23 | %define _datadir /lib |
24 | ||
a7a382ff | 25 | %description |
26 | hwdata contains various hardware identification and configuration | |
1417ab0c | 27 | data, such as pci.ids, usb.ids, oui.txt and pnp.ids databases. |
a7a382ff | 28 | |
8a0b4d07 JR |
29 | %description -l pl.UTF-8 |
30 | Pakiet hwdata zawiera różne dane do identyfikacji i konfiguracji | |
5743531d | 31 | sprzętu, takie jak bazy danych pci.ids, usb.ids, oui.txt i pnp.ids. |
a7a382ff | 32 | |
0b19847d | 33 | %prep |
1417ab0c ER |
34 | %setup -q |
35 | ||
36 | %build | |
37 | %configure | |
a7a382ff | 38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
41f13202 JB |
41 | %{__make} install \ |
42 | DESTDIR=$RPM_BUILD_ROOT | |
a7a382ff | 43 | |
b9f6b63d | 44 | ln -sf /usr/share/oui.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/oui.txt |
1417ab0c | 45 | %{__rm} $RPM_BUILD_ROOT/etc/modprobe.d/blacklist.conf |
12987ec9 | 46 | |
b31a4824 | 47 | %if 0 |
bb601e02 | 48 | gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/pci.ids |
b31a4824 ER |
49 | gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/usb.ids |
50 | %endif | |
00926410 | 51 | |
a7a382ff | 52 | %clean |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
368e92bb | 57 | %doc ChangeLog LICENSE |
e0d846c3 ER |
58 | %dir %{_datadir}/%{name} |
59 | %{_datadir}/%{name}/oui.txt | |
b31a4824 | 60 | %{_datadir}/%{name}/pci.ids* |
e0d846c3 | 61 | %{_datadir}/%{name}/pnp.ids |
b31a4824 | 62 | %{_datadir}/%{name}/usb.ids* |