]> git.pld-linux.org Git - packages/wget.git/blobdiff - wget.spec
- release 2 (by relup.sh)
[packages/wget.git] / wget.spec
index 73a09dbb08d94dd74912dfa82c4e6eaa8fd6c864..90f2de3426e585a804c28e1b47fdafbd39f7d32e 100644 (file)
--- a/wget.spec
+++ b/wget.spec
-Summary:       Command-line HTTP and FTP client
-Summary(pl):   Wsadowy klient HTTP/FTP 
+# TODO
+# - add --delete-remote patches:
+#  - http://wget-bugs.ferrara.linux.it/issue9
+#  - or http://osdir.com/ml/web.wget.patches/2005-09/msg00006.html
+# - add http://article.gmane.org/gmane.comp.web.wget.patches/2333
+#
+# Conditional build:
+%bcond_with    gnutls  # use GnuTLS (wget default) instead of OpenSSL
+#
+Summary:       A utility for retrieving files using the HTTP or FTP protocols
+Summary(es.UTF-8):     Cliente en línea de comando para bajar archivos WWW/FTP con recursión opcional
+Summary(fr.UTF-8):     Un utilitaire pour recuperer des fichiers en utilisant les protocoles HTTP ou FTP
+Summary(pl.UTF-8):     Wsadowy klient HTTP/FTP
+Summary(pt_BR.UTF-8):  Cliente na linha de comando para baixar arquivos WWW/FTP com recursão opcional
+Summary(ru.UTF-8):     Утилита для получения файлов по протоколам HTTP и FTP
+Summary(uk.UTF-8):     Утиліта для отримання файлів по протоколам HTTP та FTP
+Summary(zh_CN.UTF-8):  [通讯]功能强大的下载程序,支持断点续传
 Name:          wget
-Version:       1.5.3
-Release:       7
-Copyright:     GPL
+Version:       1.15
+Release:       2
+License:       GPL v3+ with OpenSSL exception
 Group:         Networking/Utilities
-Group(pl):     Sieciowe/Narzêdzia
-Source:                ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Patch0:                wget-man.patch
-Patch1:                wget-pl.po.patch
-Patch2:                wget-info.patch
-BuildPrereq:   autoconf >= 2.13-8
-Prereq:                /sbin/install-info
-URL:           http://sunsite.auc.dk/ftp/pub/infosystems/wget/
-BuildRoot:     /tmp/%{name}-%{version}-root
+Source0:       http://ftp.gnu.org/gnu/wget/%{name}-%{version}.tar.xz
+# Source0-md5: 7a279d5ac5594919124d5526e7143e28
+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
+URL:           http://www.gnu.org/software/wget/
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.9
+BuildRequires: gettext-devel >= 0.17
+%{?with_gnutls:BuildRequires:  gnutls-devel}
+BuildRequires: libidn-devel
+%{!?with_gnutls:BuildRequires: openssl-devel >= 0.9.7m}
+BuildRequires: perl-devel
+BuildRequires: tar >= 1:1.22
+BuildRequires: texinfo
+BuildRequires: xz
+Provides:      webclient
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _noautoreqfiles         %{_bindir}/rmold
 
 %description
-wget is a command-line program to fetch files via HTTP or FTP.  It
-supports recursive retrieval and mirroring options, and it automatically
-retries several times before giving up, so it is well-suited to running
-from cron jobs.
-
-%description -l pl
-Wget jest klientem FTP/HTTP przeznaczonym do ¶ci±gania zasobów wsadowo. 
-Umo¿liwia ¶ci±ganie zasobów z podkatalogami, a tak¿e ma opcje umo¿liwiaj±ce 
-wykonanie lokalnej kopii zasobów (mirror). W razie niemo¿no¶ci dostania siê 
-do zasobów lub gdy po³±czenie z serwerem FTP/HTTP zostanie zerwane, mo¿e 
-automatycznie ponawiaæ próby kopiowania. Jest tak¿e dobrze przystosowany do 
-tego, ¿eby uruchamiaæ go jako zadanie z cron'a.
+GNU Wget is a file retrieval utility which can use either the HTTP or
+FTP protocols. Wget features include the ability to work in the
+background while you're logged out, recursive retrieval of
+directories, file name wildcard matching, remote file timestamp
+storage and comparison, use of Rest with FTP servers and Range with
+HTTP servers to retrieve files over slow or unstable connections,
+support for Proxy servers, and configurability.
+
+%description -l es.UTF-8
+GNU wget es una herramienta de red para bajar archivos usando HTTP y
+FTP. Funciona en modo no interactivo, pudiendo trabajar en background.
+Funciona muy bien, incluso en conexiones lentas o inestables, bajando
+el archivo hasta que sea completamente recibido.
+
+%description -l fr.UTF-8
+GNU Wget est un utilitaire pour récupérer des fichiers qui peut
+utiliser indifféremment les protocoles HTTP ou FTP. Parmi les
+caractéristiques de Wget, citons la capacité à récupérer des fichiers
+en arrière-plan alors que vous n'êtes pas connecté, la récupération
+récursive de répertoires, la capacité de récupérer des fichiers en
+appliquant un filtre sur le nom ou sur la date, la gestion de Rest
+avec les serveurs FTP et de Range avec les serveurs HTTP pour
+récupérer des fichiers avec une connexion lente ou instable, le
+support des serveurs Proxy... Wget est particulièrement configurable.
+
+%description -l ja.UTF-8
+GNU wget は HTTP か FTP プロトコルのどちらかを使用することができる
+ファイルを取得するユーティリティです。wget はログアウトしている
+間にバックグラウンドで働く特徴をもっていること、ディレクトリの再帰的
+取得、ファイルネームのワイルドカードマッチング、ファイルのタイムスタンプの
+保存と比較、遅く不安定な接続で FTP サーバの Rest と HTTP サーバの
+Range の使用、プロキシーサーバのサポートと設定の容易さを含んだ特徴を
+もっています。
+
+%description -l pl.UTF-8
+Wget jest klientem FTP/HTTP przeznaczonym do ściągania zasobów
+wsadowo. Umożliwia ściąganie zasobów z podkatalogami, a także ma opcje
+umożliwiające wykonanie lokalnej kopii zasobów (mirror). W razie
+niemożności dostania się do zasobów lub gdy połączenie z serwerem
+FTP/HTTP zostanie zerwane, może automatycznie ponawiać próby
+kopiowania. Jest także dobrze przystosowany do tego, żeby uruchamiać
+go jako zadanie z crona.
+
+%description -l pt_BR.UTF-8
+O GNU wget é uma ferramenta de rede para baixar arquivos usando HTTP e
+FTP. Ele funciona em modo não interativo, podendo trabalhar em
+background. Funciona muito bem, mesmo em conexões lentas ou instáveis,
+baixando o arquivo até que ele seja completamente recebido.
+
+%description -l ru.UTF-8
+GNU Wget - это утилита командной строки для получения файлов по
+протоколам FTP и HTTP. Среди возможностей Wget - работа в фоновом
+режиме когда вы выходите из системы, рекурсивное извлечение каталогов,
+выбор файлов по шаблону, сравнение времени удаленных и локальных
+файлов, сохранение времени удаленных файлов при загрузке,
+использование REST с FTP серверами и Range с HTTP серверами для
+загрузки файлов по медленным или нестабильным каналам, поддержка Proxy
+серверов, конфигурируемость.
+
+%description -l uk.UTF-8
+GNU Wget - це утиліта командного рядка для отримання файлів по
+протоколам FTP та HTTP. Серед можливостей Wget - робота в фоновому
+режимі коли ви виходите із системи, рекурсивне отримання каталогів,
+вибір файлів по шаблону, порівняння часу віддалених та локальних
+файлів, збереження часу віддалених файлів при завантаженні,
+використання REST з FTP серверами та Range з HTTP серверами для
+завантаження файлів по повільним чи нестабільним каналам, підтримка
+Proxy серверів, настроюваність.
 
 %prep
 %setup -q
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
+%{__rm} doc/wget.info doc/sample.wgetrc.munged_for_texi_inclusion po/stamp-po
 
-%build
-autoconf
-CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s" \
-./configure %{_target} \
-       --prefix=/usr \
-       --sysconfdir=/etc
-make
-tail -6 util/README >rmold.README
+# 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
 
-(cd doc; makeinfo --force wget.texi; touch *)
+%build
+%{__gettextize}
+%{__aclocal} -I m4
+%{__autoheader}
+%{__autoconf}
+%{__automake}
+%configure \
+       --with-ssl%{!?with_gnutls:=openssl}
+%{__make}
+tail -n 6 util/README >rmold.README
+
+# 1.13.4 tarball was buggy and produced empty version.
+grep %{version} src/version.c
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       GETTEXT_PACKAGE=wget
+
+install -p util/rmold.pl $RPM_BUILD_ROOT%{_bindir}/rmold
+cp -a doc/sample.wgetrc        $RPM_BUILD_ROOT%{_sysconfdir}/wgetrc
 
-make prefix=$RPM_BUILD_ROOT/usr sysconfdir=$RPM_BUILD_ROOT/etc install
-install -c util/rmold.pl $RPM_BUILD_ROOT/usr/bin/rmold
+bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/README*
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
 
-gzip -9nf $RPM_BUILD_ROOT/usr/share/{info/wget.info*,man/man1/*} \
-    AUTHORS ChangeLog NEWS TODO README MAILING-LIST rmold.README
+%find_lang %{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/install-info /usr/share/info/wget.info.gz /etc/info-dir
+%post  -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%postun
-if [ "$1" = "0" ]; then
-       /sbin/install-info --delete /usr/share/info/wget.info.gz /etc/info-dir
-fi
+%postun        -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
-%doc {AUTHORS,ChangeLog,MAILING-LIST,NEWS,TODO,README,rmold.README}.gz
-
-%attr(755,root,root) /usr/bin/*
-
-%lang(cs) /usr/share/locale/cs/LC_MESSAGES/wget.mo
-%lang(de) /usr/share/locale/de/LC_MESSAGES/wget.mo
-%lang(hr) /usr/share/locale/hr/LC_MESSAGES/wget.mo
-%lang(it) /usr/share/locale/it/LC_MESSAGES/wget.mo
-%lang(no) /usr/share/locale/no/LC_MESSAGES/wget.mo
-%lang(pl) /usr/share/locale/pl/LC_MESSAGES/wget.mo
-%lang(pt) /usr/share/locale/pt*/LC_MESSAGES/wget.mo
-
-/usr/share/man/man1/*
-/usr/share/info/wget.info*
-
-%verify(not md5 size mtime) %config(noreplace) /etc/wgetrc
-
-%changelog
-* Thu May 13 1999 Piotr Czerwiñski <pius@pld.org.pl>
-  [1.5.3-7]
-- package is now FHS 2.0 compliant.
-
-* Wed Apr 21 1999 Piotr Czerwiñski <pius@pld.org.pl>
-  [1.5.3-6]
-- replacements in %files,
-- recompiled on rpm 3,
-- force making info pages (new makeinfo don't accept @xfer{} without "." or
-  "," after this markup) by Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>.
-
-* Fri Apr  2 1999 Piotr Czerwiñski <pius@pld.org.pl>
-  [1.5.2-5]
-- removed man group from man pages,
-- few typos corrected,
-- cosmetic changes for common l&f.
-
-* Thu Feb 10 1999 Micha³ Kuratczyk <kurkens@polbox.com>
-  [1.5.2-4]
-- added Group(pl)
-- added gzipping documentation
-
-* Mon Dec 27 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.5.2-3]
-- standarized {un}registering info pages (added wget-info.patch),
-- added URL,
-- added gzipping man pages.
-
-* Tue Sep 12 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [1.5.2-2]
-- fixed pl translation.
-
-* Mon Sep  7 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.5.2-2]
-- added wget-pl.po.patch patch with polish translation 
-  (Adam Kozubowicz <tapir@interdata.com.pl>,
-- added wget-man.patch patch with wget man page.
-
-* Sat Aug  8 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.5.2-1]
-- added pl translation.
-
-* Sun May 17 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
-  [1.5.1-2]
-- %%{version} macro instead %%{PACKAGE_VERSION},
-- added -q %setup parameter,
-- added using %%{name} macro in Buildroot and Source,
-- added %verify(not md5 size mtime) and noreplace parameter for %config,
-- removed COPYING from %doc (copyright statment is in Copyright
-  field),
-- added %postun, %post sections with {de}instaling wget info pages,
-- spec file rewrited for using Buildroot,
-- added %clean section,
-- added URL,
-- removed Packager field from spec (if you want recompile package and
-  redistribute this package later put this in your private .rpmrc). 
-- Buildroot changed to /tmp/wget-%%{PACKAGE_VERSION}-root,
-- added %%{PACKAGE_VERSION} to Source url,
-- replaced "mkdir -p" with "install -d" in %install,
-- base datadir changed to /usr/share,
-- added %lang macros for /usr/share/locale/*/LC_MESSAGES/wget.mo files,
-- added %defattr and %attr macros in %files (allows building package from
-  non-root account).
-
-* Thu May  7 1998 ??? <root@ricketts.stannes.ox.ac.uk>
-  [1.5.1-1]
-- previous release in rpm package.
+%doc AUTHORS ChangeLog NEWS README MAILING-LIST rmold.README
+%verify(not md5 mtime size) %config(noreplace) %{_sysconfdir}/%{name}rc
+%attr(755,root,root) %{_bindir}/rmold
+%attr(755,root,root) %{_bindir}/wget
+%{_mandir}/man1/wget.1*
+%{_mandir}/hu/man1/wget.1*
+%{_mandir}/pl/man1/wget.1*
+%{_infodir}/wget.info*
This page took 0.056939 seconds and 4 git commands to generate.