2 # - make this primary db of blacklist db (merge kmod/module-init-tools) ?
3 # - merge (switch?) with http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/hwids ?
4 # their db contains also OUI, IAB IDs databases: https://github.com/gentoo/hwids
5 # - enable .gz if lshw has .gz support
6 # - package Individual Address Blocks file (iab.txt)?
7 # NOTE: pnp.ids in pnputils package differ from that in hwdata
8 # (hwdata pnp.ids contain only vendor IDs, pnputils pnp.ids contains only
9 # device IDs of (some) PNPACPI, PNPBIOS and ISAPNP devices)
10 # - update to use oui.txt from this package:
11 # - hwdata-0.225-0.20090808.1.noarch
12 # - lshw-B.02.14-1.i686
13 # - python-netaddr-0.7.3-1.noarch
14 Summary: Hardware identification and configuration data
15 Summary(pl.UTF-8): Dane do identyfikacji i konfiguracji sprzętu
17 # see hwdata.spec inside of tarball
21 Group: Applications/System
22 Source0: https://fedorahosted.org/releases/h/w/hwdata/%{name}-%{version}.tar.bz2
23 # Source0-md5: 80fd5103c28369d4e5df9456ad14422b
24 URL: https://fedorahosted.org/hwdata/
26 Conflicts: Xconfigurator < 4.9.42-1
27 Conflicts: ntop < 4.1.0-2
28 Conflicts: pciutils < 3.1.10-6
29 Conflicts: usbutils < 006-3
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 %define modprobe_d /usr/lib/modprobe.d
37 hwdata contains various hardware identification and configuration
38 data, such as pci.ids, usb.ids, oui.txt and pnp.ids (vendor IDs)
41 %description -l pl.UTF-8
42 Pakiet hwdata zawiera różne dane do identyfikacji i konfiguracji
43 sprzętu, takie jak bazy danych pci.ids, usb.ids, oui.txt i pnp.ids.
52 rm -rf $RPM_BUILD_ROOT
54 libdir=%{_prefix}/lib \
55 DESTDIR=$RPM_BUILD_ROOT
57 %{__rm} $RPM_BUILD_ROOT%{modprobe_d}/dist-blacklist.conf
60 gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/pci.ids
61 gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/usb.ids
62 gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/oui.txt
66 rm -rf $RPM_BUILD_ROOT
69 %defattr(644,root,root,755)
70 %doc ChangeLog LICENSE
71 %dir %{_datadir}/%{name}
72 %{_datadir}/%{name}/iab.txt*
73 %{_datadir}/%{name}/oui.txt*
74 %{_datadir}/%{name}/pci.ids*
75 %{_datadir}/%{name}/pnp.ids
76 %{_datadir}/%{name}/usb.ids*