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