File libusb.spec of Package libusb
#
# spec file for package libusb (Version 0.1.12)
#
# 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
BuildRequires: gcc-c++ pkg-config
BuildRequires: docbook-dsssl-stylesheets doxygen graphviz jade
Url: http://libusb.sourceforge.net/
License: LGPL v2.1 or later
Group: System/Libraries
Summary: USB Libraries
Version: 0.1.12
Release: 139
Source0: %{name}-%{version}.tar.bz2
Patch0: libusb-autoreconf.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libusb-0_1-4 = %{version}-%{release}
%description
Libusb is a library that allows userspace access to USB devices.
Authors:
--------
Johannes Erdfelt <johannes@erdfelt.com>
Thomas Sailer <sailer@ife.ee.ethz.ch>
Brad Hards <bradh@frogmouth.net> - C++ bindings.
%package -n libusb-0_1-4
License: LGPL v2.1 or later
Group: System/Libraries
Summary: USB Libraries
# bug437293
%ifarch ppc64
Obsoletes: libusb-64bit
%endif
#
# For upgrade from <= openSUSE 11.0 and <= SLE10:
Provides: libusb:%{_libdir}/libusb-0.1.so.4
%description -n libusb-0_1-4
Libusb is a library that allows userspace access to USB devices.
Authors:
--------
Johannes Erdfelt <johannes@erdfelt.com>
Thomas Sailer <sailer@ife.ee.ethz.ch>
Brad Hards <bradh@frogmouth.net> - C++ bindings.
%package -n libusbpp-0_1-4
License: LGPL v2.1 or later
Group: System/Libraries
Summary: USB Libraries
# For upgrade from <= openSUSE 11.0 and <= SLE10:
Provides: libusb:%{_libdir}/libusbpp-0.1.so.4
%description -n libusbpp-0_1-4
Libusb is a library that allows userspace access to USB devices.
Authors:
--------
Johannes Erdfelt <johannes@erdfelt.com>
Thomas Sailer <sailer@ife.ee.ethz.ch>
Brad Hards <bradh@frogmouth.net> - C++ bindings.
%package devel
License: LGPL v2.1 or later
Group: Development/Libraries/C and C++
Summary: USB Libraries
Requires: libusb-0_1-4 = %{version}
Requires: libusbpp-0_1-4 = %{version}
Requires: libstdc++-devel
Conflicts: libusb-compat-devel
%description devel
Libusb is a library that allows userspace access to USB devices.
Authors:
--------
Johannes Erdfelt <johannes@erdfelt.com>
Thomas Sailer <sailer@ife.ee.ethz.ch>
Brad Hards <bradh@frogmouth.net> - C++ bindings.
%prep
%setup -q
%patch
%build
autoreconf -f -i
%configure --disable-static --with-pic
make %{?jobs:-j%jobs}
%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%post -n libusb-0_1-4 -p /sbin/ldconfig
%postun -n libusb-0_1-4 -p /sbin/ldconfig
%post -n libusbpp-0_1-4 -p /sbin/ldconfig
%postun -n libusbpp-0_1-4 -p /sbin/ldconfig
%files -n libusb-0_1-4
%defattr(-,root,root)
# Nothing useful in NEWS
%doc AUTHORS COPYING LICENSE README
%{_libdir}/libusb-*.so.*
%files -n libusbpp-0_1-4
%defattr(-,root,root)
%{_libdir}/libusbpp-*.so.*
%files devel
%defattr(-,root,root)
%doc doc/html/*
%{_bindir}/libusb-config
%{_includedir}/*.h
%{_libdir}/libusb*.so
%{_libdir}/pkgconfig/libusb.pc
%changelog
* Mon Mar 30 2009 crrodriguez@suse.de
- remove static libraries and "la" files
* Tue Jan 13 2009 olh@suse.de
- obsolete old -XXbit packages (bnc#437293)
* Wed Nov 12 2008 sbrabec@suse.cz
- Package undropped. (bnc#443861)
- Split according to shared library packaging policy.
- Conflict with libusb-compat-devel.
- Install documentation.
* 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
* Fri May 27 2005 olh@suse.de
- update to 0.1.10a
* Thu May 26 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"
* Mon Sep 03 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