File usbutils.spec of Package usbutils.1063
#
# spec file for package usbutils
#
# Copyright (c) 2015 SUSE LINUX 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
Version: 007
Release: 0
Summary: Tools and libraries for USB devices
License: GPL-2.0+
Group: Hardware/Other
Url: http://sourceforge.net/projects/linux-usb/
Source0: https://www.kernel.org/pub/linux/utils/usb/usbutils/usbutils-%{version}.tar.xz
Source1: usbutils-rpmlintrc
Source2: usb.ids
Source3: 85-usb_elotouch_wakeup.rules
Source4: 85-usb_autosuspend_devices.rules
BuildRequires: libusb-1_0-devel
BuildRequires: pkg-config
BuildRequires: udev
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains a utility for inspecting devices connected to USB
ports.
%prep
%setup -q
cp %{SOURCE2} usb.ids
%build
%configure --disable-zlib
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
mkdir -p %buildroot/usr/lib/udev/rules.d
install -m 644 %SOURCE3 %buildroot/usr/lib/udev/rules.d/85-usb_elotouch_wakeup.rules
install -m 644 %SOURCE4 %buildroot/usr/lib/udev/rules.d/85-usb_autosuspend_devices.rules
%files
%defattr(0644, root, root, 0755)
%attr(0644, root, root) %{_mandir}/man1/*
%attr(0644, root, root) %{_mandir}/man8/*
%attr(0755, root, root) %{_bindir}/*
%attr(0755, root, root) %{_sbindir}/*
%{_datadir}/usb.ids
%{_datadir}/pkgconfig/usbutils.pc
%doc AUTHORS ChangeLog
/usr/lib/udev/rules.d/85-usb_elotouch_wakeup.rules
/usr/lib/udev/rules.d/85-usb_autosuspend_devices.rules
%changelog