1 %define name curl-ssl 2 %define tarball curl 3 %define version 7.11.0 4 %define release 1 5 6 %define curlroot %{_builddir}/%{tarball}-%{version} 7 8 Summary: get a file from an FTP or HTTP server. 9 Name: %{name} 10 Version: %{version} 11 Release: %{release} 12 Copyright: MIT/X derivate 13 Vendor: Daniel Stenberg <Daniel.Stenberg (a] haxx.se> 14 Packager: Troy Engel <tengel (a] sonic.net> 15 Group: Utilities/Console 16 Source: %{tarball}-%{version}.tar.gz 17 URL: https://curl.haxx.se/ 18 Provides: curl 19 Obsoletes: curl 20 BuildRoot: %{_tmppath}/%{tarball}-%{version}-root 21 Requires: openssl >= 0.9.5 22 23 %description 24 curl is a client to get documents/files from servers, using any of the 25 supported protocols. The command is designed to work without user 26 interaction or any kind of interactivity. 27 28 curl offers a busload of useful tricks like proxy support, user 29 authentication, ftp upload, HTTP post, file transfer resume and more. 30 31 %package devel 32 Summary: The includes, libs, and man pages to develop with libcurl 33 Group: Development/Libraries 34 Requires: openssl-devel >= 0.9.5 35 Provides: curl-devel 36 37 %description devel 38 libcurl is the core engine of curl; this packages contains all the libs, 39 headers, and manual pages to develop applications using libcurl. 40 41 %prep 42 43 %setup -q -n %{tarball}-%{version} 44 45 %build 46 cd %{curlroot} && (if [ -f configure.in ]; then mv -f configure.in configure.in.rpm; fi) 47 %configure 48 cd %{curlroot} && (if [ -f configure.in.rpm ]; then mv -f configure.in.rpm configure.in; fi) 49 make 50 51 %install 52 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} 53 make DESTDIR=%{buildroot} install-strip 54 55 %clean 56 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} 57 [ "%{curlroot}" != "/" ] && rm -rf %{curlroot} 58 59 %post 60 /sbin/ldconfig 61 62 %postun 63 /sbin/ldconfig 64 65 %files 66 %defattr(-,root,root) 67 %attr(0755,root,root) %{_bindir}/curl 68 %attr(0644,root,root) %{_mandir}/man1/curl.1* 69 %attr(0644,root,root) %{_mandir}/man1/mk-ca-bundle.1 70 %{_libdir}/libcurl.so* 71 %{_datadir}/curl/curl-ca-bundle.crt 72 %doc CHANGES COPYING README testcurl.sh docs/BUGS docs/SSLCERTS 73 %doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/HISTORY docs/INSTALL 74 %doc docs/KNOWN_BUGS docs/MANUAL docs/RESOURCES docs/THANKS 75 %doc docs/TODO docs/VERSIONS docs/TheArtOfHttpScripting tests 76 77 %files devel 78 %defattr(-,root,root) 79 %attr(0755,root,root) %{_bindir}/curl-config 80 %attr(0644,root,root) %{_mandir}/man1/curl-config.1* 81 %attr(0644,root,root) %{_mandir}/man3/* 82 %attr(0644,root,root) %{_includedir}/curl/* 83 %{_libdir}/libcurl.a 84 %{_libdir}/libcurl.la 85 %doc docs/BINDINGS docs/INTERNALS docs/examples/* docs/libcurl-the-guide 86