+#
+# Conditional build:
+%bcond_without ssl # without SSL support
+#
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Summary(es): Busca URL (soporta FTP, TELNET, LDAP, GOPHER, DICT, HTTP y HTTPS)
Summary(pl): Narzêdzie do ¶ci±gania plików z serwerów (FTP, HTTP i innych)
Summary(ru): õÔÉÌÉÔÁ ÄÌÑ ÐÏÌÕÞÅÎÉÑ ÆÁÊÌÏ× Ó ÓÅÒ×ÅÒÏ× FTP, HTTP É ÄÒÕÇÉÈ
Summary(uk): õÔÉ̦ÔÁ ÄÌÑ ÏÔÒÉÍÁÎÎÑ ÆÁÊÌ¦× Ú ÓÅÒ×ÅÒ¦× FTP, HTTP ÔÁ ¦ÎÛÉÈ
Name: curl
-Version: 7.10.1
+Version: 7.12.2
Release: 1
License: MPL
Vendor: Daniel Stenberg <Daniel.Stenberg@sth.frontec.se>
Group: Applications/Networking
-Source0: http://curl.haxx.se/download/%{name}-%{version}.tar.gz
+Source0: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2
+# Source0-md5: e468222fc7240dc701ea3fc8ffd641dc
Patch0: %{name}-no_strip.patch
+Patch1: %{name}-ac.patch
URL: http://curl.haxx.se/
-%{!?_without_ssl:BuildRequires: openssl-devel >= 0.9.6a}
-Requires: openssl-tools
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libidn-devel >= 0.4.1
+BuildRequires: heimdal-devel
+%{?with_ssl:BuildRequires: openssl-devel >= 0.9.7d}
+Requires: openssl-tools >= 0.9.7d
+Requires: libidn >= 0.4.1
Obsoletes: libcurl2
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
cURL is a tool for getting files with URL syntax, supporting FTP,
u¿ytkownik/has³o oraz wiele innych u¿ytecznych sztuczek. Curla u¿ywa
siê g³ównie wtedy, kiedy chce siê automatycznie ¶ci±gn±æ lub wys³aæ
pliki z/na serwer u¿ywaj±c jednego z dostêpnych protoko³ów.
-
-Uwaga: ten pakiet wspiera takze SSL.
+%{?with_ssl:Ten pakiet obs³uguje tak¿e SSL.}
%description -l pt_BR
Curl é um cliente para baixar/enviar arquivos de/para servidores
Summary(ru): æÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÂÉÂÌÉÏÔÅËÉ curl
Summary(uk): æÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ Â¦Â̦ÏÔÅËÉ curl
Group: Development/Libraries
-Requires: %{name} = %{version}
+Requires: %{name} = %{version}-%{release}
+Requires: libidn-devel >= 0.4.1
+%{?with_ssl:Requires: openssl-devel >= 0.9.7c}
Obsoletes: libcurl2-devel
%description devel
Summary(ru): óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ ÂÉÂÌÉÏÔÅËÉ curl
Summary(uk): óÔÁÔÉÞΦ ¦Â̦ÏÔÅËÉ ÄÌÑ ÒÏÚÒÏÂËÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ Â¦Â̦ÏÔÅËÉ curl
Group: Development/Libraries
-Requires: %{name}-devel = %{version}
+Requires: %{name}-devel = %{version}-%{release}
%description static
Static version of curl library.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
+cp -f /usr/share/automake/config.* .
+%{__autoconf}
+%{__autoheader}
%configure \
- %{!?_without_ssl:--with-ssl=%{_prefix}} \
+ %{?with_ssl:--with-ssl=%{_prefix}} \
+ %{?with_ssl:--with-ca-bundle=/usr/share/ssl/ca-bundle.crt} \
+ --with-gssapi-includes=%{_includedir} \
--with-ipv6
%{__make}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_datadir}/curl/curl-ca-bundle.crt
-ln -s %{_datadir}/ssl/ca-bundle.crt $RPM_BUILD_ROOT%{_datadir}/curl/curl-ca-bundle.crt
-
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_libdir}/lib*.so.*.*
-%{_datadir}/curl
%{_mandir}/man1/*
%files devel
%doc docs/{BUGS,CONTRIBUTE,FAQ,FEATURES,INTERNALS,MANUAL,README*,RESOURCES,THANKS,TODO}
%attr(755,root,root) %{_bindir}/%{name}-config
%attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
+%{_libdir}/lib*.la
%{_includedir}/*
%{_mandir}/man3/*