mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
spec: Add an (optional) lvm2-testsuite subpackage.
This commit is contained in:
parent
d488f03229
commit
d5537e7d6b
@ -37,6 +37,9 @@ make install_initscripts DESTDIR=$RPM_BUILD_ROOT
|
||||
make install_systemd_units DESTDIR=$RPM_BUILD_ROOT
|
||||
make install_tmpfiles_configuration DESTDIR=$RPM_BUILD_ROOT
|
||||
%endif
|
||||
%if %{enable_testsuite}
|
||||
make -C test install DESTDIR=$RPM_BUILD_ROOT
|
||||
%endif
|
||||
|
||||
# when building an src.rpm from freestanding specfiles
|
||||
test -e %{_sourcedir}/source.inc || cp source.inc build.inc packages.inc macros.inc %{_sourcedir}
|
||||
|
@ -494,3 +494,18 @@ the device-mapper event library.
|
||||
%{_includedir}/libdevmapper-event.h
|
||||
%{_libdir}/pkgconfig/devmapper-event.pc
|
||||
|
||||
%if %{enable_testsuite}
|
||||
%package testsuite
|
||||
Summary: LVM2 Testsuite
|
||||
License: LGPLv2
|
||||
Group: Development
|
||||
|
||||
%description testsuite
|
||||
An extensive functional testsuite for LVM2.
|
||||
|
||||
%files testsuite
|
||||
%defattr(-,root,root,-)
|
||||
%{_datadir}/lvm2-testsuite/
|
||||
%{_libexecdir}/lvm2-testsuite/
|
||||
%{_bindir}/lvm2-testsuite
|
||||
%endif
|
||||
|
@ -4,6 +4,7 @@
|
||||
# Defaults (rawhide)...
|
||||
|
||||
%global enable_profiling 0
|
||||
%global enable_testsuite 0
|
||||
%global enable_udev 1
|
||||
%global enable_systemd 1
|
||||
%global enable_cmirror 1
|
||||
|
Loading…
Reference in New Issue
Block a user