mirror of
https://abf.rosa.ru/djam/curl.git
synced 2025-02-24 00:03:01 +00:00
Restore original libcurl.pc.in for OpenSSL
This commit is contained in:
parent
665d29f90d
commit
27b784f0d9
1 changed files with 10 additions and 1 deletions
11
curl.spec
11
curl.spec
|
@ -29,7 +29,7 @@
|
||||||
Summary: Gets a file from a FTP, GOPHER or HTTP server
|
Summary: Gets a file from a FTP, GOPHER or HTTP server
|
||||||
Name: curl
|
Name: curl
|
||||||
Version: 7.68.0
|
Version: 7.68.0
|
||||||
Release: 7
|
Release: 8
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: BSD-like
|
License: BSD-like
|
||||||
Group: Networking/Other
|
Group: Networking/Other
|
||||||
|
@ -193,7 +193,11 @@ Example files for %{name} development.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
cp libcurl.pc.in libcurl.pc.in.0
|
||||||
%apply_patches
|
%apply_patches
|
||||||
|
# after Patch3 curl-libressl.patch
|
||||||
|
# 0 - original (OpenSSL), 1 - patched (LibreSSL)
|
||||||
|
cp libcurl.pc.in libcurl.pc.in.1
|
||||||
regexp="$(echo %{ssl_list} | sed -e 's, ,|,g')"
|
regexp="$(echo %{ssl_list} | sed -e 's, ,|,g')"
|
||||||
for i in %{ssl_list}; do
|
for i in %{ssl_list}; do
|
||||||
mkdir -p "$i"
|
mkdir -p "$i"
|
||||||
|
@ -208,6 +212,9 @@ rm -fr $(ls -1v | grep -vE "${regexp}|docs|COPYING|CHANGES")
|
||||||
ADD_CONF_OPTS=""
|
ADD_CONF_OPTS=""
|
||||||
case "$SSL" in
|
case "$SSL" in
|
||||||
libressl )
|
libressl )
|
||||||
|
cp libcurl.pc.in.1 libcurl.pc.in
|
||||||
|
# validate that correct file is being used
|
||||||
|
grep -q LIBRESSL_ libcurl.pc.in
|
||||||
new_libname=libcurl-libressl
|
new_libname=libcurl-libressl
|
||||||
sed -i configure.ac \
|
sed -i configure.ac \
|
||||||
-e 's,openssl.pc,libressl.pc,g' \
|
-e 's,openssl.pc,libressl.pc,g' \
|
||||||
|
@ -227,6 +234,8 @@ case "$SSL" in
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
openssl )
|
openssl )
|
||||||
|
cp libcurl.pc.in.0 libcurl.pc.in
|
||||||
|
! grep -q LIBRESSL_ libcurl.pc.in
|
||||||
new_libname=libcurl
|
new_libname=libcurl
|
||||||
export LIBS="$(pkg-config --cflags-only-I --libs-only-L openssl)"
|
export LIBS="$(pkg-config --cflags-only-I --libs-only-L openssl)"
|
||||||
export CFLAGS="$LIBS"
|
export CFLAGS="$LIBS"
|
||||||
|
|
Loading…
Add table
Reference in a new issue