File usbutils.spec of Package usbutils

#
# spec file for package usbutils
#
# Copyright (c) 2024 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 https://bugs.opensuse.org/
#


Name:           usbutils
Version:        017
Release:        0
Summary:        Tools and libraries for USB devices
License:        GPL-2.0-or-later
Group:          Hardware/Other
URL:            https://sourceforge.net/projects/linux-usb/
Source0:        https://github.com/gregkh/usbutils/archive/refs/tags/v%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  libusb-1_0-devel >= 1.0.14
BuildRequires:  pkgconfig
BuildRequires:  python-rpm-macros
BuildRequires:  pkgconfig(libudev) >= 196
Requires:       hwdata

%description
This package contains a utility for inspecting devices connected to USB
ports.

%package devel
Summary:        Developer tools and libraries for USB devices
Requires:       %{name} = %{version}

%description devel
This package contains a utility for inspecting devices connected to USB
ports.

This package is needed when programatically locating the usbutils database

%prep
%setup -q

%build
autoreconf -fiv
%configure \
  --datadir=%{_datadir}/hwdata \
  --disable-usbids
%make_build

%install
%make_install
%python3_fix_shebang

%files
%doc NEWS
%license LICENSES/*
%{_bindir}/lsusb
%{_bindir}/lsusb.py
%{_bindir}/usb-devices
%{_bindir}/usbhid-dump
%{_mandir}/man1/usb-devices.1%{?ext_man}
%{_mandir}/man8/lsusb.8%{?ext_man}
%{_mandir}/man8/usbhid-dump.8%{?ext_man}

%files devel
%{_libdir}/pkgconfig/usbutils.pc

%changelog
openSUSE Build Service is sponsored by