2017-05-03 10:17:29 +02:00
|
|
|
#
|
|
|
|
# spec file for package hwdata
|
|
|
|
#
|
2021-01-06 09:14:45 +01:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2017-05-03 10:17:29 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-08-30 08:43:40 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-05-03 10:17:29 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: hwdata
|
2021-08-03 09:40:02 +02:00
|
|
|
Version: 0.350
|
2017-05-03 10:17:29 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Hardware identification and configuration data
|
2018-03-08 10:06:42 +01:00
|
|
|
License: GPL-2.0-or-later
|
2018-01-05 13:50:07 +01:00
|
|
|
URL: https://github.com/vcrhonek/hwdata
|
2021-01-07 15:32:56 +01:00
|
|
|
Source0: https://github.com/vcrhonek/hwdata/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
Source1: merge-pciids.pl
|
|
|
|
Requires(post): coreutils
|
|
|
|
Requires(post): perl
|
|
|
|
Conflicts: pciutils-ids
|
2020-06-02 10:45:49 +02:00
|
|
|
Provides: pciutils-ids = 20200529
|
|
|
|
Obsoletes: pciutils-ids < 20200529
|
2017-05-03 10:17:29 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
hwdata contains various hardware identification and configuration data,
|
|
|
|
such as the pci.ids and usb.ids databases.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2017-08-02 10:30:03 +02:00
|
|
|
%configure
|
2017-05-03 10:17:29 +02:00
|
|
|
# nothing to build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2019-02-14 17:15:41 +01:00
|
|
|
|
|
|
|
# create symlink for smooth transition from pciutils-ids package
|
2021-01-07 15:32:56 +01:00
|
|
|
mkdir %{buildroot}%{_datadir}/pci.ids.d
|
2019-02-14 17:15:41 +01:00
|
|
|
ln -s %{_datadir}/hwdata/pci.ids \
|
2021-01-07 15:32:56 +01:00
|
|
|
%{buildroot}%{_datadir}/pci.ids.d/pci.ids.dist
|
|
|
|
|
|
|
|
install -Dpm 0755 %{SOURCE1} \
|
|
|
|
%{buildroot}%{_bindir}/merge-pciids
|
|
|
|
install -Dpm 0644 /dev/null \
|
2019-02-14 17:15:41 +01:00
|
|
|
%{buildroot}%{_datadir}/pci.ids
|
|
|
|
|
|
|
|
# not needed at all
|
2017-05-03 10:17:29 +02:00
|
|
|
rm -rf %{buildroot}/%{_libdir}/modprobe.d
|
|
|
|
|
2021-01-07 15:32:56 +01:00
|
|
|
%post
|
|
|
|
if [ -x %{_bindir}/merge-pciids -a -x %{_bindir}/perl ]; then
|
|
|
|
%{_bindir}/merge-pciids
|
|
|
|
else
|
|
|
|
# This should only happen in autobuild
|
|
|
|
echo "WARNING: merge-pciids or perl not found"
|
|
|
|
cp -p %{_datadir}/pci.ids.d/pci.ids.dist %{_datadir}/pci.ids
|
|
|
|
fi
|
|
|
|
|
2017-05-03 10:17:29 +02:00
|
|
|
%files
|
2018-07-09 14:49:06 +02:00
|
|
|
%license LICENSE COPYING
|
2021-01-07 15:32:56 +01:00
|
|
|
%{_bindir}/merge-pciids
|
2017-05-03 10:17:29 +02:00
|
|
|
%dir %{_datadir}/%{name}
|
2017-05-10 13:55:14 +02:00
|
|
|
%{_datadir}/hwdata/iab.txt
|
|
|
|
%{_datadir}/hwdata/oui.txt
|
|
|
|
%{_datadir}/hwdata/pci.ids
|
|
|
|
%{_datadir}/hwdata/pnp.ids
|
|
|
|
%{_datadir}/hwdata/usb.ids
|
2021-01-07 15:32:56 +01:00
|
|
|
%dir %{_datadir}/pci.ids.d
|
|
|
|
%{_datadir}/pci.ids.d/pci.ids.dist
|
|
|
|
%ghost %{_datadir}/pci.ids
|
2017-05-03 10:17:29 +02:00
|
|
|
|
|
|
|
%changelog
|