Compare commits

...

No commits in common. "c8-stream-3.6" and "stream-javapackages-tools-202501-rhel-9.6.0" have entirely different histories.

10 changed files with 2540 additions and 19 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

27
.gitignore vendored
View File

@ -1 +1,26 @@
SOURCES/httpcomponents-core-4.4.12-src.tar.gz /httpcomponents-core-4.1-src.tar.gz
/httpcomponents-core-4.1.1-src.tar.gz
/httpcomponents-core-4.1.2-src.tar.gz
/httpcomponents-core-4.1.3-src.tar.gz
httpcomponents-core-4.1.4-src.tar.gz
/httpcomponents-core-4.2.1-src.tar.gz
/httpcomponents-core-4.2.3-src.tar.gz
/httpcomponents-core-4.2.4-src.tar.gz
/httpcomponents-core-4.3-src.tar.gz
/httpcomponents-core-4.3.2-src.tar.gz
/httpcomponents-core-4.4-src.tar.gz
/httpcomponents-core-4.4.1-src.tar.gz
/httpcomponents-core-4.4.2-src.tar.gz
/httpcomponents-core-4.4.3-src.tar.gz
/httpcomponents-core-4.4.4-src.tar.gz
/httpcomponents-core-4.4.5-src.tar.gz
/httpcomponents-core-4.4.6-src.tar.gz
/httpcomponents-core-4.4.7-src.tar.gz
/httpcomponents-core-4.4.8-src.tar.gz
/httpcomponents-core-4.4.9-src.tar.gz
/httpcomponents-core-4.4.10-src.tar.gz
/httpcomponents-core-4.4.11-src.tar.gz
/httpcomponents-core-4.4.12-src.tar.gz
/httpcomponents-core-4.4.13-src.tar.gz
/httpcomponents-core-4.4.16-src.tar.gz
/httpcomponents-core-4.4.16-source-release.zip

View File

@ -1 +0,0 @@
c29457872eabc280f17f66d51cd76a6e079d7308 SOURCES/httpcomponents-core-4.4.12-src.tar.gz

2384
0002-Port-to-Mockito-5.patch Normal file

File diff suppressed because it is too large Load Diff

1
ci.fmf Normal file
View File

@ -0,0 +1 @@
resultsdb-testcase: separate

7
gating.yaml Normal file
View File

@ -0,0 +1,7 @@
--- !Policy
product_versions:
- rhel-9
decision_contexts:
- osci_compose_gate
rules:
- !PassingTestCaseRule {test_case_name: osci.brew-build./plans/javapackages.functional}

View File

@ -1,21 +1,30 @@
%bcond_with bootstrap
Name: httpcomponents-core Name: httpcomponents-core
Version: 4.4.16
Release: 21%{?dist}
Summary: Set of low level Java HTTP transport components for HTTP services Summary: Set of low level Java HTTP transport components for HTTP services
Version: 4.4.12 License: Apache-2.0
Release: 3%{?dist}
License: ASL 2.0
URL: http://hc.apache.org/ URL: http://hc.apache.org/
Source0: http://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz
Patch0: 0001-Port-to-mockito-2.patch
BuildArch: noarch BuildArch: noarch
ExclusiveArch: %{java_arches} noarch
BuildRequires: maven-local-openjdk8 Source0: https://repo1.maven.org/maven2/org/apache/httpcomponents/httpcomponents-core/%{version}/httpcomponents-core-%{version}-source-release.zip
Patch: 0001-Port-to-mockito-2.patch
Patch: 0002-Port-to-Mockito-5.patch
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: maven-local
BuildRequires: mvn(commons-logging:commons-logging) BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit) BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpcomponents-parent:pom:) BuildRequires: mvn(org.apache.httpcomponents:httpcomponents-parent:pom:)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.mockito:mockito-core)
%endif
%description %description
HttpCore is a set of low level HTTP transport components that can be HttpCore is a set of low level HTTP transport components that can be
@ -30,22 +39,30 @@ appropriate for high latency scenarios where raw data throughput is
less important than the ability to handle thousands of simultaneous less important than the ability to handle thousands of simultaneous
HTTP connections in a resource efficient manner. HTTP connections in a resource efficient manner.
%{?module_package} %package javadoc
%{?javadoc_package} Summary: API documentation for %{name}
%description javadoc
API documentation for %{name}.
%prep %prep
%setup -q %autosetup -p1
%patch0 -p1
# Random test failures on ARM -- 100 ms sleep is not eneough on this # Tests failing without networking
# very performant arch, lets make it 2 s sed -i '/testHttpsCreateConnection/i@org.junit.Ignore' httpcore/src/test/java/org/apache/http/impl/pool/TestBasicConnPool.java
sed -i '/Thread.sleep/s/100/2000/' httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncHandlers.java
# Tests failing with Java 17
sed -i '/testAwaitInputInBuffer\|testAwaitInputInSocket\|testNotStaleWhenHasData\|testWriteSmallFragmentBuffering\|testWriteSmallFragmentNoBuffering/i@org.junit.Ignore' httpcore/src/test/java/org/apache/http/impl/{TestBHttpConnectionBase,io/TestSessionInOutBuffers}.java
%pom_remove_plugin :maven-checkstyle-plugin %pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :apache-rat-plugin %pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-javadoc-plugin
# We don't have conscrypt for testing
%pom_remove_dep :conscrypt-openjdk-uber httpcore-nio
rm httpcore-nio/src/test/java/org/apache/http/nio/integration/TestJSSEProviderIntegration.java
# we don't need these artifacts right now # we don't need these artifacts right now
%pom_disable_module httpcore-osgi %pom_disable_module httpcore-osgi
%pom_disable_module httpcore-ab %pom_disable_module httpcore-ab
@ -75,20 +92,99 @@ done
# several other packages expect to find the JARs there # several other packages expect to find the JARs there
%mvn_file ":{*}" httpcomponents/@1 %mvn_file ":{*}" httpcomponents/@1
# tests fail with OpenJDK 21 due to mocking of sealed classes
sed -i '/testRequestTargetHostFallback()/i@org.junit.Ignore' httpcore/src/test/java/org/apache/http/protocol/TestStandardInterceptors.java
rm httpcore-nio/src/test/java/org/apache/http/impl/nio/TestContentChannel.java
%build %build
%mvn_build %mvn_build -- -Dmaven.compiler.release=8
%install %install
%mvn_install %mvn_install
%files -n %{?module_prefix}%{name} -f .mfiles %files -f .mfiles
%license LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%doc README.txt RELEASE_NOTES.txt %doc README.txt RELEASE_NOTES.txt
%files javadoc -f .mfiles-javadoc
%changelog %changelog
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.12-3 * Tue Dec 10 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.16-18
- Disable tests failing without networking
* Fri Nov 29 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.16-17
- Update javapackages test plan to f42
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.16-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
* Tue Feb 27 2024 Jiri Vanek <jvanek@redhat.com> - 4.4.16-8
- Rebuilt for java-21-openjdk as system jdk
* Tue Feb 20 2024 Marian Koncek <mkoncek@redhat.com> - 4.4.16-7
- Port to OpenJDK 21
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.16-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.16-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Tue Dec 12 2023 Marian Koncek <mkoncek@redhat.com> - 4.4.16-4
- Port to Mockito 5
* Wed Sep 20 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.16-3
- Rebuild to regenerate auto-Requires on java
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.16-2
- Convert License tag to SPDX format
* Wed Aug 16 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.16-1
- Update to upstream version 4.4.16
* Tue Aug 15 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.13-10
- Build with default JDK 17
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.13-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.13-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.13-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 4.4.13-6
- Rebuilt for java-17-openjdk as system jdk
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.13-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.13-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.13-3
- Bootstrap build
- Non-bootstrap build
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.12-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.12-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 4.4.12-3
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.13-2
- Build with OpenJDK 8 - Build with OpenJDK 8
* Wed Jan 22 2020 Marian Koncek <mkoncek@redhat.com> - 4.4.13-1
- Update to upstream version 4.4.13
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.12-2 * Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.4.12-2
- Mass rebuild for javapackages-tools 201902 - Mass rebuild for javapackages-tools 201902

7
plans/javapackages.fmf Normal file
View File

@ -0,0 +1,7 @@
summary: Run javapackages-specific tests
discover:
how: fmf
url: https://src.fedoraproject.org/tests/javapackages
ref: c9s
execute:
how: tmt

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (httpcomponents-core-4.4.16-source-release.zip) = 110dd58dae9821c7e942e65655a58e2cd40279e96971067ec224d8314354c822a91e88848d46a3937534fca556859f888b230cd8ddf0150e5d6bbdc0eb5f2bbd