]> git.pld-linux.org Git - packages/hwdata.git/blame - hwdata.spec
- updated to 0.291
[packages/hwdata.git] / hwdata.spec
CommitLineData
1417ab0c 1# TODO
e0c3ee01 2# - make this primary db of blacklist db (merge kmod/module-init-tools) ?
1417ab0c 3# - merge (switch?) with http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/hwids ?
2f80ccdf 4# their db contains also OUI, IAB IDs databases: https://github.com/gentoo/hwids
b2e516a7 5# - enable .gz if lshw and usbip have .gz support
84c4b68d 6# - package Individual Address Blocks file (iab.txt)?
e6e2c116 7# NOTE: pnp.ids in pnputils package differ from that in hwdata
d6094dde 8# (hwdata pnp.ids contain only vendor IDs, pnputils pnp.ids contains only
e6e2c116 9# device IDs of (some) PNPACPI, PNPBIOS and ISAPNP devices)
e0c3ee01
ER
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
a7a382ff 14Summary: Hardware identification and configuration data
d9ecb95a 15Summary(pl.UTF-8): Dane do identyfikacji i konfiguracji sprzętu
0b19847d 16Name: hwdata
8b0c7ae2 17# see hwdata.spec inside of tarball
b2e516a7 18Version: 0.291
84c4b68d 19Release: 1
1417ab0c 20License: GPL v2+
a7a382ff 21Group: Applications/System
1417ab0c 22Source0: https://fedorahosted.org/releases/h/w/hwdata/%{name}-%{version}.tar.bz2
b2e516a7 23# Source0-md5: effe59bf406eb03bb295bd34e0913dd8
7a72ac40 24URL: https://fedorahosted.org/hwdata/
e0c3ee01 25Obsoletes: ieee-oui
a7a382ff 26Conflicts: Xconfigurator < 4.9.42-1
e0c3ee01 27Conflicts: ntop < 4.1.0-2
b9f6b63d
ER
28Conflicts: pciutils < 3.1.10-6
29Conflicts: usbutils < 006-3
41f13202 30BuildArch: noarch
a7a382ff 31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
b9f6b63d 33%define _datadir /lib
a201aeca 34%define modprobe_d /usr/lib/modprobe.d
b9f6b63d 35
a7a382ff 36%description
37hwdata contains various hardware identification and configuration
e6e2c116
ER
38data, such as pci.ids, usb.ids, oui.txt and pnp.ids (vendor IDs)
39databases.
a7a382ff 40
8a0b4d07
JR
41%description -l pl.UTF-8
42Pakiet hwdata zawiera różne dane do identyfikacji i konfiguracji
5743531d 43sprzętu, takie jak bazy danych pci.ids, usb.ids, oui.txt i pnp.ids.
a7a382ff 44
0b19847d 45%prep
1417ab0c
ER
46%setup -q
47
b2e516a7
JB
48# if git-generated ChangeLog is missing in release, make one from included .spec
49if [ ! -f ChangeLog ]; then
50 %{__sed} -ne '/^%changelog/,$p' hwdata.spec | tail -n +2 > ChangeLog
51fi
52
1417ab0c
ER
53%build
54%configure
a7a382ff 55
56%install
57rm -rf $RPM_BUILD_ROOT
41f13202 58%{__make} install \
763acc23 59 libdir=%{_prefix}/lib \
41f13202 60 DESTDIR=$RPM_BUILD_ROOT
a7a382ff 61
a201aeca 62%{__rm} $RPM_BUILD_ROOT%{modprobe_d}/dist-blacklist.conf
12987ec9 63
b2e516a7 64# disabled: some applications don't support compressed formats
b31a4824 65%if 0
bb601e02 66gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/pci.ids
b31a4824 67gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/usb.ids
e0c3ee01 68gzip -n9 $RPM_BUILD_ROOT%{_datadir}/%{name}/oui.txt
b31a4824 69%endif
00926410 70
a7a382ff 71%clean
72rm -rf $RPM_BUILD_ROOT
73
74%files
75%defattr(644,root,root,755)
368e92bb 76%doc ChangeLog LICENSE
e0d846c3 77%dir %{_datadir}/%{name}
42f329b1 78%{_datadir}/%{name}/iab.txt*
e0c3ee01 79%{_datadir}/%{name}/oui.txt*
b31a4824 80%{_datadir}/%{name}/pci.ids*
e0d846c3 81%{_datadir}/%{name}/pnp.ids
b31a4824 82%{_datadir}/%{name}/usb.ids*
This page took 0.183178 seconds and 4 git commands to generate.