Accepting request 213314 from home:llipavsky:branches:Base:System
add tests subpackage. * It is the same testsuite that is run during make check. * It is now possible to run it in real system to verify that nothing is broken by incompatible libraries, etc. This change allows QA to run the testsuite. OBS-URL: https://build.opensuse.org/request/show/213314 OBS-URL: https://build.opensuse.org/package/show/Base:System/tar?expand=0&rev=50
This commit is contained in:
committed by
Git OBS Bridge
parent
4dd080afd0
commit
adc784ced5
26
tar.spec
26
tar.spec
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package tar
|
||||
#
|
||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -35,6 +35,7 @@ Patch3: tar-wildcards.patch
|
||||
Patch6: tar-backup-spec-fix-paths.patch
|
||||
Patch7: tar-1.26-remove_O_NONBLOCK.patch
|
||||
Patch10: paxutils-rtapelib_mtget.patch
|
||||
Patch20: add_readme-tests.patch
|
||||
%if 0%{?suse_version} >= %min_suse_ver
|
||||
BuildRequires: help2man
|
||||
Recommends: tar-lang = %{version}
|
||||
@@ -61,6 +62,14 @@ Requires: %{name} = %{version}
|
||||
%description backup-scripts
|
||||
Shell scripts for system backup/restore
|
||||
|
||||
%package tests
|
||||
Summary: Tests for the package
|
||||
Group: Development/Tests
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description tests
|
||||
Upstream testsuite for the package
|
||||
|
||||
%{?lang_package}
|
||||
|
||||
%prep
|
||||
@@ -69,6 +78,7 @@ Shell scripts for system backup/restore
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
%patch10 -p1
|
||||
%patch20 -p1
|
||||
|
||||
%build
|
||||
%define my_cflags -W -Wall -Wpointer-arith -Wstrict-prototypes -Wformat-security -Wno-unused-parameter
|
||||
@@ -80,6 +90,11 @@ export DEFAULT_ARCHIVE_FORMAT="POSIX"
|
||||
--enable-backup-scripts \
|
||||
--disable-silent-rules
|
||||
make %{?_smp_mflags};
|
||||
cd tests
|
||||
make genfile
|
||||
mkdir bin
|
||||
mv genfile bin
|
||||
cd -
|
||||
|
||||
%check
|
||||
%if !0%{?qemu_user_space_build:1}
|
||||
@@ -99,6 +114,11 @@ install -d -m 755 %{buildroot}%{_sysconfdir}/backup
|
||||
install -D -m 644 scripts/backup-specs %{buildroot}%{_sysconfdir}/backup/backup-specs
|
||||
rm -rf %{buildroot}%{_libexecdir}/rmt
|
||||
rm -f %{buildroot}%{_infodir}/dir
|
||||
install -d -m 755 %{buildroot}/var/lib/tests
|
||||
cp -r tests %{buildroot}/var/lib/tests/tar
|
||||
rm %{buildroot}/var/lib/tests/tar/*.{c,h,o}
|
||||
rm %{buildroot}/var/lib/tests/tar/package.m4
|
||||
rm %{buildroot}/var/lib/tests/tar/{atconfig,atlocal,Makefile}*
|
||||
%find_lang %{name}
|
||||
|
||||
%files backup-scripts
|
||||
@@ -114,6 +134,10 @@ rm -f %{buildroot}%{_infodir}/dir
|
||||
|
||||
%files lang -f %{name}.lang
|
||||
|
||||
%files tests
|
||||
%defattr(-,root, root)
|
||||
/var/lib/tests
|
||||
|
||||
%files
|
||||
%else
|
||||
|
||||
|
Reference in New Issue
Block a user