Change-Id: I61dd6f19f4b080c3d8eed895c290eab88633dd0b
Reviewed-on: http://photon-jenkins.eng.vmware.com/815
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: suezzelur <anishs@vmware.com>
(cherry picked from commit 5abdb89baa06e578ecdf420e1a13681d2d6e1253)
Reviewed-on: http://photon-jenkins.eng.vmware.com/911
Tested-by: suezzelur <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,53 @@ |
| 0 |
+Summary: A library which allows userspace access to USB devices |
|
| 1 |
+Name: libusb |
|
| 2 |
+Version: 1.0.20 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: LGPLv2+ |
|
| 5 |
+URL: http://sourceforge.net/projects/libusb/ |
|
| 6 |
+Group: System Environment/Libraries |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+Source: http://downloads.sourceforge.net/libusb/libusb-%{version}.tar.bz2
|
|
| 10 |
+%define sha1 libusb=9537243f165927bde74ad742e6b3effb0bd50cd2 |
|
| 11 |
+BuildRequires: systemd |
|
| 12 |
+Requires: systemd |
|
| 13 |
+ |
|
| 14 |
+%description |
|
| 15 |
+This package provides a way for applications to access USB devices. |
|
| 16 |
+ |
|
| 17 |
+%package devel |
|
| 18 |
+Summary: Development files for libusb |
|
| 19 |
+Group: Development/Libraries |
|
| 20 |
+Requires: %{name} = %{version}
|
|
| 21 |
+ |
|
| 22 |
+%description devel |
|
| 23 |
+This package contains the header files, libraries and documentation needed to |
|
| 24 |
+develop applications that use libusb. |
|
| 25 |
+ |
|
| 26 |
+%prep |
|
| 27 |
+%setup -q |
|
| 28 |
+ |
|
| 29 |
+%build |
|
| 30 |
+%configure --disable-static |
|
| 31 |
+make %{?_smp_mflags}
|
|
| 32 |
+ |
|
| 33 |
+%install |
|
| 34 |
+make DESTDIR=%{buildroot} install
|
|
| 35 |
+ |
|
| 36 |
+%post -p /sbin/ldconfig |
|
| 37 |
+%postun -p /sbin/ldconfig |
|
| 38 |
+ |
|
| 39 |
+%files |
|
| 40 |
+%doc AUTHORS COPYING ChangeLog NEWS README |
|
| 41 |
+%{_libdir}/libusb*.so.*
|
|
| 42 |
+ |
|
| 43 |
+%files devel |
|
| 44 |
+%{_includedir}/*
|
|
| 45 |
+%{_libdir}/libusb*.so
|
|
| 46 |
+%{_libdir}/libusb*.la
|
|
| 47 |
+%{_libdir}/pkgconfig/*
|
|
| 48 |
+ |
|
| 49 |
+%changelog |
|
| 50 |
+* Thu May 05 2016 Nick Shi <nshi@vmware.com> 1.0.20-1 |
|
| 51 |
+- Initial version |
|
| 52 |
+ |