1 Summary: Library for accessing USB devices
5 Source0: http://downloads.sourceforge.net/libusbx/%{name}-%{version}.tar.bz2
6 # Source0-md5: 99467ca2cb81c19c4a172de9f30e7576
9 URL: http://sourceforge.net/apps/mediawiki/libusbx/
10 BuildRequires: doxygen
11 BuildRequires: systemd-devel
12 BuildRequires: udev-devel
13 Provides: libusb1 = %{version}-%{release}
14 Obsoletes: libusb1 <= 1.0.9
17 This package provides a way for applications to access USB devices.
19 Libusbx is a fork of the original libusb, which is a fully API and ABI
20 compatible drop in for the libusb-1.0.9 release. The libusbx fork was
21 started by most of the libusb-1.0 developers, after the original
22 libusb project did not produce a new release for over 18 months.
24 Note that this library is not compatible with the original libusb-0.1
25 series, if you need libusb-0.1 compatibility install the libusb
29 Summary: Development files for %{name}
30 Group: Development/Libraries
31 Requires: %{name} = %{version}-%{release}
32 Provides: libusb1-devel = %{version}-%{release}
33 Obsoletes: libusb1-devel <= 1.0.9
36 The %{name}-devel package contains libraries and header files for
37 developing applications that use %{name}.
45 --disable-silent-rules \
46 --enable-examples-build \
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
57 rm $RPM_BUILD_ROOT%{_libdir}/*.la
60 rm -rf $RPM_BUILD_ROOT
62 %post -p /sbin/ldconfig
63 %postun -p /sbin/ldconfig
66 %defattr(644,root,root,755)
67 %doc AUTHORS COPYING README ChangeLog
71 %defattr(644,root,root,755)
72 %doc doc/html examples/*.c
73 %{_includedir}/libusb-1.0
75 %{_pkgconfigdir}/libusb-1.0.pc