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

#
# spec file for package libusb-1_0 (Version 0.9.3)
#
# Copyright (c) 2008 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.sourceforge.net/Libusb1.0
License:        LGPL v2.1 or later
Summary:        USB Library
Group:          System/Libraries
Version:        0.9.3
Release:        4
Source:         %{_name}-%{version}.tar.bz2
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}

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

%install
%makeinstall

%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}/*.*a
%{_libdir}/pkgconfig/*.pc

%changelog
* Mon Oct 06 2008 sbrabec@suse.cz
- Added baselibs.conf (bnc#432304).
* Wed Sep 24 2008 ro@suse.de
- fix debug package requires
* Wed Sep 10 2008 sbrabec@suse.cz
- Updated to version 0.9.3:
  * New branch, new API.
  * Introduced contexts to the API.
  * Compatible with new Linux kernel features.
  * Isochronous endpoint I/O
  * Asynchronous I/O with per-URB style callbacks
  * Zero threads (lightweight, uses main thread of calling
  application)
  * Exposure of poll fds to applications for good mainloop
  integration
* Fri Sep 05 2008 sbrabec@suse.cz
- Split according to shared library policy.
- Disabled static library.
* Wed May 07 2008 schwab@suse.de
- Fix configure script.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Wed May 23 2007 meissner@suse.de
- libusb main package no longer should provide libusb-devel.
- run ldconfig in %%post/%%postun
* Tue May 22 2007 olh@suse.de
- split libusb-devel package (#203989)
* Tue Apr 17 2007 sbrabec@suse.cz
- Provide libusb-devel.
* Sun Mar 05 2006 olh@suse.de
- update to 0.1.12
  endian fixes, memory leaks fixed
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Sat Jan 21 2006 olh@suse.de
- update to 0.1.11
  pkgconfig support
  Workaround regression in 0.1.10 with multi-threaded applications
* Fri Dec 09 2005 olh@suse.de
- remove resmgr patch
* Wed Nov 16 2005 lnussel@suse.de
- prefer /dev/bus/usb over /proc/bus/usb
- disable resmgr patch, not needed for /dev/bus/usb anymore
* Wed Aug 10 2005 olh@suse.de
- add patch from Kay Sievers to look also into /dev/bus/usb
* Tue May 31 2005 olh@suse.de
- add libusb-libusb_la-dep.patch to allow make -j
* Sat May 28 2005 olh@suse.de
- update to 0.1.10a
* Fri May 27 2005 olh@suse.de
- fix compile warnings
- build as user
- split our resmgr patch
* Sat Mar 19 2005 meissner@suse.de
- fixed a filedescriptor leak. #73967
* Sat Feb 21 2004 meissner@suse.de
- upgraded to 0.1.8 final.
* Thu Feb 05 2004 lnussel@suse.de
- add -lresmgr to output of libusb-config
* Mon Aug 25 2003 adrian@suse.de
- do not provide usb anymore, it is not needed for an update
  and breaks rpm4 update concept
* Tue Jul 22 2003 meissner@suse.de
- Upgraded to 0.1.8beta (finally supports USB interrupt
  tranfers).
- Forward ported resmgr patch.
* Wed May 14 2003 meissner@suse.de
- added libusb.la.
* Wed Mar 05 2003 meissner@suse.de
- the resmgr device finder part was adding all devices
  to all USB busses, leading to confusion later on. Check
  for correct busnumber.
* Mon Nov 18 2002 schwab@suse.de
- Fix use of AC_DIVERT_PUSH.
* Mon Nov 11 2002 okir@suse.de
- allow opening USB devices via the resource manager
* Tue Oct 15 2002 freitag@suse.de
- updated to 0.1.6a stable release to support more scanners
* Thu Feb 07 2002 meissner@suse.de
- updated to 0.1.5 stable release
* Mon Jan 21 2002 meissner@suse.de
- updated to latest CVS snapshot, so I can build gphoto2.
- use buildroot
* Sat Nov 03 2001 ro@suse.de
- call automake with "-a -f"
* Tue Sep 04 2001 ro@suse.de
- removed Obsoletes and Provides usbutils (package reanimated)
* Fri May 25 2001 adrian@suse.de
- update to libusb-0.1.3b
- rename package from usbutils to libusb
* Tue Dec 05 2000 schwab@suse.de
- Add %%suse_update_config.
* Thu Nov 30 2000 olaf@suse.de
- add usbutils 0.7 to SuSE dist, will replace the usb.rpm
openSUSE Build Service is sponsored by