1 | Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
|
---|
2 | Name: curl
|
---|
3 | Version: 7.21.1
|
---|
4 | Release: 1
|
---|
5 | License: MIT
|
---|
6 | Group: Applications/Internet
|
---|
7 | Source: http://curl.haxx.se/download/%{name}-%{version}.tar.gz
|
---|
8 |
|
---|
9 | Patch0: curl-os2.diff
|
---|
10 |
|
---|
11 | Provides: webclient
|
---|
12 | URL: http://curl.haxx.se/
|
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
---|
14 |
|
---|
15 | #BuildRequires: automake
|
---|
16 | #BuildRequires: groff
|
---|
17 | #BuildRequires: krb5-devel
|
---|
18 | #BuildRequires: libidn-devel
|
---|
19 | #BuildRequires: libssh2-devel >= 1.2
|
---|
20 | #BuildRequires: nss-devel
|
---|
21 | #BuildRequires: openldap-devel
|
---|
22 | #BuildRequires: openssh-clients
|
---|
23 | #BuildRequires: openssh-server
|
---|
24 | BuildRequires: pkgconfig
|
---|
25 | #BuildRequires: stunnel
|
---|
26 |
|
---|
27 | # valgrind is not available on s390(x)
|
---|
28 | %ifnarch s390 s390x
|
---|
29 | #BuildRequires: valgrind
|
---|
30 | %endif
|
---|
31 |
|
---|
32 | BuildRequires: zlib-devel
|
---|
33 | Requires: libcurl = %{version}-%{release}
|
---|
34 |
|
---|
35 | # TODO: mention also IMAP(S), POP3(S), SMTP(S) and RTSP protocols
|
---|
36 | %description
|
---|
37 | cURL is a tool for getting files from HTTP, FTP, FILE, LDAP, LDAPS,
|
---|
38 | DICT, TELNET and TFTP servers, using any of the supported protocols.
|
---|
39 | cURL is designed to work without user interaction or any kind of
|
---|
40 | interactivity. cURL offers many useful capabilities, like proxy support,
|
---|
41 | user authentication, FTP upload, HTTP post, and file transfer resume.
|
---|
42 |
|
---|
43 | %package -n libcurl
|
---|
44 | Summary: A library for getting files from web servers
|
---|
45 | Group: Development/Libraries
|
---|
46 |
|
---|
47 | # libssh2 ABI has been changed since libssh2-1.0
|
---|
48 | # this forces update of libssh2 before update of libcurl
|
---|
49 | #Requires: libssh2 >= 1.2
|
---|
50 |
|
---|
51 | %description -n libcurl
|
---|
52 | This package provides a way for applications to use FTP, HTTP, Gopher and
|
---|
53 | other servers for getting files.
|
---|
54 |
|
---|
55 | %package -n libcurl-devel
|
---|
56 | Summary: Files needed for building applications with libcurl
|
---|
57 | Group: Development/Libraries
|
---|
58 | #Requires: automake
|
---|
59 | Requires: libcurl = %{version}-%{release}
|
---|
60 | #Requires: libidn-devel
|
---|
61 | Requires: pkgconfig
|
---|
62 |
|
---|
63 | Provides: curl-devel = %{version}-%{release}
|
---|
64 | Obsoletes: curl-devel < %{version}-%{release}
|
---|
65 |
|
---|
66 | %description -n libcurl-devel
|
---|
67 | cURL is a tool for getting files from FTP, HTTP, Gopher, Telnet, and
|
---|
68 | Dict servers, using any of the supported protocols. The libcurl-devel
|
---|
69 | package includes files needed for developing applications which can
|
---|
70 | use cURL's capabilities internally.
|
---|
71 |
|
---|
72 | %prep
|
---|
73 | %setup -q
|
---|
74 |
|
---|
75 | # Convert docs to UTF-8
|
---|
76 | # NOTE: we do this _before_ applying of all patches, which are already UTF-8
|
---|
77 | #for f in CHANGES README; do
|
---|
78 | # iconv -f iso-8859-1 -t utf8 < ${f} > ${f}.utf8
|
---|
79 | # mv -f ${f}.utf8 ${f}
|
---|
80 | #done
|
---|
81 |
|
---|
82 | %patch0 -p1 -b .os2~
|
---|
83 |
|
---|
84 | #autoreconf
|
---|
85 | # replace hard wired port numbers in the test suite
|
---|
86 | #sed -i s/899\\\([0-9]\\\)/%{?__isa_bits}9\\1/ tests/data/test*
|
---|
87 |
|
---|
88 | %build
|
---|
89 | export CONFIG_SHELL="/bin/sh" ; \
|
---|
90 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" ; \
|
---|
91 | export LIBS="-lurpo -lmmap -lpthread" ; \
|
---|
92 | %configure \
|
---|
93 | --disable-ipv6 \
|
---|
94 | --disable-ldaps \
|
---|
95 | --enable-manual \
|
---|
96 | --with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \
|
---|
97 | --with-gssapi=%{_prefix}/kerberos \
|
---|
98 | --without-libidn \
|
---|
99 | --without-libssh2 \
|
---|
100 | --without-ssl --without-nss \
|
---|
101 | --enable-shared --disable-static \
|
---|
102 | "--cache-file=%{_topdir}/cache/%{name}.cache"
|
---|
103 |
|
---|
104 | # uncomment to turn off optimizations
|
---|
105 | # find -name Makefile | xargs sed -i 's/-O2/-O0/'
|
---|
106 | # Remove bogus rpath
|
---|
107 | #sed -i \
|
---|
108 | # -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
|
---|
109 | # -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
---|
110 |
|
---|
111 | make %{?_smp_mflags}
|
---|
112 |
|
---|
113 | #%check
|
---|
114 | #LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
|
---|
115 | #export LD_LIBRARY_PATH
|
---|
116 | #cd tests
|
---|
117 | #make %{?_smp_mflags}
|
---|
118 | # use different port range for 32bit and 64bit build, thus make it possible
|
---|
119 | # to run both in parallel on the same machine
|
---|
120 | #./runtests.pl -a -b%{?__isa_bits}90 -p -v
|
---|
121 |
|
---|
122 | %install
|
---|
123 | rm -rf $RPM_BUILD_ROOT
|
---|
124 |
|
---|
125 | make DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" install
|
---|
126 |
|
---|
127 | rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
|
---|
128 |
|
---|
129 | install -d $RPM_BUILD_ROOT/%{_datadir}/aclocal
|
---|
130 | install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT/%{_datadir}/aclocal
|
---|
131 |
|
---|
132 | install -m 755 lib/curl7.dll $RPM_BUILD_ROOT/%{_libdir}
|
---|
133 | install -m 755 lib/.libs/curl.lib $RPM_BUILD_ROOT/%{_libdir}
|
---|
134 | install -m 755 lib/.libs/curl_s.a $RPM_BUILD_ROOT/%{_libdir}
|
---|
135 |
|
---|
136 | #%define _curlbuild_h curlbuild-32.h
|
---|
137 | #mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
|
---|
138 | # $RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}
|
---|
139 | #install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h
|
---|
140 |
|
---|
141 | %clean
|
---|
142 | rm -rf $RPM_BUILD_ROOT
|
---|
143 |
|
---|
144 | #%post -n libcurl -p /sbin/ldconfig
|
---|
145 |
|
---|
146 | #%postun -n libcurl -p /sbin/ldconfig
|
---|
147 |
|
---|
148 | %files
|
---|
149 | %defattr(-,root,root,-)
|
---|
150 | %doc CHANGES README* COPYING
|
---|
151 | %doc docs/BUGS docs/FAQ docs/FEATURES
|
---|
152 | %doc docs/MANUAL docs/RESOURCES
|
---|
153 | %doc docs/TheArtOfHttpScripting docs/TODO
|
---|
154 | %{_bindir}/curl.exe
|
---|
155 | %{_mandir}/man1/curl.1*
|
---|
156 |
|
---|
157 | %files -n libcurl
|
---|
158 | %defattr(-,root,root,-)
|
---|
159 | %{_libdir}/curl7.dll
|
---|
160 |
|
---|
161 | %files -n libcurl-devel
|
---|
162 | %defattr(-,root,root,-)
|
---|
163 | %doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS
|
---|
164 | %doc docs/CONTRIBUTE docs/libcurl/ABI
|
---|
165 | %{_bindir}/curl-config*
|
---|
166 | %{_includedir}/curl
|
---|
167 | %{_libdir}/*.a
|
---|
168 | %{_libdir}/*.lib
|
---|
169 | %{_libdir}/pkgconfig/*.pc
|
---|
170 | %{_mandir}/man1/curl-config.1*
|
---|
171 | %{_mandir}/man3/*
|
---|
172 | %{_datadir}/aclocal/libcurl.m4
|
---|
173 |
|
---|
174 | %changelog
|
---|