[packages/wget] - run tests (one fails but hopefully will be fixed in next wget release)
arekm
arekm at pld-linux.org
Sun Nov 30 22:41:46 CET 2014
commit 5e669063b0b07908cd934fe2ffdc140f5fe6d8e7
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Nov 30 22:41:41 2014 +0100
- run tests (one fails but hopefully will be fixed in next wget release)
wget.spec | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/wget.spec b/wget.spec
index b06a158..e66af64 100644
--- a/wget.spec
+++ b/wget.spec
@@ -5,6 +5,7 @@
# - add http://article.gmane.org/gmane.comp.web.wget.patches/2333
#
# Conditional build:
+%bcond_without tests
%bcond_with gnutls # use GnuTLS (wget default) instead of OpenSSL
#
Summary: A utility for retrieving files using the HTTP or FTP protocols
@@ -43,6 +44,11 @@ BuildRequires: tar >= 1:1.22
BuildRequires: texinfo
BuildRequires: xz
BuildRequires: zlib-devel
+%if %{with tests}
+BuildRequires: perl-HTTP-Daemon
+BuildRequires: perl-HTTP-Message
+BuildRequires: perl-IO-Socket-SSL
+%endif
Provides: webclient
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -124,6 +130,7 @@ Proxy серверів, настроюваність.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+
%{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
# temp hack for 1.13.4
@@ -147,6 +154,8 @@ tail -n 6 util/README >rmold.README
# 1.13.4 tarball was buggy and produced empty version.
grep %{version} src/version.c
+%{?with_tests:%{__make} check}
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_sysconfdir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wget.git/commitdiff/5e669063b0b07908cd934fe2ffdc140f5fe6d8e7
More information about the pld-cvs-commit
mailing list