Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
- Name: curl
- Version: 7.52.1
- Release: 1
- License: MIT
- Group: Applications/Internet
- Source: http://curl.haxx.se/download/%{name}-%{version}.tar.lzma
- Source2: curlbuild.h
- Provides: webclient
- URL: http://curl.haxx.se/
- BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -nu)
- BuildRequires: groff
- BuildRequires: krb5-devel
- BuildRequires: libidn-devel
- BuildRequires: libssh2-devel
- BuildRequires: nss-devel
- BuildRequires: openldap-devel
- BuildRequires: openssh-clients
- BuildRequires: openssh-server
- BuildRequires: pkgconfig
- BuildRequires: stunnel
- BuildRequires: zlib-devel
- # perl modules used in the test suite
- BuildRequires: perl(Cwd)
- BuildRequires: perl(Digest::MD5)
- BuildRequires: perl(Exporter)
- BuildRequires: perl(File::Basename)
- BuildRequires: perl(File::Copy)
- BuildRequires: perl(File::Spec)
- BuildRequires: perl(IPC::Open2)
- BuildRequires: perl(MIME::Base64)
- BuildRequires: perl(strict)
- BuildRequires: perl(Time::Local)
- BuildRequires: perl(Time::HiRes)
- BuildRequires: perl(warnings)
- BuildRequires: perl(vars)
- Requires: libcurl = %{version}-%{release}
- # require at least the version of libssh2 that we were built against,
- # to ensure that we have the necessary symbols available (#525002, #642796)
- %global libssh2_version %(pkg-config --modversion libssh2 2>/dev/null || echo 0)
- %description
- curl is a command line tool for transferring data with URL syntax, supporting
- FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP,
- SMTP, POP3 and RTSP. curl supports SSL certificates, HTTP POST, HTTP PUT, FTP
- uploading, HTTP form based upload, proxies, cookies, user+password
- authentication (Basic, Digest, NTLM, Negotiate, kerberos...), file transfer
- resume, proxy tunneling and a busload of other useful tricks.
- %package -n libcurl
- Summary: A library for getting files from web servers
- Group: Development/Libraries
- Requires: libssh2%{?_isa} >= %{libssh2_version}
- %description -n libcurl
- libcurl is a free and easy-to-use client-side URL transfer library, supporting
- FTP, FTPS, HTTP, HTTPS, SCP, SFTP, TFTP, TELNET, DICT, LDAP, LDAPS, FILE, IMAP,
- SMTP, POP3 and RTSP. libcurl supports SSL certificates, HTTP POST, HTTP PUT,
- FTP uploading, HTTP form based upload, proxies, cookies, user+password
- authentication (Basic, Digest, NTLM, Negotiate, Kerberos4), file transfer
- resume, http proxy tunneling and more.
- %package -n libcurl-devel
- Summary: Files needed for building applications with libcurl
- Group: Development/Libraries
- Requires: libcurl = %{version}-%{release}
- # From Fedora 14, %%{_datadir}/aclocal is included in the filesystem package
- %if 0%{?fedora} < 14
- Requires: %{_datadir}/aclocal
- %endif
- # From Fedora 11, RHEL-6, pkgconfig dependency is auto-detected
- %if 0%{?fedora} < 11 && 0%{?rhel} < 6
- Requires: pkgconfig
- %endif
- Provides: curl-devel = %{version}-%{release}
- Obsoletes: curl-devel < %{version}-%{release}
- %description -n libcurl-devel
- The libcurl-devel package includes header files and libraries necessary for
- developing programs which use the libcurl library. It contains the API
- documentation of the library, too.
- %prep
- %setup -q
- %build
- [ -x /usr/kerberos/bin/krb5-config ] && KRB5_PREFIX="=/usr/kerberos"
- %configure --disable-static \
- --enable-hidden-symbols \
- --enable-ipv6 \
- --enable-ldaps \
- --enable-manual \
- --enable-threaded-resolver \
- --with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \
- --with-gssapi${KRB5_PREFIX} \
- --with-libidn \
- --with-libssh2 \
- --with-ssl --with-nss --with-http2
- # --enable-debug
- # use ^^^ to turn off optimizations, etc.
- # Remove bogus rpath
- sed -i \
- -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
- -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
- make %{?_smp_mflags}
- #%check
- #LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}
- #export LD_LIBRARY_PATH
- #
- # uncomment to use the non-stripped library in tests
- # LD_PRELOAD=`find -name \*.so`
- # LD_PRELOAD=`readlink -f $LD_PRELOAD`
- #
- #cd tests
- #make %{?_smp_mflags}
- # use different port range for 32bit and 64bit build, thus make it possible
- # to run both in parallel on the same machine
- #./runtests.pl -a -b%{?__isa_bits}90 -p -v
- %install
- rm -rf $RPM_BUILD_ROOT
- make DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install
- rm -f ${RPM_BUILD_ROOT}%{_libdir}/libcurl.la
- install -d $RPM_BUILD_ROOT%{_datadir}/aclocal
- install -m 644 docs/libcurl/libcurl.m4 $RPM_BUILD_ROOT%{_datadir}/aclocal
- # drop man page for a script we do not distribute
- rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/mk-ca-bundle.1
- # Make libcurl-devel multilib-ready (bug #488922)
- %if 0%{?__isa_bits} == 64
- %define _curlbuild_h curlbuild-64.h
- %else
- %define _curlbuild_h curlbuild-32.h
- %endif
- mv $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h \
- $RPM_BUILD_ROOT%{_includedir}/curl/%{_curlbuild_h}
- install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_includedir}/curl/curlbuild.h
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post -n libcurl -p /sbin/ldconfig
- %postun -n libcurl -p /sbin/ldconfig
- %files
- %defattr(-,root,root,-)
- %doc CHANGES README* COPYING
- %doc docs/BUGS docs/FAQ docs/FEATURES
- %doc docs/MANUAL docs/RESOURCES
- %doc docs/TheArtOfHttpScripting docs/TODO
- %{_bindir}/curl
- %{_mandir}/man1/curl.1*
- %files -n libcurl
- %defattr(-,root,root,-)
- %{_libdir}/libcurl.so.*
- %files -n libcurl-devel
- %defattr(-,root,root,-)
- %doc docs/examples/*.c docs/examples/Makefile.example docs/INTERNALS.md
- %doc docs/CONTRIBUTE.md docs/libcurl/ABI
- %{_bindir}/curl-config*
- %{_includedir}/curl
- %{_libdir}/*.so
- %{_libdir}/pkgconfig/*.pc
- %{_mandir}/man1/curl-config.1*
- %{_mandir}/man3/*
- %{_datadir}/aclocal/libcurl.m4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement