From 99bc6afce68f1d4d5321aac47dad34f55eeedf7839f3c98670bdbd2dc9ae9249 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 29 Sep 2023 13:23:45 +0000 Subject: [PATCH 1/2] Accepting request 1114365 from Java:packages:test javapackages >= 6 OBS-URL: https://build.opensuse.org/request/show/1114365 OBS-URL: https://build.opensuse.org/package/show/Java:packages/httpcomponents-core?expand=0&rev=12 --- httpcomponents-core.spec | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/httpcomponents-core.spec b/httpcomponents-core.spec index 36e94f0..9a56331 100644 --- a/httpcomponents-core.spec +++ b/httpcomponents-core.spec @@ -29,7 +29,7 @@ Source1: %{name}-build.tar.xz Patch0: %{name}-java8compat.patch BuildRequires: ant BuildRequires: fdupes -BuildRequires: javapackages-local +BuildRequires: javapackages-local >= 6 BuildArch: noarch %if %{with tests} BuildRequires: ant-junit @@ -101,19 +101,6 @@ for module in httpcore httpcore-nio; do " $module done -for module in httpcore httpcore-nio; do - %pom_xpath_inject "pom:project" " - org.apache.httpcomponents - %{version}" $module - %pom_remove_parent $module - # adds version "any" if none is specified - %pom_change_dep ::::: ::::: $module -done - -# install JARs to httpcomponents/ for compatibility reasons -# several other packages expect to find the JARs there -%{mvn_file} ":{*}" httpcomponents/@1 - %build mkdir -p lib %if %{with tests} @@ -134,7 +121,7 @@ done # pom install -dm 0755 %{buildroot}%{_mavenpomdir}/httpcomponents for module in httpcore httpcore-nio; do - install -pm 0644 ${module}/pom.xml %{buildroot}%{_mavenpomdir}/httpcomponents/${module}.pom + %{mvn_install_pom} ${module}/pom.xml %{buildroot}%{_mavenpomdir}/httpcomponents/${module}.pom %add_maven_depmap httpcomponents/${module}.pom httpcomponents/${module}.jar done # javadoc From 923413049020ba490497b3577deebec72391148b5fa08fc88ab49c57a1aa7e8a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 20 Feb 2024 14:37:16 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/httpcomponents-core?expand=0&rev=13 --- httpcomponents-core.changes | 5 +++++ httpcomponents-core.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/httpcomponents-core.changes b/httpcomponents-core.changes index 637ccb8..d8ac6c2 100644 --- a/httpcomponents-core.changes +++ b/httpcomponents-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 20 14:37:08 UTC 2024 - Fridrich Strba + +- Use %patch -P N instead of deprecated %patchN. + ------------------------------------------------------------------- Sat Mar 19 07:24:19 UTC 2022 - Fridrich Strba diff --git a/httpcomponents-core.spec b/httpcomponents-core.spec index 9a56331..937e33a 100644 --- a/httpcomponents-core.spec +++ b/httpcomponents-core.spec @@ -1,7 +1,7 @@ # # spec file for package httpcomponents-core # -# Copyright (c) 2022 SUSE LLC +# 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 @@ -65,7 +65,7 @@ Group: Development/Libraries/Java %prep %setup -q -a1 -%patch0 -p1 +%patch -P 0 -p1 # Random test failures on ARM -- 100 ms sleep is not eneough on this # very performant arch, lets make it 2 s