File usbutils.spec of Package usbutils

#
# spec file for package usbutils
#
# Copyright (c) 2011 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/
#

# norootforbuild


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

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

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

%build
%configure \
  --prefix=%{_prefix} \
  --libdir=%{_libdir} \
  --datadir=%{_datadir} \
  --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