Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-curl-7450
dba-curl-7450.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-curl-7450.spec of Package dba-curl-7450
%define real_name curl %define version 7.45.0 %define vers 7450 %define with_dbassl 1 %define with_libssh2 1 %define with_dbassh2 0 %define with_gssapi 0 %define prefix /DBA/%{real_name}/%{version} Name: dba-%{real_name}-%{vers} Summary: A Tool for Transferring Data from URLs version 7.45.0 Url: http://curl.haxx.se/ Version: %{version} Source: http://curl.haxx.se/download/%{real_name}-%{version}.tar.bz2 Source2: %{real_name}-rpmlintrc Source3: filter-provides-curl.sh Release: 1 License: BSD-3-Clause and MIT Group: Productivity/Networking/Web/Utilities BuildRoot: %{_tmppath}/%{real_name}-%{version}-build %define _use_internal_dependency_generator 0 %define __find_provides %{SOURCE3} #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x %if 0%{?fedora_version} || 0%{?centos_version} || 0%{?rhel_version} %define with_gssapi 1 %endif %if 0%{?rhel_version} >= 600 || 0%{?centos_version} >= 600 %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 BuildRequires: libidn-devel BuildRequires: krb5-devel BuildRequires: libtool BuildRequires: lzma BuildRequires: openldap2-devel BuildRequires: pkg-config BuildRequires: zlib-devel %if %{with_dbassl} BuildRequires: dba-openssl-102d-static %define ssldir /DBA/openssl/1.0.2d #!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} BuildRequires: dba-libssh2-143-static %define ssh2dir /DBA/libssh2/1.4.3 %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} %{__chmod} +x %{SOURCE3} %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 CPPFLAGS="-D_FORTIFY_SOURCE=2" CFLAGS=$(echo $RPM_OPT_FLAGS | sed 's/-D_FORTIFY_SOURCE=2//') export CPPFLAGS CFLAGS %if %{with_dbassl} export CFLAGS="$CFLAGS -I%{ssldir}/include" export LDFLAGS="$LDFLAGS -L/%{ssldir}/lib -ldl" %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=%{ssldir} \ --with-ca-path=/etc/ssl/certs/ \ %else --without-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-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 export NO_BRP_CHECK_RPATH=true %{__mkdir_p} %{buildroot}%{prefix} %{__make} DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" install find %{buildroot}%{prefix}/share/man -exec gzip {} \; %files %defattr(-,root,root) %doc README %dir %{prefix} %{prefix}/* %changelog * Wed Nov 4 2015 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