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