| 1 | Summary: A library which allows userspace access to USB devices
|
|---|
| 2 | Name: libusb1
|
|---|
| 3 | Version: 1.0.21
|
|---|
| 4 | Release: 1%{?dist}
|
|---|
| 5 |
|
|---|
| 6 | License: LGPLv2+
|
|---|
| 7 | Group: System Environment/Libraries
|
|---|
| 8 | URL: http://libusb.info/
|
|---|
| 9 |
|
|---|
| 10 | Vendor: bww bitwise works GmbH
|
|---|
| 11 | %scm_source svn http://svn.netlabs.org/repos/ports/libusb1/trunk 1938
|
|---|
| 12 |
|
|---|
| 13 | BuildRequires: usbcalls-devel
|
|---|
| 14 | BuildRequires: doxygen libtool
|
|---|
| 15 | Requires: usbcalls
|
|---|
| 16 |
|
|---|
| 17 | %description
|
|---|
| 18 | This package provides a way for applications to access USB devices. Note that
|
|---|
| 19 | this library is not compatible with the original libusb-0.1 series.
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 | %package devel
|
|---|
| 23 | Summary: Development files for %{name}
|
|---|
| 24 | Group: Development/Libraries
|
|---|
| 25 | Requires: %{name} = %{version}-%{release}
|
|---|
| 26 | Requires: %{name}-devel-doc = %{version}-%{release}
|
|---|
| 27 | Requires: pkgconfig
|
|---|
| 28 |
|
|---|
| 29 | %description devel
|
|---|
| 30 | The %{name}-devel package contains libraries and header files for
|
|---|
| 31 | developing applications that use %{name}.
|
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 | %package devel-doc
|
|---|
| 35 | Summary: Development files for %{name}
|
|---|
| 36 | Group: Development/Libraries
|
|---|
| 37 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 38 | BuildArch: noarch
|
|---|
| 39 |
|
|---|
| 40 | %description devel-doc
|
|---|
| 41 | This package contains API documentation for %{name}.
|
|---|
| 42 |
|
|---|
| 43 | %legacy_runtime_packages
|
|---|
| 44 |
|
|---|
| 45 | %debug_package
|
|---|
| 46 |
|
|---|
| 47 |
|
|---|
| 48 | %prep
|
|---|
| 49 | %scm_setup
|
|---|
| 50 |
|
|---|
| 51 | autoreconf -ifv
|
|---|
| 52 |
|
|---|
| 53 |
|
|---|
| 54 | %build
|
|---|
| 55 | export LDFLAGS="-Zhigh-mem -Zomf"
|
|---|
| 56 | export VENDOR="%{vendor}"
|
|---|
| 57 |
|
|---|
| 58 | %configure --disable-static
|
|---|
| 59 | make
|
|---|
| 60 |
|
|---|
| 61 | cd doc
|
|---|
| 62 | make docs
|
|---|
| 63 | cd ..
|
|---|
| 64 |
|
|---|
| 65 |
|
|---|
| 66 | %install
|
|---|
| 67 | %make_install
|
|---|
| 68 | rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
|---|
| 69 |
|
|---|
| 70 |
|
|---|
| 71 | %clean
|
|---|
| 72 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|
| 75 | #post -p /sbin/ldconfig
|
|---|
| 76 | #postun -p /sbin/ldconfig
|
|---|
| 77 |
|
|---|
| 78 |
|
|---|
| 79 | %files
|
|---|
| 80 | %defattr(-,root,root)
|
|---|
| 81 | %license COPYING
|
|---|
| 82 | %doc AUTHORS README ChangeLog
|
|---|
| 83 | %{_libdir}/*.dll
|
|---|
| 84 | %exclude %{_libdir}/libusb10.dll
|
|---|
| 85 |
|
|---|
| 86 |
|
|---|
| 87 | %files devel
|
|---|
| 88 | %defattr(-,root,root)
|
|---|
| 89 | %{_includedir}/libusb-1.0
|
|---|
| 90 | %{_libdir}/*_dll.a
|
|---|
| 91 | %{_libdir}/pkgconfig/libusb-1.0.pc
|
|---|
| 92 |
|
|---|
| 93 |
|
|---|
| 94 | %files devel-doc
|
|---|
| 95 | %defattr(-,root,root)
|
|---|
| 96 | %doc doc/html examples/*.c
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 | %changelog
|
|---|
| 100 | * Mon Dec 12 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.0.21-1
|
|---|
| 101 | - update to version 1.0.21
|
|---|
| 102 | - add the documention
|
|---|
| 103 | - use the new scm_source and scm_setup macros
|
|---|
| 104 |
|
|---|
| 105 | * Wed Jun 15 2016 yd <yd@os2power.com> 1.0.16-2
|
|---|
| 106 | - added requirements.
|
|---|
| 107 | - added debug package.
|
|---|
| 108 |
|
|---|
| 109 | * Wed Apr 16 2014 yd
|
|---|
| 110 | - first public build.
|
|---|