File wget.spec of Package wget

#
# spec file for package wget (Version 1.11.4)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           wget
BuildRequires:  libpng-devel openssl-devel
Url:            http://www.gnu.org/software/wget/
License:        GPL v3 or later
Group:          Productivity/Networking/Web/Utilities
AutoReqProv:    on
Version:        1.11.4
Release:        1.<RELEASE28>
Summary:        A Tool for Mirroring FTP and HTTP Servers
Source:         %name-%version.tar.bz2
Patch1:         wgetrc.patch
Patch2:         wget-nullcerts.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
PreReq:         %install_info_prereq

%description
Wget enables you to retrieve WWW documents or FTP files from a server.
This can be done in script files or via the command line.



Authors:
--------
    Hrvoje Niksic <hniksic@srce.hr>

%prep
%setup -q
%patch1
%patch2

%build
./autogen.sh
%configure
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT;

%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README MAILING-LIST 
%doc doc/sample.wgetrc util/rmold.pl
%{_mandir}/*/wget*
%{_infodir}/wget*
%config(noreplace) %{_sysconfdir}/wgetrc
%{_bindir}/*

%changelog
openSUSE Build Service is sponsored by