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, usbip, usbutils/lsusb.py have .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
20 Group: Applications/System
21 #Source0Download: https://github.com/vcrhonek/hwdata/releases
22 Source0: https://github.com/vcrhonek/hwdata/archive/v%{version}/%{name}-%{version}.tar.gz
23 # Source0-md5: d00d6769d579f919079413686399f2da
24 URL: https://github.com/vcrhonek/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.
48 # if git-generated ChangeLog is missing in release, make one from included .spec
49 if [ ! -f ChangeLog ]; then
50 %{__sed} -ne '/^%changelog/,$p' hwdata.spec | tail -n +2 > ChangeLog
57 rm -rf $RPM_BUILD_ROOT
59 libdir=%{_prefix}/lib \
60 DESTDIR=$RPM_BUILD_ROOT
62 %{__rm} $RPM_BUILD_ROOT%{modprobe_d}/dist-blacklist.conf
64 # disabled: some applications don't support compressed formats
66 gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/pci.ids
67 gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/usb.ids
68 gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/oui.txt
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
76 %doc ChangeLog LICENSE
77 %dir %{_datadir}/%{name}
78 %{_datadir}/%{name}/iab.txt*
79 %{_datadir}/%{name}/oui.txt*
80 %{_datadir}/%{name}/pci.ids*
81 %{_datadir}/%{name}/pnp.ids
82 %{_datadir}/%{name}/usb.ids*