Merged update from upstream sources

This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/neon.git#2a475f22fab03a6ec96cff4f4fd5c6edcda6a9d1
This commit is contained in:
DistroBaker 2021-02-07 21:25:40 +00:00
parent bf7f381444
commit 96096f9eba

View File

@ -1,19 +1,24 @@
%bcond_without tests
%if 0%{?fedora}
%bcond_without pkcs11
%else
%bcond_with pkcs11
%endif
Summary: An HTTP and WebDAV client library
Name: neon
Version: 0.31.2
Release: 5%{?dist}
Release: 6%{?dist}
License: LGPLv2+
URL: https://notroj.github.io/neon/
Source0: https://notroj.github.io/neon/neon-%{version}.tar.gz
Patch0: neon-0.27.0-multilib.patch
Patch1: neon-0.31.2-lesstests.patch
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: expat-devel, openssl-devel, zlib-devel, krb5-devel, libproxy-devel
BuildRequires: pkgconfig, pakchois-devel
Requires: ca-certificates
BuildRequires: pkgconfig, make, gcc
%if %{with pkcs11}
BuildRequires: pakchois-devel
%endif
%if %{with tests}
# SSL tests require openssl binary, PKCS#11 testing need certutil
BuildRequires: /usr/bin/perl, /usr/bin/openssl, /usr/bin/certutil
@ -51,11 +56,11 @@ export CC="%{__cc} -pthread"
--enable-warnings \
--with-ssl=openssl --enable-threadsafe-ssl=posix \
--with-libproxy
make %{?_smp_mflags}
%make_build
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
%make_install
sed -ri "/^dependency_libs/{s,-l[^ ']*,,g}" \
$RPM_BUILD_ROOT%{_libdir}/libneon.la
@ -84,6 +89,10 @@ make %{?_smp_mflags} check
%{_libdir}/*.so
%changelog
* Thu Feb 4 2021 Joe Orton <jorton@redhat.com> - 0.31.2-6
- add bcond for PKCS#11 support
- use make macros
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.31.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild