Files
httpcomponents-client5/httpcomponents-client5.spec
Fridrich Strba d12383c797 Accepting request 1176008 from home:urbic:branches:Java:packages
- Update to v5.3.1
  * This is a maintenance release that fixes several minor defects
    and a regression in the Fluent module causing the response body
    truncation discovered since release 5.3.
  * Change Log
    + Restored backwards-compatible #createSocket calls in
    + HTTPCLIENT-2315: Client builders fail to apply system
      properties to the default connection manager.
    + HTTPCLIENT-2314: Handle gracefully a failure of DnsResolver
      to return a list of resolved addresses (#533).
    + HTTPCLIENT-2314: Throw ConnectionShutdownException in case of
      pooled connection having been closed or discarded instead of
      plain IllegalStateException.
    + HTTPCLIENT-2312: Fixed response body truncation in the fluent
      API (#521).
    + HTTPCLIENT-2313: Fixed NullPointerException in
      PoolingHttpClientConnectionManager when debug logging is
      enabled.
- Update to v5.3
  * This is the first GA release in the 5.3 release series. This
    release finalizes the 5.3 APIs and also includes all bug fixes
    from the 5.2 release branch.
  * The 5.3 release series introduces support for the Bearer
    authentication scheme (RFC 6750) and deprecates NTLM and
    GSS-based experimental authentication schemes in favor of Basic
    / Bearer authentication with TLS.
  * Notable changes and features included in the 5.3 series:
    + Introduction of the Bearer authentication scheme.
    + Deprecation of the NTLM authentication scheme.
    + Deprecation of the GSS-based experimental authentication
      schemes.
    + Support for load distribution across multiple proxies.
  * Change Log
    + HTTPCLIENT-2310: Async Connect exec handler incorrectly pipes
      CONNECT requests through the main request protocol chain.
    + Upgraded HttpCore to version 5.2.4.
    + SEE OTHER redirect handling fix.
    + HTTPCLIENT-2305: SSLConnectionSocketFactory allows
      Socket.connect() to be decorated (#499).
    + Add security warning to TrustStrategy implementations
      documentation (#490).
    + More consistent handling of OperationTimeoutException in
      MemcachedHttpCacheStorage.
    + Document exec chain behavior when automatic retries are
      enabled. (#480).
    + HTTPCLIENT-2291: Fixed inconsistency in behavior between the
      class and async implementation of the request re-execution.
      The async request retry exec will now restart request
      execution from itself instead of from the very beginning of
      the execution chain.
- Update to v5.3-ALPHA1
  * This is the first release in the 5.3 release series that
    introduces support for the Bearer authentication scheme (RFC
    6750) and deprecates NTLM and GSS-based experimental
    authentication schemes in favor of Basic / Bearer
    authentication with TLS.
  * Change Log
    + GSS-based experimental authentication schemes deprecated and
      disabled by default.
    + NTLM scheme deprecated and disabled by default.
    + Added linear and exponential BackoffManager implementations.
    + Improved AIMDBackoffManager.
    + Added DistributedProxySelector with support for load
      distribution across multiple proxies.
    + Support for preamble and epilogue in multipart entities.
    + HttpResponseException to include response message content (up
      to 256 bytes).
    + Workaround for URL quoting issue with LLv6 host literals.
    + Bearer auth scheme support (RFC 6750)
    + Credentials interface should be able to represent different
      types of user credentials including token-based with no
      password.
    + Connection settings `timeToLive` and
      `validateAfterInactivity` set to zero to always close or
      validate connections being leased.
    + Digest authentication scheme to omit the algorithm in the
      authentication response if it has not been explicitly set in
      the authentication challenge, as per RFC 7616.
    + HTTPCLIENT-2271: Do not optimize the path component of the
      resolved URI by default.
    + Pass HttpContext to SSLConnectionSocketFactory#prepareSocket
      method (#404)

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

112 lines
3.7 KiB
RPMSpec

#
# spec file for package httpcomponents-client5
#
# 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/
#
Name: httpcomponents-client5
Version: 5.3.1
Release: 0
Summary: HTTP agent implementation based on httpcomponents HttpCore
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://hc.apache.org/
Source0: https://archive.apache.org/dist/httpcomponents/httpclient/source/httpcomponents-client-%{version}-src.tar.gz
Patch0: %{name}-conscrypt.patch
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(net.java.dev.jna:jna)
BuildRequires: mvn(net.java.dev.jna:jna-platform)
BuildRequires: mvn(org.apache.httpcomponents.core5:httpcore5)
BuildRequires: mvn(org.apache.httpcomponents.core5:httpcore5-h2)
BuildRequires: mvn(org.apache.httpcomponents.core5:httpcore5-testing)
BuildRequires: mvn(org.apache.httpcomponents:httpcomponents-parent:pom:)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.apache.logging.log4j:log4j-slf4j-impl)
BuildRequires: mvn(org.brotli:dec)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.junit:junit-bom:pom:)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: publicsuffix
Requires: publicsuffix
BuildArch: noarch
%description
HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on
httpcomponents HttpCore. It also provides reusable components for
client-side authentication, HTTP state management, and HTTP connection
management. HttpComponents Client is a successor of and replacement
for Commons HttpClient 3.x. Users of Commons HttpClient are strongly
encouraged to upgrade.
%package cache
Summary: Cache module for %{name}
Group: Development/Libraries/Java
%description cache
This package provides client side caching for %{name}.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
%{summary}.
%prep
%setup -q -c
# Remove optional build deps not available in openSUSE
%pom_remove_plugin -r :download-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-javadoc-plugin
# Missing dependencies
rm -r httpclient5-cache/src/main/*/org/apache/hc/client5/http/impl/cache/memcached
%pom_remove_dep :spymemcached httpclient5-cache
rm -r httpclient5-cache/src/main/*/org/apache/hc/client5/http/impl/cache/ehcache
%pom_remove_dep :ehcache-api httpclient5-cache
rm -f httpclient5/src/main/java/org/apache/hc/client5/http/ssl/ConscryptClientTlsStrategy.java
%pom_remove_dep org.conscrypt:conscrypt-openjdk-uber httpclient5
%patch -P 0 -p1
%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_package} :{*}-cache cache
%mvn_install
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc README.md RELEASE_NOTES.txt
%files cache -f .mfiles-cache
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt
%changelog