]>
Commit | Line | Data |
---|---|---|
1417ab0c | 1 | # TODO |
e0c3ee01 | 2 | # - make this primary db of blacklist db (merge 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 |
b2e516a7 | 5 | # - enable .gz if lshw and usbip have .gz support |
84c4b68d | 6 | # - package Individual Address Blocks file (iab.txt)? |
e6e2c116 | 7 | # NOTE: pnp.ids in pnputils package differ from that in hwdata |
d6094dde | 8 | # (hwdata pnp.ids contain only vendor IDs, pnputils pnp.ids contains only |
e6e2c116 | 9 | # device IDs of (some) PNPACPI, PNPBIOS and ISAPNP devices) |
e0c3ee01 ER |
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 | |
a7a382ff | 14 | Summary: Hardware identification and configuration data |
d9ecb95a | 15 | Summary(pl.UTF-8): Dane do identyfikacji i konfiguracji sprzętu |
0b19847d | 16 | Name: hwdata |
8b0c7ae2 | 17 | # see hwdata.spec inside of tarball |
b2e516a7 | 18 | Version: 0.291 |
84c4b68d | 19 | Release: 1 |
1417ab0c | 20 | License: GPL v2+ |
a7a382ff | 21 | Group: Applications/System |
1417ab0c | 22 | Source0: https://fedorahosted.org/releases/h/w/hwdata/%{name}-%{version}.tar.bz2 |
b2e516a7 | 23 | # Source0-md5: effe59bf406eb03bb295bd34e0913dd8 |
7a72ac40 | 24 | URL: https://fedorahosted.org/hwdata/ |
e0c3ee01 | 25 | Obsoletes: ieee-oui |
a7a382ff | 26 | Conflicts: Xconfigurator < 4.9.42-1 |
e0c3ee01 | 27 | Conflicts: ntop < 4.1.0-2 |
b9f6b63d ER |
28 | Conflicts: pciutils < 3.1.10-6 |
29 | Conflicts: usbutils < 006-3 | |
41f13202 | 30 | BuildArch: noarch |
a7a382ff | 31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
b9f6b63d | 33 | %define _datadir /lib |
a201aeca | 34 | %define modprobe_d /usr/lib/modprobe.d |
b9f6b63d | 35 | |
a7a382ff | 36 | %description |
37 | hwdata contains various hardware identification and configuration | |
e6e2c116 ER |
38 | data, such as pci.ids, usb.ids, oui.txt and pnp.ids (vendor IDs) |
39 | databases. | |
a7a382ff | 40 | |
8a0b4d07 JR |
41 | %description -l pl.UTF-8 |
42 | Pakiet hwdata zawiera różne dane do identyfikacji i konfiguracji | |
5743531d | 43 | sprzętu, takie jak bazy danych pci.ids, usb.ids, oui.txt i pnp.ids. |
a7a382ff | 44 | |
0b19847d | 45 | %prep |
1417ab0c ER |
46 | %setup -q |
47 | ||
b2e516a7 JB |
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 | |
51 | fi | |
52 | ||
1417ab0c ER |
53 | %build |
54 | %configure | |
a7a382ff | 55 | |
56 | %install | |
57 | rm -rf $RPM_BUILD_ROOT | |
41f13202 | 58 | %{__make} install \ |
763acc23 | 59 | libdir=%{_prefix}/lib \ |
41f13202 | 60 | DESTDIR=$RPM_BUILD_ROOT |
a7a382ff | 61 | |
a201aeca | 62 | %{__rm} $RPM_BUILD_ROOT%{modprobe_d}/dist-blacklist.conf |
12987ec9 | 63 | |
b2e516a7 | 64 | # disabled: some applications don't support compressed formats |
b31a4824 | 65 | %if 0 |
bb601e02 | 66 | gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/pci.ids |
b31a4824 | 67 | gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/usb.ids |
e0c3ee01 | 68 | gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/oui.txt |
b31a4824 | 69 | %endif |
00926410 | 70 | |
a7a382ff | 71 | %clean |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
368e92bb | 76 | %doc ChangeLog LICENSE |
e0d846c3 | 77 | %dir %{_datadir}/%{name} |
42f329b1 | 78 | %{_datadir}/%{name}/iab.txt* |
e0c3ee01 | 79 | %{_datadir}/%{name}/oui.txt* |
b31a4824 | 80 | %{_datadir}/%{name}/pci.ids* |
e0d846c3 | 81 | %{_datadir}/%{name}/pnp.ids |
b31a4824 | 82 | %{_datadir}/%{name}/usb.ids* |