1 # Use --define 'nossl 1' on the command line to disable SSL detection
2 %{!?nossl:%define SSL 1}
3 %{?nossl:%define SSL 0}
6 %define version @VERSION@
7 %define release 1%{!?nossl:ssl}
9 %define curlroot %{_builddir}/%{name}-%{version}
11 Summary: get a file from a FTP or HTTP server.
15 License: MIT/X derivate
16 Vendor: Daniel Stenberg <Daniel.Stenberg@haxx.se>
17 Group: Applications/Internet
18 Source: %{name}-%{version}.tar.bz2
19 URL: http://curl.haxx.se/
21 BuildRoot: %{_tmppath}/%{name}-%{version}-root
25 curl is a client to get documents/files from servers, using any of the
26 supported protocols. The command is designed to work without user
27 interaction or any kind of interactivity.
29 curl offers many useful tricks like proxy support, user authentication,
30 ftp upload, HTTP post, file transfer resume and more.
33 Note: this version is compiled with SSL support.
35 Note: this version is compiled without SSL support.
39 Summary: Development files for the curl libary
40 Group: Development/Libraries
42 Requires: openssl >= 0.9.5
44 Requires: curl = %{version}
48 libcurl is the core engine of curl; this packages contains all the
49 libs, headers, and manual pages to develop applications using libcurl.
59 # Use the default compiler for this platform - gcc otherwise
62 if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then
69 cd %{curlroot} && (if [ -f configure.in ]; then mv -f configure.in configure.in.
72 ./configure --prefix=%{prefix} \
82 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
83 make DESTDIR=%{buildroot} install-strip
85 ( cd $RPM_BUILD_ROOT # same as %{buildroot}
87 for dir in bin include
91 ln -sf ../..%{prefix}/$dir/* .
97 ln -sf ../..%{prefix}/lib/* .
102 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
105 %defattr(-,root,root)
106 %attr(0755,root,root) %{_bindir}/curl
107 %attr(0644,root,root) %{_mandir}/man1/curl.1*
108 %attr(0644,root,root) %{_mandir}/man1/mk-ca-bundle.1
111 %{_datadir}/curl/curl-ca-bundle.crt
113 %doc CHANGES COPYING README RELEASE-NOTES
114 %doc docs/BUGS docs/CONTRIBUTE docs/FAQ docs/FEATURES docs/HISTORY
115 %doc docs/INSTALL docs/KNOWN_BUGS
116 %doc docs/MANUAL docs/RESOURCES docs/THANKS docs/VERSIONS docs/TODO
117 %doc docs/TheArtOfHttpScripting
125 %defattr(-,root,root)
126 %attr(0755,root,root) %{_bindir}/curl-config
127 %attr(0644,root,root) %{_mandir}/man1/curl-config.1*
128 %attr(0644,root,root) %{_mandir}/man1/mk-ca-bundle.1
129 %attr(0644,root,root) %{_mandir}/man3/*
130 %attr(0644,root,root) %{_includedir}/curl/*
131 %{_libdir}/libcurl.la
132 %doc docs/BINDINGS docs/INTERNALS docs/LICENSE-MIXING