]> git.pld-linux.org Git - packages/hwdata.git/blob - hwdata.spec
0d2264d7597c45df9d9e2f6b11c6b78ec4e447f8
[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 # NOTE: pnp.ids in pnputils package differ from that in hwdata
7 # (hwdata pnp.ids contain only vendor IDs, pnputils pnp.ids contains only
8 #  device IDs of (some) PNPACPI, PNPBIOS and ISAPNP devices)
9 # - update to use oui.txt from this package:
10 #   - hwdata-0.225-0.20090808.1.noarch
11 #   - lshw-B.02.14-1.i686
12 #   - python-netaddr-0.7.3-1.noarch
13 Summary:        Hardware identification and configuration data
14 Summary(pl.UTF-8):      Dane do identyfikacji i konfiguracji sprzętu
15 Name:           hwdata
16 # see hwdata.spec inside of tarball
17 Version:        0.255
18 Release:        1
19 License:        GPL v2+
20 Group:          Applications/System
21 Source0:        https://fedorahosted.org/releases/h/w/hwdata/%{name}-%{version}.tar.bz2
22 # Source0-md5:  d4bb89d48e3056754d92f4b5dd5302f4
23 Obsoletes:      ieee-oui
24 Conflicts:      Xconfigurator < 4.9.42-1
25 Conflicts:      ntop < 4.1.0-2
26 Conflicts:      pciutils < 3.1.10-6
27 Conflicts:      usbutils < 006-3
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %define         _datadir        /lib
32 %define         modprobe_d      /usr/lib/modprobe.d
33
34 %description
35 hwdata contains various hardware identification and configuration
36 data, such as pci.ids, usb.ids, oui.txt and pnp.ids (vendor IDs)
37 databases.
38
39 %description -l pl.UTF-8
40 Pakiet hwdata zawiera różne dane do identyfikacji i konfiguracji
41 sprzętu, takie jak bazy danych pci.ids, usb.ids, oui.txt i pnp.ids.
42
43 %prep
44 %setup -q
45
46 # broken makefile
47 %{__sed} -i -e 's/#include Makefile.inc/include Makefile.inc/' Makefile
48
49 %build
50 %configure
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 %{__make} install \
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}/oui.txt*
73 %{_datadir}/%{name}/pci.ids*
74 %{_datadir}/%{name}/pnp.ids
75 %{_datadir}/%{name}/usb.ids*
This page took 0.126241 seconds and 2 git commands to generate.