Advertisement
Guest User

Curl 7.52.1

a guest
Jan 27th, 2017
869
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
  2. Name: curl
  3. Version: 7.52.1
  4. Release: 1
  5. License: MIT
  6. Group: Applications/Internet
  7. Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
  8. Source2: curlbuild.h
  9.  
  10. Provides: webclient
  11. URL: http://curl.haxx.se/
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
  13. BuildRequires: groff
  14. BuildRequires: krb5-devel
  15. BuildRequires: libidn-devel
  16. BuildRequires: libssh2-devel
  17. BuildRequires: nss-devel
  18. BuildRequires: openldap-devel
  19. BuildRequires: openssh-clients
  20. BuildRequires: openssh-server
  21. BuildRequires: pkgconfig
  22. BuildRequires: stunnel
  23. BuildRequires: zlib-devel
  24.  
  25. # perl modules used in the test suite
  26. BuildRequires: perl(Cwd)
  27. BuildRequires: perl(Digest::MD5)
  28. BuildRequires: perl(Exporter)
  29. BuildRequires: perl(File::Basename)
  30. BuildRequires: perl(File::Copy)
  31. BuildRequires: perl(File::Spec)
  32. BuildRequires: perl(IPC::Open2)
  33. BuildRequires: perl(MIME::Base64)
  34. BuildRequires: perl(strict)
  35. BuildRequires: perl(Time::Local)
  36. BuildRequires: perl(Time::HiRes)
  37. BuildRequires: perl(warnings)
  38. BuildRequires: perl(vars)
  39.  
  40. Requires: libcurl = %{version}-%{release}
  41.  
  42. # require at least the version of libssh2 that we were built against,
  43. # to ensure that we have the necessary symbols available (#525002, #642796)
  44. %global libssh2_version %(pkg-config --modversion libssh2 2>/dev/null || echo 0)
  45.  
  46. %description
  47. curl is a command line tool for transferring data with URL syntax, supporting
  48. FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP,
  49. SMTP, POP3 and RTSP.  curl supports SSL certificates, HTTP POST, HTTP PUT, FTP
  50. uploading, HTTP form based upload, proxies, cookies, user+password
  51. authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer
  52. resume, proxy tunneling and a busload of other useful tricks.
  53.  
  54. %package -n libcurl
  55. Summary: A library for getting files from web servers
  56. Group: Development/Libraries
  57. Requires: libssh2%{?_isa} >= %{libssh2_version}
  58.  
  59. %description -n libcurl
  60. libcurl is a free and easy-to-use client-side URL transfer library, supporting
  61. FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP,
  62. SMTP, POP3 and RTSP. libcurl supports SSL certificates, HTTP POST, HTTP PUT,
  63. FTP uploading, HTTP form based upload, proxies, cookies, user+password
  64. authentication (Basic, Digest, NTLM, Negotiate, Kerberos4), file transfer
  65. resume, http proxy tunneling and more.
  66.  
  67. %package -n libcurl-devel
  68. Summary: Files needed for building applications with libcurl
  69. Group: Development/Libraries
  70. Requires: libcurl = %{version}-%{release}
  71.  
  72. # From Fedora 14, %%{_datadir}/aclocal is included in the filesystem package
  73. %if 0%{?fedora} < 14
  74. Requires: %{_datadir}/aclocal
  75. %endif
  76.  
  77. # From Fedora 11, RHEL-6, pkgconfig dependency is auto-detected
  78. %if 0%{?fedora} < 11 && 0%{?rhel} < 6
  79. Requires: pkgconfig
  80. %endif
  81.  
  82. Provides: curl-devel = %{version}-%{release}
  83. Obsoletes: curl-devel < %{version}-%{release}
  84.  
  85. %description -n libcurl-devel
  86. The libcurl-devel package includes header files and libraries necessary for
  87. developing programs which use the libcurl library. It contains the API
  88. documentation of the library, too.
  89.  
  90. %prep
  91. %setup -q
  92.  
  93.  
  94. %build
  95. [ -x /usr/kerberos/bin/krb5-config ] && KRB5_PREFIX="=/usr/kerberos"
  96. %configure --disable-static \
  97.     --enable-hidden-symbols \
  98.     --enable-ipv6 \
  99.     --enable-ldaps \
  100.     --enable-manual \
  101.     --enable-threaded-resolver \
  102.     --with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \
  103.     --with-gssapi${KRB5_PREFIX} \
  104.     --with-libidn \
  105.     --with-libssh2 \
  106.     --with-ssl --with-nss --with-http2
  107. #    --enable-debug
  108. # use ^^^ to turn off optimizations, etc.
  109.  
  110. # Remove bogus rpath
  111. sed -i \
  112.     -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
  113.     -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  114.  
  115. make %{?_smp_mflags}
  116.  
  117. #%check
  118. #LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
  119. #export LD_LIBRARY_PATH
  120. #
  121. # uncomment to use the non-stripped library in tests
  122. # LD_PRELOAD=`find -name \*.so`
  123. # LD_PRELOAD=`readlink -f $LD_PRELOAD`
  124. #
  125. #cd tests
  126. #make %{?_smp_mflags}
  127.  
  128. # use different port range for 32bit and 64bit build, thus make it possible
  129. # to run both in parallel on the same machine
  130. #./runtests.pl -a -b%{?__isa_bits}90 -p -v
  131.  
  132. %install
  133. rm -rf $RPM_BUILD_ROOT
  134.  
  135. make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
  136.  
  137. rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
  138.  
  139. install -d $RPM_BUILD_ROOT%{_datadir}/aclocal
  140. install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT%{_datadir}/aclocal
  141.  
  142. # drop man page for a script we do not distribute
  143. rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mk-ca-bundle.1
  144.  
  145. # Make libcurl-devel multilib-ready (bug #488922)
  146. %if 0%{?__isa_bits} == 64
  147. %define _curlbuild_h curlbuild-64.h
  148. %else
  149. %define _curlbuild_h curlbuild-32.h
  150. %endif
  151. mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
  152.    $RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}
  153.  
  154. install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h
  155.  
  156. %clean
  157. rm -rf $RPM_BUILD_ROOT
  158.  
  159. %post -n libcurl -p /sbin/ldconfig
  160.  
  161. %postun -n libcurl -p /sbin/ldconfig
  162.  
  163. %files
  164. %defattr(-,root,root,-)
  165. %doc CHANGES README* COPYING
  166. %doc docs/BUGS docs/FAQ docs/FEATURES
  167. %doc docs/MANUAL docs/RESOURCES
  168. %doc docs/TheArtOfHttpScripting docs/TODO
  169. %{_bindir}/curl
  170. %{_mandir}/man1/curl.1*
  171.  
  172. %files -n libcurl
  173. %defattr(-,root,root,-)
  174. %{_libdir}/libcurl.so.*
  175.  
  176. %files -n libcurl-devel
  177. %defattr(-,root,root,-)
  178. %doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS.md
  179. %doc docs/CONTRIBUTE.md docs/libcurl/ABI
  180. %{_bindir}/curl-config*
  181. %{_includedir}/curl
  182. %{_libdir}/*.so
  183. %{_libdir}/pkgconfig/*.pc
  184. %{_mandir}/man1/curl-config.1*
  185. %{_mandir}/man3/*
  186. %{_datadir}/aclocal/libcurl.m4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement