curl-ssl.spec.in 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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: http://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. %{_libdir}/libcurl.so*
  56. %{_datadir}/curl/curl-ca-bundle.crt
  57. %doc CHANGES COPYING README testcurl.sh docs/BUGS docs/SSLCERTS
  58. %doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/HISTORY docs/INSTALL
  59. %doc docs/KNOWN_BUGS docs/MANUAL docs/RESOURCES docs/THANKS
  60. %doc docs/TODO docs/VERSIONS docs/TheArtOfHttpScripting tests
  61. %files devel
  62. %defattr(-,root,root)
  63. %attr(0755,root,root) %{_bindir}/curl-config
  64. %attr(0644,root,root) %{_mandir}/man1/curl-config.1*
  65. %attr(0644,root,root) %{_mandir}/man3/*
  66. %attr(0644,root,root) %{_includedir}/curl/*
  67. %{_libdir}/libcurl.a
  68. %{_libdir}/libcurl.la
  69. %doc docs/BINDINGS docs/INTERNALS docs/examples/* docs/libcurl-the-guide