SHA256
8
0
forked from pool/neon
Files
neon/neon.spec
Dirk Mueller 24435ff0f8 - update to 0.34.0:
* New interfaces and features:
    - ne_request.h: add ne_get_response_location(),
      add ne_get_request_target()
    - ne_redirect.h: adds relative URI resolution per RFC 9110
    - ne_socket.h: add ne_iaddr_set_scope(),
      ne_iaddr_get_scope(), ne_sock_getproto()
    - ne_session.h: add NE_SESSFLAG_STRICT session flag
    - ne_session.h: ne_session_create() now accepts scoped IPv6
      link-local literal addresses following the RFC 6874
      syntax;
    - ne_session.h: add ne_ssl_set_protovers() to configure TLS
      protocol version ranges
    - ne_utils.h: add NE_FEATURE_GSSAPI, NE_FEATURE_LIBPXY
      feature flags
    - ne_ssl.h: add ne_ssl_proto_name()
    - HTTP strictness/compliance updated for RFC 9110/9112;
      notably stricter in parsing header field line, chunked
      transfer-coding, status-line.
   Bug fixes:
    - auth: the 'realm' string passed to credentials callback is
    now cleaned of non-printable characters.
  * Documentation & header updates for RFC 9110/9112.
  * New NE_MINIMUM_VERSION() autoconf macro for better version
    handling.
  * Fix ar, ranlib detection when cross-compiling (Sergei Trofimovich).
- version 0.30.0
*  added  ne_ssl_clicert_import, ne_ssl_context_get_flag,
* support chunked bodies with negative length passed to
- test suite hangs or fails in the OBS, but works locally

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/neon?expand=0&rev=73
2025-02-08 21:01:06 +00:00

110 lines
3.0 KiB
RPMSpec

#
# spec file for package neon
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2024 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 27
Name: neon
Version: 0.34.0
Release: 0
Summary: An HTTP and WebDAV Client Library
License: GPL-2.0-or-later
Group: Development/Libraries/Other
URL: https://notroj.github.io/neon/
Source0: https://notroj.github.io/neon/neon-%{version}.tar.gz
Source3: baselibs.conf
Patch0: neon-0.28.4-bloat.patch
BuildRequires: fdupes
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: xmlto
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(krb5-gssapi)
BuildRequires: pkgconfig(libproxy-1.0)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
%description
neon is an HTTP and WebDAV client library with a C interface.
%package -n libneon%{sover}
Summary: An HTTP and WebDAV Client Library
# Drop the main package. It avoids the lib from being installed in different versions
# and generally only contained coders doc anyhow.
Group: Development/Libraries/Other
Provides: neon = %{version}
Obsoletes: neon < %{version}
%description -n libneon%{sover}
neon is an HTTP and WebDAV client library with a C interface.
%package -n libneon-devel
Summary: An HTTP and WebDAV Client Library
Group: Development/Libraries/Other
Requires: libneon%{sover} = %{version}
# renamed after openSUSE 10.3
Provides: neon-devel = %{version}
Obsoletes: neon-devel < %{version}
%description -n libneon-devel
neon is an HTTP and WebDAV client library with a C interface.
%prep
%autosetup -p1
%build
%configure \
--with-ssl \
--enable-threadsafe-ssl=posix \
--with-libproxy \
--with-expat \
--disable-nls \
--enable-shared \
--disable-static \
--enable-warnings
%make_build
%install
%make_install \
docdir=%{_defaultdocdir}/%{name} \
%{nil}
find %{buildroot} -type f -name "*.la" -delete -print
%fdupes -s %{buildroot}/%{_mandir}
%check
export TEST_QUIET=0
%make_build check
%ldconfig_scriptlets -n libneon%{sover}
%files -n libneon%{sover}
%license src/COPYING.LIB
%doc AUTHORS BUGS NEWS THANKS TODO
%{_libdir}/*.so.%{sover}
%{_libdir}/*.so.%{sover}.*
%files -n libneon-devel
%license src/COPYING.LIB
%doc %{_defaultdocdir}/%{name}
%{_bindir}/neon-config
%{_includedir}/neon
%{_mandir}/man*/*%{?ext_man}
%{_libdir}/*.so
%{_libdir}/pkgconfig/neon.pc
%changelog