From 9bc1358658376ad529291c5c98af2df15675212bc9241aeb6d10b001b9f47afd Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 29 Sep 2023 13:19:33 +0000 Subject: [PATCH] Accepting request 1114362 from Java:packages:test simplify OBS-URL: https://build.opensuse.org/request/show/1114362 OBS-URL: https://build.opensuse.org/package/show/Java:packages/guava?expand=0&rev=27 --- guava.spec | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/guava.spec b/guava.spec index 7f77915..8ab71a9 100644 --- a/guava.spec +++ b/guava.spec @@ -30,10 +30,9 @@ BuildRequires: checker-qual BuildRequires: fdupes BuildRequires: google-errorprone-annotations BuildRequires: j2objc-annotations -BuildRequires: javapackages-local +BuildRequires: javapackages-local >= 6 BuildRequires: jsr-305 BuildRequires: junit -Requires: mvn(com.google.code.findbugs:jsr305) BuildArch: noarch %description @@ -54,7 +53,6 @@ API documentation for %{name}. %package testlib Summary: The guava-testlib artifact Group: Development/Libraries/Java -Requires: mvn(junit:junit) %description testlib guava-testlib provides additional functionality for conveninent unit testing @@ -76,19 +74,10 @@ find . -name '*.jar' -delete %pom_remove_dep -r :listenablefuture %pom_remove_dep -r :failureaccess -for mod in guava guava-testlib futures/failureaccess; do - %pom_remove_parent ${mod} - %pom_xpath_inject pom:project ' - com.google.guava - %{version}' ${mod} -done - %pom_change_dep -r :error_prone_annotations :::provided %pom_change_dep -r :j2objc-annotations :::provided %pom_change_dep -r org.checkerframework: :::provided -%pom_change_dep -r -f :::: :::: - %build mkdir -p lib build-jar-repository -s lib junit jsr-305 google-errorprone/annotations checker-qual j2objc-annotations @@ -102,12 +91,12 @@ install -pm 0644 %{name}-testlib/target/%{name}-testlib-%{version}*.jar %{buildr # poms install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} -install -pm 0644 %{name}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom +%mvn_install_pom %{name}/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom %add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar # We integrated this artifact in our main package -install -pm 0644 futures/failureaccess/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/failureaccess.pom +%mvn_install_pom futures/failureaccess/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/failureaccess.pom %add_maven_depmap %{name}/failureaccess.pom %{name}/%{name}.jar -install -pm 0644 %{name}-testlib/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-testlib.pom +%mvn_install_pom %{name}-testlib/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}-testlib.pom %add_maven_depmap %{name}/%{name}-testlib.pom %{name}/%{name}-testlib.jar -f %{name}-testlib # javadoc