Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-curl-7531-static
dba-curl-7531-static.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-curl-7531-static.spec of Package dba-curl-7531-static
%define real_name curl %define version 7.53.1 %define vers 7531 %define with_dbassl 0 %define with_libssh2 1 %define with_dbassh2 0 %define with_gssapi 0 %define prefix /DBA/%{real_name}/%{version} Name: dba-%{real_name}-%{vers}-static Summary: A Tool for Transferring Data from URLs version 7.53.1 Url: http://curl.haxx.se/ Version: %{version} Source: http://curl.haxx.se/download/%{real_name}-%{version}.tar.bz2 Source2: %{real_name}-rpmlintrc Release: 1 License: BSD-3-Clause and MIT Group: Productivity/Networking/Web/Utilities BuildRoot: %{_tmppath}/%{real_name}-%{version}-build #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x #!BuildIgnore: nspr dba-geoip-148 dba-geoip-160 %if 0%{?centos_version} || 0%{?rhel_version} %define with_gssapi 1 %endif %if 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600 || 0%{?fedora_version} %define with_gssapi 0 %endif %if %{with_gssapi} BuildRequires: libgssapi-devel libgssapi %endif %if 0%{?rhel_version} >= 500 || 0%{?centos_version} >= 500 %define with_libssh2 0 %define with_dbassh2 1 %endif %define with_libssh2 0 %define with_dbassh2 1 %if 0%{?rhel_version} < 700 BuildRequires: libidn-devel %endif %if 0%{?sles_version} != 10 && 0%{?rhel_version} < 700 BuildRequires: lzma %endif BuildRequires: krb5-devel BuildRequires: libtool BuildRequires: openldap2-devel BuildRequires: pkg-config BuildRequires: zlib-devel %if %{with_dbassl} %if 0%{?suse_version} >= 1500 || {?suse_version} >= 1200 || 0%{?centos_version} >= 700 || 0%{?rhel_version} >= 700 BuildRequires: dba-openssl-111g-static %define ssldir /DBA/openssl/1.1.1g %else BuildRequires: dba-openssl-308-static %define ssldir /DBA/openssl/3.0.8 %endif #!BuildIgnore: openssl-devel %else BuildRequires: openssl-devel %endif %if %{with mozilla_nss} BuildRequires: mozilla-nss-devel %endif %if %{with_libssh2} BuildRequires: libssh2-devel %endif %if %{with_dbassh2} %if 0%{?suse_version} >= 1500 || 0%{?centos_version} >= 800 || 0%{?rhel_version} >= 700 BuildRequires: dba-libssh2-190-static %define ssh2dir /DBA/libssh2/1.9.0 %else BuildRequires: dba-libssh2-143-static %define ssh2dir /DBA/libssh2/1.4.3 %endif %endif %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %description Curl is a client to get documents and files from or send documents to a server using any of the supported protocols (HTTP, HTTPS, FTP, FTPS, TFTP, DICT, TELNET, LDAP, or FILE). The command is designed to work without user interaction or any kind of interactivity. %prep %setup -q -n %{real_name}-%{version} %build KRB5_PREFIX="=/usr/lib/mit" [ -x /usr/kerberos/bin/krb5-config ] && KRB5_PREFIX="=/usr/kerberos" export KRB5_PREFIX # curl complains if macro definition is contained in CFLAGS # see m4/xc-val-flgs.m4 %if 0%{?centos_version} != 800 && 0%{?rhel_version} != 800 CPPFLAGS="-D_FORTIFY_SOURCE=2" CFLAGS=$(echo $RPM_OPT_FLAGS | sed 's/-D_FORTIFY_SOURCE=2//') export CFLAGS="$CFLAGS -fPIC" export CPPFLAGS CFLAGS %endif %if %{with_dbassl} export CPPFLAGS="$CPPFLAGS -I%{ssldir}/include" # export LDFLAGS="$LDFLAGS -L/%{ssldir}/lib -lcrypto -lssl -ldl" export LDFLAGS="$LDFLAGS -L%{ssldir}/lib -ldl" export LIBS="-ldl %{ssldir}/lib/libcrypto.a %{ssldir}/lib/libssl.a" %endif # autoreconf -fi # local hack to make curl-config --libs stop printing libraries it depends on # (currently, libtool sets link_all_deplibs=(yes|unknown) everywhere, # will hopefully change in the future) sed -i 's/link_all_deplibs=unknown/link_all_deplibs=no/' configure ./configure --prefix=%{prefix} \ --enable-ipv6 \ --without-axtls \ %if %{with_dbassl} --with-ssl \ --with-ca-path=/etc/ssl/certs/ \ %else --with-ssl \ %endif %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} --without-axtls \ %endif --with-gssapi$KRB5_PREFIX \ %if %{with_dbassh2} --with-libssh2=%{ssh2dir} \ %else --with-libssh2 \ %endif %if %{with_gssapi} --with-gssapi \ %else --without-gssapi \ %endif --enable-hidden-symbols \ --disable-shared \ --enable-static \ --enable-threaded-resolver # if this fails, the above sed hack did not work ./libtool --config | grep -q link_all_deplibs=no # enable-hidden-symbols needs gcc4 and causes that curl exports only its API %{__make} %{?_smp_mflags} %install %{__mkdir_p} %{buildroot}%{prefix} %{__make} DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install find %{buildroot}%{prefix}/share/man -exec gzip {} \; %post # add libcurl.pc to pkgconfig directory if [ -d %{_libdir}/pkgconfig ]; then cd %{_libdir}/pkgconfig if [ -e libcurl.pc ]; then %{__rm} -f libcurl.pc fi %{__ln_s} -f %{prefix}/lib/pkgconfig/libcurl.pc . fi %files %defattr(-,root,root) %doc README %dir %{prefix} %{prefix}/* %changelog * Mon Aug 19 2019 Dennis Hampe <dennis.hampe@bertelsmann.de> - use dba-libssh2-190-static also for CentOS 8 * Mon Aug 19 2019 Dennis Hampe <dennis.hampe@bertelsmann.de> - use dba-libssh2-190-static for sles15 * Tue Mar 14 2017 Holger Manthey <holger.manthey@bertelsmann.de> - fix build for rhel7 * Tue Mar 7 2017 Holger Manthey <holger.manthey@bertelsmann.de> - initial package
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor