File project.diff of Package curl

--- curl.spec.orig
+++ curl.spec
@@ -16,8 +16,10 @@
 #
 
 
-%bcond_without openssl
-%bcond_with mozilla_nss
+%define ssl_backend libre
+
+%bcond_with openssl
+%bcond_without mozilla_nss
 %bcond_without testsuite
 Name:           curl
 Version:        7.48.0
@@ -33,6 +35,7 @@ Source4:        %{name}.keyring
 Patch0:         libcurl-ocloexec.patch
 Patch1:         dont-mess-with-rpmoptflags.diff
 Patch3:         curl-secure-getenv.patch
+Patch4:         err-remove-thread-state.diff
 BuildRequires:  groff
 BuildRequires:  krb5-mini-devel
 BuildRequires:  libtool
@@ -48,6 +51,7 @@ BuildRequires:  pkgconfig(zlib)
 Requires:       libcurl4 = %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %if %{with openssl}
+BuildRequires:  libressl-devel
 BuildRequires:  pkgconfig(libssl)
 %endif
 %if %{with mozilla_nss}
@@ -97,6 +101,9 @@ user interaction or any kind of interact
 %patch0
 %patch1
 %patch3
+%if %{ssl_backend} "libre"
+%patch4
+%endif
 
 %build
 # curl complains if macro definition is contained in CFLAGS
@@ -114,7 +121,7 @@ sed -i 's/\(link_all_deplibs=\)unknown/\
 %configure \
     --enable-ipv6 \
 %if %{with openssl}
-    --with-ssl \
+    --with-ssl=%{ssl_backend}ssl \
     --with-ca-fallback \
     --without-ca-path \
     --without-ca-bundle \
openSUSE Build Service is sponsored by