From 62a09e09e8902f1ed4f027b544f3e02d707a5668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Thu, 28 Feb 2019 05:46:33 +0000 Subject: [PATCH] Requires perl(MIME::Lite) on dpkg-dev (rhbz #1678637) Adds check section and performs unit tests but ignores failures --- dpkg.spec | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/dpkg.spec b/dpkg.spec index 269e379..0e54885 100644 --- a/dpkg.spec +++ b/dpkg.spec @@ -3,7 +3,7 @@ Name: dpkg Version: 1.18.25 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Package maintenance system for Debian Linux # The entire source code is GPLv2+ with exception of the following # lib/dpkg/md5.c, lib/dpkg/md5.h - Public domain @@ -43,6 +43,12 @@ BuildRequires: perl-podlators %endif # Needed for --clamp-mtime in dpkg-source -b. #Requires: tar >= 2:1.28 +# Need by make check +BuildRequires: perl(Test::More) +BuildRequires: perl(IPC::Cmd) +BuildRequires: perl(Digest::SHA) +BuildRequires: perl(IO::String) +BuildRequires: fakeroot Requires(post): coreutils @@ -79,7 +85,13 @@ at any time, use at your own risk. %package dev Summary: Debian package development tools Requires: dpkg-perl = %{version}-%{release} -Requires: patch, make, binutils, bzip2, lzma, xz +Requires: patch +Requires: make +Requires: binutils +Requires: bzip2 +Requires: lzma +Requires: xz +Requires: perl(MIME::Lite) Obsoletes: dpkg-devel < 1.16 BuildArch: noarch @@ -256,6 +268,10 @@ rm -rf %{buildroot}%{_mandir}/it/man5/ rm -rf %{buildroot}%{_mandir}/pl/man1/ %endif +%check +make VERBOSE=1 TESTSUITEFLAGS=--verbose \ + TEST_PARALLEL=4 check || : + %post # from dpkg.postinst @@ -464,6 +480,10 @@ create_logfile %changelog +* Thu Feb 28 2019 Sérgio Basto - 1.18.25-8 +- Requires perl(MIME::Lite) on dpkg-dev (rhbz #1678637) +- Adds check section and performs unit tests but ignores failures + * Thu Jan 31 2019 Fedora Release Engineering - 1.18.25-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild