!8 [sync] PR-7: add make check in spec
From: @openeuler-sync-bot Reviewed-by: @swf504 Signed-off-by: @swf504
This commit is contained in:
commit
df10d247b7
34
libusb.spec
34
libusb.spec
@ -1,7 +1,7 @@
|
|||||||
Name: libusb
|
Name: libusb
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Version: 0.1.5
|
Version: 0.1.5
|
||||||
Release: 15
|
Release: 16
|
||||||
Summary: USB Library
|
Summary: USB Library
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: http://sourceforge.net/projects/libusb/
|
URL: http://sourceforge.net/projects/libusb/
|
||||||
@ -20,15 +20,35 @@ Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
|
|||||||
%description devel
|
%description devel
|
||||||
This package contains the files needed to develop applications that use libusb-0.1.
|
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
|
%prep
|
||||||
%autosetup -Sgit -n libusb-compat-%{version}
|
%autosetup -Sgit -n libusb-compat-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static --enable-examples-build
|
||||||
%make_build
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_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
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -45,7 +65,17 @@ This package contains the files needed to develop applications that use libusb-0
|
|||||||
%{_libdir}/pkgconfig/*
|
%{_libdir}/pkgconfig/*
|
||||||
%{_libdir}/libusb.so
|
%{_libdir}/libusb.so
|
||||||
|
|
||||||
|
%files tests-examples
|
||||||
|
%{_bindir}/libusb-compat-0.1-lsusb
|
||||||
|
%{_bindir}/libusb-compat-0.1-testlibusb
|
||||||
|
|
||||||
%changelog
|
%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
|
* Tue Sep 3 2019 openEuler Buildteam <buildteam@openeuler.org> - 1:0.1.5-15
|
||||||
- Type:enhancemnet
|
- Type:enhancemnet
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user