]> git.pld-linux.org Git - SPECS.git/blob - hwdata.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / hwdata.spec
1 # TODO
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
16 Name:           hwdata
17 Version:        0.346
18 Release:        1
19 License:        GPL v2+
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
25 Obsoletes:      ieee-oui
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
30 BuildArch:      noarch
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %define         _datadir        /lib
34 %define         modprobe_d      /usr/lib/modprobe.d
35
36 %description
37 hwdata contains various hardware identification and configuration
38 data, such as pci.ids, usb.ids, oui.txt and pnp.ids (vendor IDs)
39 databases.
40
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.
44
45 %prep
46 %setup -q
47
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
53 %build
54 %configure
55
56 %install
57 rm -rf $RPM_BUILD_ROOT
58 %{__make} install \
59         libdir=%{_prefix}/lib \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 %{__rm} $RPM_BUILD_ROOT%{modprobe_d}/dist-blacklist.conf
63
64 # disabled: some applications don't support compressed formats
65 %if 0
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
69 %endif
70
71 %clean
72 rm -rf $RPM_BUILD_ROOT
73
74 %files
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*
This page took 0.337921 seconds and 3 git commands to generate.