Files
httpcomponents-core5/httpcomponents-core5.spec
Fridrich Strba f4d1efcafa Accepting request 1176007 from home:urbic:branches:Java:packages
- Update to v5.2.4
  * This is a maintenance release that corrects a major defect
    discovered since release 5.2.3 that can lead to an H2
    connection failing at runtime with the message "Frame size
    exceeds maximum" when executing requests with an enclosed
    message body and the remote endpoint having negotiated a
    maximum frame size larger than the protocol default (16KB).
  * Change Log
    + HTTPCORE-762: H2 protocol handler incorrectly determines the
      maximum frame size for outgoing frames in case the remote
      endpoint negotiated a max frame size larger than the protocol
      default.
- Update to v5.2.3
  * This is a maintenance release that corrects several defects
    discovered since release 5.2.2 including a major defect that
    can cause non-blocking character-based consumers to enter an
    invalid state and stop processing incoming data.
  * Change Log
    + HTTPCORE-757: AbstractCharDataConsumer fails to correctly
      handle incomplete UTF8 encoded data split across multiple
      data packets.
    + Support SOCKS5 with username/password authentication
    + Non-blocking protocol handler to filter out non-printable
      ASCII and non-ASCII characters from HTTP headers by default.
      This makes the behavior of the non-blocking transport
      consistent with that of the blocking one (#416).
    + HTTPCORE-754: StrictConnPool fails to correctly handle
      infinite request timeout.
    + HTTPCORE-753: Fixed race condition in the IOSession#close
      method.
- Update to v5.2.2
  * This is a maintenance release that corrects several defects
    discovered since release 5.2.1 including a major defect that
    can cause HTTP/2 connections allocate excessive amount of
    memory for their output frame buffer if the opposite endpoint
    transmits a high value of MAX_FRAME_SIZE in its settings.
  * Change Log
    + HTTPCORE-752: I/O reactor fails to initialize socket timeout
      for TLS connections correctly resulting in infinite (no
      timeout) by default.
    +  HTTPCORE-751: H2 protocol handler always resizes the output
      frame buffer to the remove MAX_FRAME_SIZE instead of doing so
      only then the remote MAX_FRAME_SIZE is lesser than the
      current MAX_FRAME_SIZE (partially reverts HTTPCORE-707).
    + HTTPCORE-750: Fixed a defect causing AbstractIOSessionPool to
      create multiple connections under high load at initialization
      time due to a race condition.
    + Handle UnsupportedOperationException in
      getApplicationProtocol.
    + HTTPCORE-742: BasicHttpRequest#setUri does not correctly
      reset internal state.
    + HTTPCORE-733: BasicAsyncEntityProducer sends an extra
      trailing 0 with UTF-8 encoded content
    + Do not duplicate the HttpMessage instance variable slot in
      subclasses of AbstractMessageWrapper.

OBS-URL: https://build.opensuse.org/request/show/1176007
OBS-URL: https://build.opensuse.org/package/show/Java:packages/httpcomponents-core5?expand=0&rev=4
2024-05-23 08:09:10 +00:00

102 lines
3.5 KiB
RPMSpec

#
# spec file for package httpcomponents-core5
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#
%bcond_with tests
Name: httpcomponents-core5
Version: 5.2.4
Release: 0
Summary: Set of low level Java HTTP transport components for HTTP services
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://hc.apache.org/
Source0: https://archive.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: maven-local
BuildRequires: mvn(io.reactivex.rxjava3:rxjava)
BuildRequires: mvn(org.apache.httpcomponents:httpcomponents-parent:pom:)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.junit:junit-bom:pom:)
BuildRequires: mvn(org.reactivestreams:reactive-streams)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildArch: noarch
%description
HttpCore is a set of low level HTTP transport components that can be
used to build custom client and server side HTTP services with a
minimal footprint. HttpCore supports two I/O models: blocking I/O
model based on the classic Java I/O and non-blocking, event driven I/O
model based on Java NIO.
The blocking I/O model may be more appropriate for data intensive, low
latency scenarios, whereas the non-blocking model may be more
appropriate for high latency scenarios where raw data throughput is
less important than the ability to handle thousands of simultaneous
HTTP connections in a resource efficient manner.
%package javadoc
Summary: API documentation for %{name}
Group: Development/Libraries/Java
%description javadoc
%{summary}.
%prep
%setup -q -c
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :japicmp-maven-plugin
%pom_remove_plugin :maven-javadoc-plugin
# we don't need these artifacts right now
#pom_disable_module httpcore5-reactive
#pom_disable_module httpcore5-testing
# missing dependency
%pom_remove_dep :conscrypt-openjdk-uber httpcore5-h2
rm -f \
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/ssl/ConscryptClientTlsStrategy.java \
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/ssl/ConscryptServerTlsStrategy.java \
httpcore5-h2/src/main/java/org/apache/hc/core5/http2/ssl/ConscryptSupport.java
%pom_remove_dep io.reactivex.rxjava2:rxjava httpcore5-testing
rm -f httpcore5-testing/src/main/java/org/apache/hc/core5/testing/reactive/ReactiveTestUtils.java
%build
%{mvn_build} -f -- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif
-Dsource=8
%install
%{mvn_package} :{*}-parent __noinstall
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc README.md RELEASE_NOTES.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt
%changelog