]> git.pld-linux.org Git - packages/wget.git/blobdiff - wget.spec
Set the 'user.xdg.origin.url' xattr for downloaded files
[packages/wget.git] / wget.spec
index 056b84622beb4a8c28be7de11648231751fb6a6d..b7c0c9c5dae2b31909dc301982153cc6f6c4e895 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
@@ -16,30 +17,40 @@ Summary(ru.UTF-8):  Утилита для получения файлов по п
 Summary(uk.UTF-8):     Утиліта для отримання файлів по протоколам HTTP та FTP
 Summary(zh_CN.UTF-8):  [通讯]功能强大的下载程序,支持断点续传
 Name:          wget
-Version:       1.13.4
-Release:       1
+Version:       1.16.3
+Release:       2
 License:       GPL v3+ with OpenSSL exception
 Group:         Networking/Utilities
 Source0:       http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz
-# Source0-md5: 7f518b3a71e9efd330e9a0c3714f8463
+# Source0-md5: d2e4455781a70140ae83b54ca594ce21
 Source1:       http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
 # Source1-md5: d8b2b56ec7461606c22edbafaf8a418f
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-wgetrc_path.patch
 Patch2:                %{name}-home_etc.patch
 Patch3:                %{name}-ssl-certs.patch
-Patch4:                %{name}-pl.po-update.patch
+Patch4:                user.xdg.origin.url.patch
 URL:           http://www.gnu.org/software/wget/
 BuildRequires: autoconf >= 2.61
 BuildRequires: automake >= 1:1.9
-BuildRequires: gettext-devel >= 0.17
+BuildRequires: gettext-tools >= 0.17
 %{?with_gnutls:BuildRequires:  gnutls-devel}
 BuildRequires: libidn-devel
+BuildRequires: libpsl-devel
+BuildRequires: libuuid-devel
 %{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7m}
+BuildRequires: pcre-devel
 BuildRequires: perl-devel
 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
+BuildRequires: python3-modules >= 1:3.0
+%endif
 Provides:      webclient
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -122,8 +133,16 @@ Proxy серверів, настроюваність.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+
 %{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
 
+# temp hack for 1.13.4
+test -e build-aux/bzr-version-gen || cat <<EOF > build-aux/bzr-version-gen
+#!/bin/sh
+echo -n %{version}
+EOF
+chmod +x build-aux/bzr-version-gen
+
 %build
 %{__gettextize}
 %{__aclocal} -I m4
@@ -138,6 +157,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.09917 seconds and 4 git commands to generate.