]> git.pld-linux.org Git - packages/hwdata.git/blob - hwdata.spec
pacakge pnp.ids
[packages/hwdata.git] / hwdata.spec
1 # TODO
2 # - make this primary db of oui/pnp/blacklist db (merge ieee-oui, 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 Summary:        Hardware identification and configuration data
7 Summary(pl.UTF-8):      Dane do identyfikacji i konfiguracji sprzętu
8 Name:           hwdata
9 # see hwdata.spec inside of tarball
10 Version:        0.243
11 Release:        6
12 License:        GPL v2+
13 Group:          Applications/System
14 Source0:        https://fedorahosted.org/releases/h/w/hwdata/%{name}-%{version}.tar.bz2
15 # Source0-md5:  98615d098bafb7bad1ae5912c073edc7
16 Requires:       ieee-oui
17 Conflicts:      Xconfigurator < 4.9.42-1
18 Conflicts:      pciutils < 3.1.10-6
19 Conflicts:      usbutils < 006-3
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _datadir        /lib
24
25 %description
26 hwdata contains various hardware identification and configuration
27 data, such as pci.ids, usb.ids, oui.txt and pnp.ids databases.
28
29 %description -l pl.UTF-8
30 Pakiet hwdata zawiera różne dane do identyfikacji i konfiguracji
31 sprzętu, takie jak bazy danych pci.ids, usb.ids, oui.txt i pnp.ids.
32
33 %prep
34 %setup -q
35
36 %build
37 %configure
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 %{__make} install \
42         DESTDIR=$RPM_BUILD_ROOT
43
44 ln -sf /usr/share/oui.txt $RPM_BUILD_ROOT%{_datadir}/%{name}/oui.txt
45 %{__rm} $RPM_BUILD_ROOT/etc/modprobe.d/blacklist.conf
46
47 %if 0
48 gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/pci.ids
49 gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/usb.ids
50 %endif
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %doc ChangeLog LICENSE
58 %dir %{_datadir}/%{name}
59 %{_datadir}/%{name}/oui.txt
60 %{_datadir}/%{name}/pci.ids*
61 %{_datadir}/%{name}/pnp.ids
62 %{_datadir}/%{name}/usb.ids*
This page took 0.084209 seconds and 3 git commands to generate.