File libusb-1_0.spec of Package libusb-1_0

#
# spec file for package libusb-1_0 (Version 1.0.2)
#
# Copyright (c) 2009 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:           libusb-1_0
%define _name libusb
Url:            http://libusb.wiki.sourceforge.net/Libusb1.0
License:        LGPL v2.1 or later
Summary:        USB Library
Group:          System/Libraries
Version:        1.0.2
Release:        1
Source:         %{_name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM libusb-compat-autotools.patch https://sourceforge.net/tracker/?func=detail&aid=2813990&group_id=1674&atid=301674 sbrabec@suse.cz -- Build with the latest autotools.
Patch:          libusb-1_0-autotools.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libusb-1_0-0 = %{version}-%{release}

%description
Libusb is a library that allows userspace access to USB devices.



Authors:
--------
    Daniel Drake <dsd@gentoo.org>
    Johannes Erdfelt <johannes@erdfelt.com>
    Artem Egorkine
    David Engraf
    Rob Walker
    Vasily Khoruzhick

%package -n libusb-1_0-0
License:        LGPL v2.1 or later
Summary:        USB Library
Group:          System/Libraries

%description -n libusb-1_0-0
Libusb is a library that allows userspace access to USB devices.



Authors:
--------
    Daniel Drake <dsd@gentoo.org>
    Johannes Erdfelt <johannes@erdfelt.com>
    Artem Egorkine
    David Engraf
    Rob Walker
    Vasily Khoruzhick

%package devel
License:        LGPL v2.1 or later
Summary:        USB Library
Group:          Development/Libraries/C and C++
Requires:       libusb-1_0-0 = %{version} glibc-devel

%description devel
Libusb is a library that allows userspace access to USB devices.



Authors:
--------
    Daniel Drake <dsd@gentoo.org>
    Johannes Erdfelt <johannes@erdfelt.com>
    Artem Egorkine
    David Engraf
    Rob Walker
    Vasily Khoruzhick

%prep
%setup -q -n %{_name}-%{version}
%patch -p1

%build
autoreconf -f -i
%configure --with-pic\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la

%post -n libusb-1_0-0 -p /sbin/ldconfig

%postun -n libusb-1_0-0 -p /sbin/ldconfig

%files -n libusb-1_0-0
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS TODO
%{_libdir}/*.so.*

%files devel
%defattr(-,root,root)
%doc PORTING
%{_includedir}/libusb-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%changelog
openSUSE Build Service is sponsored by