]> git.pld-linux.org Git - packages/wget.git/commitdiff
- run tests (one fails but hopefully will be fixed in next wget release)
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 30 Nov 2014 21:41:41 +0000 (22:41 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 30 Nov 2014 21:41:41 +0000 (22:41 +0100)
wget.spec

index b06a158c2ff191e9c7660c8abab505ab60d2a329..e66af64298f5b220811eac1eb1c9817ae229d3fa 100644 (file)
--- 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}
This page took 0.038148 seconds and 4 git commands to generate.