2001-01-08 08:42:18 -05:00
|
|
|
%define name curl-ssl
|
|
|
|
%define tarball curl
|
2004-02-09 05:24:55 -05:00
|
|
|
%define version 7.11.0
|
2001-01-08 08:42:18 -05:00
|
|
|
%define release 1
|
|
|
|
|
2004-02-09 05:24:55 -05:00
|
|
|
%define curlroot %{_builddir}/%{tarball}-%{version}
|
2001-01-08 08:42:18 -05:00
|
|
|
|
2006-01-16 17:14:37 -05:00
|
|
|
Summary: get a file from an FTP or HTTP server.
|
2001-01-08 08:42:18 -05:00
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
2004-02-09 05:24:55 -05:00
|
|
|
Copyright: MIT/X derivate
|
2001-01-08 08:42:18 -05:00
|
|
|
Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se>
|
2004-02-09 05:24:55 -05:00
|
|
|
Packager: Troy Engel <tengel@sonic.net>
|
2001-01-08 08:42:18 -05:00
|
|
|
Group: Utilities/Console
|
|
|
|
Source: %{tarball}-%{version}.tar.gz
|
2016-02-02 18:19:02 -05:00
|
|
|
URL: https://curl.haxx.se/
|
2004-02-09 05:24:55 -05:00
|
|
|
Provides: curl
|
|
|
|
Obsoletes: curl
|
|
|
|
BuildRoot: %{_tmppath}/%{tarball}-%{version}-root
|
2001-01-08 08:42:18 -05:00
|
|
|
Requires: openssl >= 0.9.5
|
|
|
|
|
|
|
|
%description
|
|
|
|
curl is a client to get documents/files from servers, using any of the
|
|
|
|
supported protocols. The command is designed to work without user
|
|
|
|
interaction or any kind of interactivity.
|
|
|
|
|
|
|
|
curl offers a busload of useful tricks like proxy support, user
|
|
|
|
authentication, ftp upload, HTTP post, file transfer resume and more.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: The includes, libs, and man pages to develop with libcurl
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: openssl-devel >= 0.9.5
|
2004-02-09 05:24:55 -05:00
|
|
|
Provides: curl-devel
|
2001-01-08 08:42:18 -05:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libcurl is the core engine of curl; this packages contains all the libs,
|
|
|
|
headers, and manual pages to develop applications using libcurl.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2010-02-14 14:40:18 -05:00
|
|
|
%setup -q -n %{tarball}-%{version}
|
2001-01-08 08:42:18 -05:00
|
|
|
|
|
|
|
%build
|
2004-02-09 05:24:55 -05:00
|
|
|
cd %{curlroot} && (if [ -f configure.in ]; then mv -f configure.in configure.in.rpm; fi)
|
|
|
|
%configure
|
|
|
|
cd %{curlroot} && (if [ -f configure.in.rpm ]; then mv -f configure.in.rpm configure.in; fi)
|
2010-02-14 14:40:18 -05:00
|
|
|
make
|
2001-01-08 08:42:18 -05:00
|
|
|
|
|
|
|
%install
|
2004-02-09 05:24:55 -05:00
|
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
|
|
|
make DESTDIR=%{buildroot} install-strip
|
2001-01-08 08:42:18 -05:00
|
|
|
|
|
|
|
%clean
|
2004-02-09 05:24:55 -05:00
|
|
|
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
|
|
|
|
[ "%{curlroot}" != "/" ] && rm -rf %{curlroot}
|
2001-01-08 08:42:18 -05:00
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%attr(0755,root,root) %{_bindir}/curl
|
2004-02-09 05:24:55 -05:00
|
|
|
%attr(0644,root,root) %{_mandir}/man1/curl.1*
|
2012-04-27 13:53:19 -04:00
|
|
|
%attr(0644,root,root) %{_mandir}/man1/mk-ca-bundle.1
|
2001-01-08 08:42:18 -05:00
|
|
|
%{_libdir}/libcurl.so*
|
2004-02-09 05:24:55 -05:00
|
|
|
%{_datadir}/curl/curl-ca-bundle.crt
|
|
|
|
%doc CHANGES COPYING README testcurl.sh docs/BUGS docs/SSLCERTS
|
|
|
|
%doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/HISTORY docs/INSTALL
|
|
|
|
%doc docs/KNOWN_BUGS docs/MANUAL docs/RESOURCES docs/THANKS
|
|
|
|
%doc docs/TODO docs/VERSIONS docs/TheArtOfHttpScripting tests
|
2001-01-08 08:42:18 -05:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2004-02-09 05:24:55 -05:00
|
|
|
%attr(0755,root,root) %{_bindir}/curl-config
|
|
|
|
%attr(0644,root,root) %{_mandir}/man1/curl-config.1*
|
2001-01-08 08:42:18 -05:00
|
|
|
%attr(0644,root,root) %{_mandir}/man3/*
|
|
|
|
%attr(0644,root,root) %{_includedir}/curl/*
|
|
|
|
%{_libdir}/libcurl.a
|
|
|
|
%{_libdir}/libcurl.la
|
2004-02-09 05:24:55 -05:00
|
|
|
%doc docs/BINDINGS docs/INTERNALS docs/examples/* docs/libcurl-the-guide
|