update libusb.spec.
add check in spec Signed-off-by: yangkunlin <yangkunlin7@huawei.com> (cherry picked from commit 60f8b1a2ae26d699f5146cca0d199ce8622279a4)
This commit is contained in:
parent
3c36cf92ad
commit
50e1c52c47
34
libusb.spec
34
libusb.spec
@ -1,7 +1,7 @@
|
||||
Name: libusb
|
||||
Epoch: 1
|
||||
Version: 0.1.5
|
||||
Release: 15
|
||||
Release: 16
|
||||
Summary: USB Library
|
||||
License: LGPLv2+
|
||||
URL: http://sourceforge.net/projects/libusb/
|
||||
@ -20,15 +20,35 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
%description devel
|
||||
This package contains the files needed to develop applications that use libusb-0.1.
|
||||
|
||||
%package tests-examples
|
||||
Summary: Tests and examples for %{name}
|
||||
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
||||
|
||||
%description tests-examples
|
||||
This package contains tests and examples for %{name}.
|
||||
|
||||
%prep
|
||||
%autosetup -Sgit -n libusb-compat-%{version}
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
%configure --disable-static --enable-examples-build
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%make_install
|
||||
for i in lsusb testlibusb; do
|
||||
install -m 755 examples/.libs/$i \
|
||||
$RPM_BUILD_ROOT%{_bindir}/libusb-compat-0.1-$i
|
||||
done
|
||||
|
||||
|
||||
%check
|
||||
LD_LIBRARY_PATH=libusb/.libs ldd -r $RPM_BUILD_ROOT%{_bindir}/libusb-compat-0.1-lsusb
|
||||
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-compat-0.1-lsusb
|
||||
LD_LIBRARY_PATH=libusb/.libs $RPM_BUILD_ROOT%{_bindir}/libusb-compat-0.1-testlibusb
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
@ -45,7 +65,17 @@ This package contains the files needed to develop applications that use libusb-0
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_libdir}/libusb.so
|
||||
|
||||
%files tests-examples
|
||||
%{_bindir}/libusb-compat-0.1-lsusb
|
||||
%{_bindir}/libusb-compat-0.1-testlibusb
|
||||
|
||||
%changelog
|
||||
* Thu Apr 6 2023 yangkunlin <yangkunlin7@huawei.com> - 1:0.1.5-16
|
||||
- Type:enhancemnet
|
||||
- ID:NA
|
||||
- SUG:restart
|
||||
- DESC:add make check in spec
|
||||
|
||||
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.1.5-15
|
||||
- Type:enhancemnet
|
||||
- ID:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user