]> git.pld-linux.org Git - packages/wget.git/blob - wget.spec
- more %%{__make} macros.
[packages/wget.git] / wget.spec
1 Summary:        A utility for retrieving files using the HTTP or FTP protocols
2 Summary(fr):    Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
3 Summary(pl):    Wsadowy klient HTTP/FTP 
4 Name:           wget
5 Version:        1.5.3
6 Release:        11
7 License:        GPL
8 Group:          Networking/Utilities
9 Group(pl):      Sieciowe/Narzêdzia
10 Source0:        ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
11 Source1:        http://cade.8m.com/away/%{name}-new-percentage-3.0.tar.gz
12 Patch0:         wget-man.patch
13 Patch1:         wget-pl.po.patch
14 Patch2:         wget-info.patch
15 Patch3:         wget-1.5.3-ipv6.patch
16 Patch4:         wget-DESTDIR.patch
17 Patch5:         wget-symlink.patch
18 URL:            http://sunsite.auc.dk/ftp/pub/infosystems/wget/
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define _sysconfdir     /etc
22
23 %description
24 GNU Wget is a file retrieval utility which can use either the HTTP or FTP
25 protocols. Wget features include the ability to work in the background
26 while you're logged out, recursive retrieval of directories, file name
27 wildcard matching, remote file timestamp storage and comparison, use of
28 Rest with FTP servers and Range with HTTP servers to retrieve files over
29 slow or unstable connections, support for Proxy servers, and
30 configurability.
31
32 %description -l fr
33 GNU Wget est un utilitaire pour récupérer des fichiers qui peut utiliser
34 indifféremment les protocoles HTTP ou FTP. Parmi les caractéristiques de
35 Wget, citons la capacité à récupérer des fichiers en arrière-plan alors que
36 vous n'êtes pas connecté, la récupération récursive de répertoires, la
37 capacité de récupérer des fichiers en appliquant un filtre sur le nom ou
38 sur la date, la gestion de Rest avec les serveurs FTP et de Range avec les
39 serveurs HTTP pour récupérer des fichiers avec une connexion lente ou
40 instable, le support des serveurs Proxy... Wget est particulièrement
41 configurable.
42
43 %description -l pl
44 Wget jest klientem FTP/HTTP przeznaczonym do ¶ci±gania zasobów wsadowo.
45 Umo¿liwia ¶ci±ganie zasobów z podkatalogami, a tak¿e ma opcje umo¿liwiaj±ce
46 wykonanie lokalnej kopii zasobów (mirror). W razie niemo¿no¶ci dostania siê
47 do zasobów lub gdy po³±czenie z serwerem FTP/HTTP zostanie zerwane, mo¿e
48 automatycznie ponawiaæ próby kopiowania. Jest tak¿e dobrze przystosowany do
49 tego, ¿eby uruchamiaæ go jako zadanie z cron'a.
50
51 %prep
52 %setup -q
53 %patch0 -p1
54 %patch1 -p1
55 %patch2 -p1
56 %patch3 -p1
57 %patch4 -p1
58 %patch5 -p1
59 tar xzf %{SOURCE1}
60 cd src
61 mv ../wget-new-percentage/wget-new-percentage.c .
62 patch retr.c < ../wget-new-percentage/wget-new-percentage.diff
63
64 %build
65 autoconf
66 LDFLAGS="-s"; export LDFLAGS
67 %configure 
68 %{__make}
69 tail -6 util/README >rmold.README
70
71 (cd doc; makeinfo --force %{name}.texi; touch *)
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75
76 %{__make} install DESTDIR=$RPM_BUILD_ROOT
77
78 install util/rmold.pl $RPM_BUILD_ROOT%{_bindir}/rmold
79
80 mv      wget-new-percentage/README README-new_percent
81 gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/%{name}.info*,%{_mandir}/man1/*} \
82         AUTHORS ChangeLog NEWS TODO README MAILING-LIST rmold.README \
83         README-new_percent
84
85 %find_lang %{name}
86  
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %post
91 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
92
93 %postun
94 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
95
96 %files -f %{name}.lang
97 %defattr(644,root,root,755)
98 %doc {AUTHORS,ChangeLog,MAILING-LIST,NEWS,TODO,README,rmold.README,README-new_percent}.gz
99 %verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/%{name}rc
100 %attr(755,root,root) %{_bindir}/*
101
102 %{_mandir}/man1/*
103 %{_infodir}/%{name}.info*
This page took 0.037546 seconds and 4 git commands to generate.