File wget.spec of Package wget

Summary: A utility for retrieving files using the HTTP or FTP protocols
Name: wget
Version: 1.25.0.6
Release: 30%{?dist}
License: GPLv3+ and GFDL
Group: Applications/Internet
Url: http://www.gnu.org/software/wget/
Source: ftp://ftp.gnu.org/gnu/wget/wget-1.25.0.tar.gz
Provides: webclient
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch1: wget-doc-remove-usr-local-in-sample.wgetrc
Patch2: wget-doc-remove-usr-local-in-wget.texi
Patch3: wget-passive_ftp-default
Patch4: wget-maybe-prepend-scheme-only-in-verbose-mode
Provides: webclient
Provides: bundled(gnulib)
BuildRequires: make
BuildRequires: perl-devel
BuildRequires: perl(English)
BuildRequires: perl-libwww-perl
BuildRequires: python34
BuildRequires: gnutls-devel
BuildRequires: pkgconfig
BuildRequires: texinfo
BuildRequires: gettext
BuildRequires: autoconf
BuildRequires: libidn2-devel
BuildRequires: libuuid-devel
#BuildRequires: perl-podlators
#BuildRequires: libpsl-devel
BuildRequires: gpgme-devel
BuildRequires: gcc
BuildRequires: zlib-devel
BuildRequires: libmetalink-devel
BuildRequires: git-core
BuildRequires: openssl-devel


%description
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 are 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 P%patch -P  -p1roxy servers, and configurability.
 

%prep
%setup -n wget-1.25.0
%patch -P 1 -p1
%patch -P 2 -p1
%patch -P 3 -p1
%patch -P 4 -p1

%build
%configure \
    --with-ssl=openssl \
    --enable-year2038 \
    --disable-ipv6
#    --enable-largefile \
#    --enable-opie \
#    --enable-digest \
#    --disable-year2038
#    --enable-ntlm \
#    --enable-nls \
#    --enable-ipv6 \
#    --disable-rpath
#%if %{defined rhel}
#    --without-metalink \
#%else
#    --with-metalink \
#%endif
#    --with-libpsl \
#    --enable-ntlm \


make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT CFLAGS="$RPM_OPT_FLAGS"
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir

%find_lang %{name}
%find_lang %{name}-gnulib

%post
/sbin/install-info %{_infodir}/wget.info.gz %{_infodir}/dir || :

%preun
if [ "$1" = 0 ]; then
    /sbin/install-info --delete %{_infodir}/wget.info.gz %{_infodir}/dir || :
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang -f %{name}-gnulib.lang
%doc AUTHORS MAILING-LIST NEWS README COPYING doc/sample.wgetrc
%config(noreplace) %{_sysconfdir}/wgetrc
%{_mandir}/man1/wget.*
%{_bindir}/wget
%{_infodir}/*




%changelog
openSUSE Build Service is sponsored by