- add a new test package named lvm2-testsuite bnc#950089

* lvm2-testsuite.patch

- add a new test package named lvm2-testsuite bnc#950089
  * lvm2-testsuite.patch

- add a new test package named lvm2-testsuite bnc#950089
  * lvm2-testsuite.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/lvm2?expand=0&rev=163
This commit is contained in:
Tomáš Chvátal
2017-01-10 09:43:13 +00:00
committed by Git OBS Bridge
parent c10bed7ee3
commit cd20cc0748
7 changed files with 85 additions and 7 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package lvm2
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -77,6 +77,8 @@ Patch2008: libdm-iface-not-output-error-message-inside-retry-loop.patch
Patch2009: pvcreate-enhance-the-error-message.patch
# bnc#990538 bnc#986734
Patch2010: 69-dm-lvm-metad.rules-Do-not-process-rules-for-multi.patch
#PATCH-FIX-SUSE, bnc#950089
Patch2011: lvm2-testsuite.patch
### COMMON-PATCH-END ###
BuildRequires: gcc-c++
BuildRequires: libaio-devel
@@ -128,6 +130,16 @@ Recommends: device-mapper-devel
%description devel
This package provides development files for the LVM2 Logical Volume Manager.
%package testsuite
Summary: LVM2 Testsuite
Group: Development/Libraries/C and C++
Requires: %{applib} = %{version}
Requires: %{cmdlib} = %{version}
Requires: lvm2 = %{version}
%description testsuite
An extensive functional testsuite for the LVM2 Logical Volume Manager.
%prep
%setup -q -n LVM2.%{version}
### COMMON-PREP-BEGIN ###
@@ -160,6 +172,7 @@ This package provides development files for the LVM2 Logical Volume Manager.
%patch2008 -p1
%patch2009 -p1
%patch2010 -p1
%patch2011 -p1
### COMMON-PREP-END ###
%build
@@ -206,6 +219,8 @@ make install_systemd_generators DESTDIR=%{buildroot}
make install_tmpfiles_configuration DESTDIR=%{buildroot}
# Install configuration file
install -m 644 %{SOURCE1} "%{buildroot}/%{_sysconfdir}/lvm/"
# Install testsuite
make -C test install DESTDIR=%{buildroot}
pushd "%{buildroot}/%{_libdir}"
ln -sf liblvm2cmd.so.2.02 liblvm2cmd.so
@@ -256,7 +271,7 @@ popd
%{?regenerate_initrd_post}
%service_add_post blk-availability.service lvm2-monitor.service lvm2-lvmetad.socket lvm2-lvmetad.service
# Use %%tmpfiles_create when 13.2 is oldest in support scope
/usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/lvm2.conf || :
%{_bindir}/systemd-tmpfiles --create %{_tmpfilesdir}/lvm2.conf || :
%posttrans
%{?regenerate_initrd_posttrans}
@@ -317,9 +332,9 @@ popd
%{_libdir}/libdevmapper-event-lvm2*.so
%{_libdir}/libdevmapper-event-lvm2*.so.2.02
%{_libdir}/libdevmapper-event-lvm2.so
%{_mandir}/man5/lvm.conf.5.*
%{_mandir}/man8/blkdeactivate.8.*
%{_mandir}/man8/fsadm.8.gz
%{_mandir}/man5/lvm.conf.5%{ext_man}
%{_mandir}/man8/blkdeactivate.8%{ext_man}
%{_mandir}/man8/fsadm.8%{ext_man}
%{_mandir}/man8/lv*.8*
%{_mandir}/man8/pv*.8*
%{_mandir}/man8/vg*.8*
@@ -335,4 +350,10 @@ popd
%{_libdir}/liblvm2app.so
%{_libdir}/liblvm2cmd.so
%files testsuite
%defattr(-,root,root,-)
%{_datarootdir}/lvm2-testsuite/
%{_libexecdir}/lvm2-testsuite/
%{_bindir}/lvm2-testsuite
%changelog