]> git.pld-linux.org Git - packages/hwdata.git/blob - hwdata.spec
63e7e0d6f71e4af4a61320669729231eeee12d2b
[packages/hwdata.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 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
16 Name:           hwdata
17 # see hwdata.spec inside of tarball
18 Version:        0.289
19 Release:        1
20 License:        GPL v2+
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/
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 %build
49 %configure
50
51 %install
52 rm -rf $RPM_BUILD_ROOT
53 %{__make} install \
54         libdir=%{_prefix}/lib \
55         DESTDIR=$RPM_BUILD_ROOT
56
57 %{__rm} $RPM_BUILD_ROOT%{modprobe_d}/dist-blacklist.conf
58
59 %if 0
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
63 %endif
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
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*
This page took 0.059086 seconds and 2 git commands to generate.