1 |
Summary: A utility for retrieving files using the HTTP or FTP protocols |
2 |
Name: wget |
3 |
Version: 1.14 |
4 |
%define subrel 2 |
5 |
Release: %mkrel 2 |
6 |
Group: Networking/WWW |
7 |
License: GPLv3 |
8 |
URL: http://www.gnu.org/directory/GNU/wget.html |
9 |
Source0: http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz |
10 |
Source1: http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz.sig |
11 |
Patch2: %{name}-1.13.4-fix-fr-po.patch |
12 |
Patch3: %{name}-forceclobber.patch |
13 |
Patch4: %{name}-logtostdout.patch |
14 |
# patches 5 and 6 needs patch 3 to be applied before |
15 |
# The following patch is needed for authenticated sites where login can have '@': |
16 |
Patch5: %{name}-urlpassword.patch |
17 |
Patch7: %{name}-1.13.4-etc.patch |
18 |
Patch9: wget-1.15-CVE-2014-4877.patch |
19 |
Patch10: wget-1.15-ftp-listing.patch |
20 |
Provides: webclient webfetch |
21 |
BuildRequires: gettext |
22 |
BuildRequires: openssl-devel |
23 |
BuildRequires: gnutls-devel |
24 |
BuildRequires: texinfo |
25 |
BuildRequires: idn-devel |
26 |
Requires(pre): info-install |
27 |
Requires(post): info-install |
28 |
|
29 |
%description |
30 |
GNU Wget is a file retrieval utility which can use either the HTTP or FTP |
31 |
protocols. Wget features include the ability to work in the background |
32 |
while you're logged out, recursive retrieval of directories, file name |
33 |
wildcard matching, remote file timestamp storage and comparison, use of |
34 |
Rest with FTP servers and Range with HTTP servers to retrieve files over |
35 |
slow or unstable connections, support for Proxy servers, and |
36 |
configurability. |
37 |
|
38 |
%prep |
39 |
%setup -q |
40 |
%patch2 -p0 |
41 |
%patch3 -p0 |
42 |
%patch4 -p0 |
43 |
%patch5 -p0 |
44 |
%patch7 -p0 |
45 |
%patch9 -p1 |
46 |
%patch10 -p1 |
47 |
|
48 |
%build |
49 |
%configure2_5x \ |
50 |
--enable-ipv6 \ |
51 |
--disable-rpath \ |
52 |
--with-ssl=openssl |
53 |
|
54 |
%make |
55 |
|
56 |
# all tests must pass (but where are they?) |
57 |
%check |
58 |
%__make check |
59 |
|
60 |
%install |
61 |
%makeinstall_std |
62 |
|
63 |
%__install -m755 util/rmold.pl %{buildroot}/%{_bindir}/rmold |
64 |
|
65 |
%find_lang %{name} |
66 |
|
67 |
%post |
68 |
%_install_info %{name}.info |
69 |
|
70 |
%preun |
71 |
%_remove_install_info %{name}.info |
72 |
|
73 |
%files -f %{name}.lang |
74 |
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/wgetrc |
75 |
%doc AUTHORS ChangeLog MAILING-LIST NEWS README |
76 |
%{_bindir}/* |
77 |
%{_infodir}/* |
78 |
%{_mandir}/man1/wget.1* |