curl-ssl.spec.in 2.5 KB

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