2023-05-31 10:20:14 +00:00
|
|
|
#
|
|
|
|
# spec file for package httpcomponents-client5
|
|
|
|
#
|
2024-05-23 08:09:23 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-05-31 10:20:14 +00:00
|
|
|
#
|
|
|
|
# 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
|
2024-05-23 08:09:23 +00:00
|
|
|
Version: 5.3.1
|
2023-05-31 10:20:14 +00:00
|
|
|
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
|
2023-06-01 10:20:14 +00:00
|
|
|
Patch0: %{name}-conscrypt.patch
|
2023-05-31 10:20:14 +00:00
|
|
|
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)
|
2023-06-01 10:20:14 +00:00
|
|
|
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
|
2023-05-31 10:20:14 +00:00
|
|
|
Requires: publicsuffix
|
2023-06-01 10:20:14 +00:00
|
|
|
BuildArch: noarch
|
2023-05-31 10:20:14 +00:00
|
|
|
|
|
|
|
%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
|
2024-02-21 10:44:55 +00:00
|
|
|
%patch -P 0 -p1
|
2023-05-31 10:20:14 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%{mvn_build} -f -- \
|
|
|
|
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
|
|
|
|
-Dmaven.compiler.release=8 \
|
|
|
|
%endif
|
|
|
|
-Dsource=8
|
|
|
|
|
|
|
|
%install
|
2023-06-01 10:20:14 +00:00
|
|
|
%{mvn_package} :{*}-parent __noinstall
|
|
|
|
%{mvn_package} :{*}-cache cache
|
2023-05-31 10:20:14 +00:00
|
|
|
|
|
|
|
%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
|