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