File usbutils.spec of Package usbutils

#
# spec file for package usbutils
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           usbutils
BuildRequires:  libusb-1_0-devel
BuildRequires:  pkg-config
Url:            http://sourceforge.net/projects/linux-usb/
Version:        006
Release:        0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Tools and libraries for USB devices
License:        GPL-2.0+
Group:          Hardware/Other
Source0:        usbutils-%{version}.tar.xz
Source1:        usbutils-rpmlintrc
Source2:        usb.ids
Patch:          config-guess-sub-update.patch

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

%prep
%setup -q
%patch
cp %{S:2} usb.ids

%build
%configure --disable-zlib
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%files
%defattr(0644, root, root, 0755)
%attr(0644, root, root) %{_mandir}/man1/*
%attr(0644, root, root) %{_mandir}/man8/*
%attr(0755, root, root) %{_prefix}/bin/*
%attr(0755, root, root) %{_prefix}/sbin/*
%{_datadir}/usb.ids
%{_datadir}/pkgconfig/usbutils.pc
%doc AUTHORS ChangeLog

%changelog
openSUSE Build Service is sponsored by