curl.spec.in 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. %define name curl
  2. %define version @VERSION@
  3. %define release 1
  4. %define prefix /usr
  5. %define builddir $RPM_BUILD_DIR/%{name}-%{version}
  6. Summary: get a file from an FTP or HTTP server.
  7. Name: %{name}
  8. Version: %{version}
  9. Release: %{release}
  10. Copyright: MPL
  11. Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se>
  12. Packager: Loic Dachary <loic@senga.org>
  13. Group: Utilities/Console
  14. Source: %{name}-%{version}.tar.gz
  15. URL: https://curl.haxx.se/
  16. BuildRoot: /tmp/%{name}-%{version}-root
  17. %description
  18. curl is a client to get documents/files from servers, using any of the
  19. supported protocols. The command is designed to work without user
  20. interaction or any kind of interactivity.
  21. curl offers a busload of useful tricks like proxy support, user
  22. authentication, ftp upload, HTTP post, file transfer resume and more.
  23. Note: this version is compiled without SSL (https:) support.
  24. %package devel
  25. Summary: The includes, libs, and man pages to develop with libcurl
  26. Group: Development/Libraries
  27. %description devel
  28. libcurl is the core engine of curl; this packages contains all the libs,
  29. headers, and manual pages to develop applications using libcurl.
  30. %prep
  31. rm -rf %{builddir}
  32. %setup
  33. %build
  34. %configure --without-ssl --prefix=%{prefix}
  35. make
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. make DESTDIR=$RPM_BUILD_ROOT install-strip
  39. %clean
  40. rm -rf $RPM_BUILD_ROOT
  41. rm -rf %{builddir}
  42. %post
  43. /sbin/ldconfig
  44. %postun
  45. /sbin/ldconfig
  46. %files
  47. %defattr(-,root,root)
  48. %attr(0755,root,root) %{_bindir}/curl
  49. %attr(0644,root,root) %{_mandir}/man1/*
  50. %{prefix}/lib/libcurl.so*
  51. %doc CHANGES LEGAL MITX.txt MPL-1.1.txt README docs/BUGS
  52. %doc docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/INSTALL docs/INTERNALS
  53. %doc docs/LIBCURL docs/MANUAL docs/README* docs/RESOURCES docs/TODO
  54. %doc docs/TheArtOfHttpScripting
  55. %files devel
  56. %defattr(-,root,root)
  57. %attr(0644,root,root) %{_mandir}/man3/*
  58. %attr(0644,root,root) %{_includedir}/curl/*
  59. %{prefix}/lib/libcurl.a
  60. %{prefix}/lib/libcurl.la
  61. %doc docs/examples/*
  62. %changelog
  63. * Sun Jan 7 2001 Loic Dachary <loic@senga.org>
  64. - use _mandir instead of prefix to locate man pages because
  65. _mandir is not always prefix/man/man?.