File hwdata.spec of Package hwdata.23475

# spec file for package hwdata
# Copyright (c) 2022 SUSE LLC
# 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.

# Please submit bugfixes or comments via

Name:           hwdata
Version:        0.357
Release:        0
Summary:        Hardware identification and configuration data
License:        GPL-2.0-or-later
Requires(post): coreutils
Requires(post): perl
Conflicts:      pciutils-ids
Provides:       pciutils-ids = 20200529
Obsoletes:      pciutils-ids < 20200529
BuildArch:      noarch

hwdata contains various hardware identification and configuration data,
such as the pci.ids and usb.ids databases.

%setup -q

# nothing to build


# create symlink for smooth transition from pciutils-ids package
mkdir %{buildroot}%{_datadir}/pci.ids.d
ln -s %{_datadir}/hwdata/pci.ids \

install -Dpm 0755 %{SOURCE1} \
install -Dpm 0644 /dev/null \

# not needed at all
rm -rf %{buildroot}/%{_libdir}/modprobe.d

if [ -x %{_bindir}/merge-pciids -a -x %{_bindir}/perl ]; then
  # 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

%dir %{_datadir}/%{name}
%dir %{_datadir}/pci.ids.d
%ghost %{_datadir}/pci.ids

openSUSE Build Service is sponsored by