-Patch1: %{name}-ac.patch
-Patch2: %{name}-pl.patch
-Patch3: %{name}-wgetrc_path.patch
-Patch4: %{name}-home_etc.patch
-Patch5: %{name}-noabort.patch
-URL: http://wget.sunsite.dk/
-BuildRequires: autoconf >= 2.59
-BuildRequires: automake
-BuildRequires: gettext-devel
-BuildRequires: libtool
-BuildRequires: openssl-devel >= 0.9.8b
-BuildRequires: texinfo
+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}