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