From 70c64c885a02048d165e5e6bcf343b5ea1b1658a Mon Sep 17 00:00:00 2001 From: eabdullin Date: Wed, 14 May 2025 14:57:54 +0000 Subject: [PATCH] import UBI guava-32.1.3-6.el10 --- .gitignore | 2 +- .guava.metadata | 1 - SPECS/guava.spec => guava.spec | 156 ++++++++++++++++++++++++++------- sources | 1 + 4 files changed, 128 insertions(+), 32 deletions(-) delete mode 100644 .guava.metadata rename SPECS/guava.spec => guava.spec (60%) create mode 100644 sources diff --git a/.gitignore b/.gitignore index f21a349..74c4354 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1 @@ -SOURCES/v28.1.tar.gz +guava-32.1.3.tar.gz diff --git a/.guava.metadata b/.guava.metadata deleted file mode 100644 index 86a9275..0000000 --- a/.guava.metadata +++ /dev/null @@ -1 +0,0 @@ -adc45c534dcb7ee494893b5b8e38c92dd31f6250 SOURCES/v28.1.tar.gz diff --git a/SPECS/guava.spec b/guava.spec similarity index 60% rename from SPECS/guava.spec rename to guava.spec index 479243c..09d2506 100644 --- a/SPECS/guava.spec +++ b/guava.spec @@ -1,21 +1,28 @@ +%bcond_with bootstrap + Name: guava -Version: 28.1 -Release: 3%{?dist} +Version: 32.1.3 +Release: 6%{?dist} Summary: Google Core Libraries for Java # Most of the code is under ASL 2.0 # Few classes are under CC0, grep for creativecommons -License: ASL 2.0 and CC0 +License: Apache-2.0 AND CC0-1.0 URL: https://github.com/google/guava BuildArch: noarch +ExclusiveArch: %{java_arches} noarch -Source0: https://github.com/google/guava/archive/v%{version}.tar.gz +Source0: https://github.com/google/guava/archive/v%{version}/guava-%{version}.tar.gz -BuildRequires: maven-local-openjdk8 -BuildRequires: %{?module_prefix}mvn(com.google.code.findbugs:jsr305) +%if %{with bootstrap} +BuildRequires: javapackages-bootstrap +%else +BuildRequires: maven-local +BuildRequires: mvn(com.google.code.findbugs:jsr305) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) -BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +%endif +BuildRequires: jurand %description Guava is a suite of core and expanded libraries that include @@ -25,7 +32,6 @@ This project is a complete packaging of all the Guava libraries into a single jar. Individual portions of Guava can be used by downloading the appropriate module and its dependencies. -%{?module_package} %{?javadoc_package} %package testlib @@ -39,9 +45,15 @@ guava-testlib provides additional functionality for conveninent unit testing find . -name '*.jar' -delete +%pom_remove_parent guava-bom + %pom_disable_module guava-gwt %pom_disable_module guava-tests +%pom_xpath_inject pom:modules "futures/failureaccess" +%pom_xpath_inject pom:parent "../.." futures/failureaccess +%pom_xpath_set pom:parent/pom:version %{version}-jre futures/failureaccess + %pom_remove_plugin -r :animal-sniffer-maven-plugin # Downloads JDK source for doc generation %pom_remove_plugin :maven-dependency-plugin guava @@ -53,35 +65,26 @@ find . -name '*.jar' -delete # javadoc generation fails due to strict doclint in JDK 1.8.0_45 %pom_remove_plugin -r :maven-javadoc-plugin +%pom_remove_plugin -r :build-helper-maven-plugin + %pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true" guava/pom.xml -%pom_remove_dep -r :animal-sniffer-annotations +# missing error_prone_core artifact +%pom_xpath_remove pom:annotationProcessorPaths + %pom_remove_dep -r :error_prone_annotations %pom_remove_dep -r :j2objc-annotations %pom_remove_dep -r org.checkerframework: %pom_remove_dep -r :listenablefuture -annotations=$( - find -name '*.java' \ - | xargs fgrep -h \ - -e 'import com.google.j2objc.annotations' \ - -e 'import com.google.errorprone.annotation' \ - -e 'import org.codehaus.mojo.animal_sniffer' \ - -e 'import org.checkerframework' \ - | sort -u \ - | sed 's/.*\.\([^.]*\);/\1/' \ - | paste -sd\| -) -# guava started using quite a few annotation libraries for code quality, which -# we don't have. This ugly regex is supposed to remove their usage from the code -find -name '*.java' | xargs sed -ri \ - "s/^import .*\.($annotations);//;s/@($annotations)"'\>\s*(\((("[^"]*")|([^)]*))\))?//g' +%java_remove_annotations guava guava-testlib -s \ + -p org[.]checkerframework[.] \ + -p com[.]google[.]common[.]annotations[.] \ + -p com[.]google[.]errorprone[.]annotations[.] \ + -p com[.]google[.]j2objc[.]annotations[.] \ %mvn_package "com.google.guava:failureaccess" guava -%pom_xpath_inject pom:modules \ -"futures/failureaccess" - %mvn_package "com.google.guava:guava-bom" __noinstall %build @@ -92,16 +95,102 @@ find -name '*.java' | xargs sed -ri \ %install %mvn_install -%files -n %{?module_prefix}%{name} -f .mfiles-guava +%files -f .mfiles-guava %doc CONTRIBUTORS README* -%license COPYING +%license LICENSE %files testlib -f .mfiles-guava-testlib %changelog -* Sat Jan 25 2020 Mikolaj Izdebski - 28.1-3 +* Tue Oct 29 2024 Troy Dawson - 32.1.3-6 +- Bump release for October 2024 mass rebuild: + Resolves: RHEL-64018 + +* Thu Aug 01 2024 Troy Dawson - 32.1.3-5 +- Bump release for Aug 2024 java mass rebuild + +* Mon Jun 24 2024 Troy Dawson - 32.1.3-4 +- Bump release for June 2024 mass rebuild + +* Wed Jan 24 2024 Fedora Release Engineering - 32.1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Jan 20 2024 Fedora Release Engineering - 32.1.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Tue Nov 21 2023 Marian Koncek - 32.1.3-1 +- Update to upstream version 32.1.3 + +* Wed Sep 20 2023 Mikolaj Izdebski - 31.1-8 +- Rebuild to regenerate auto-Requires on java + +* Fri Sep 01 2023 Mikolaj Izdebski - 31.1-7 +- Convert License tag to SPDX format + +* Wed Aug 30 2023 Mikolaj Izdebski - 31.1-6 +- Build with Jurand instead of deprecated javapackages-extra + +* Tue Aug 15 2023 Mikolaj Izdebski - 31.1-5 +- Build with default JDK 17 + +* Thu Jul 20 2023 Fedora Release Engineering - 31.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Mar 08 2023 Mikolaj Izdebski - 31.1-3 +- Port to Jurand 1.1.0 + +* Thu Jan 19 2023 Fedora Release Engineering - 31.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Sep 08 2022 Marian Koncek - 31.1-1 +- Update to upstream version 31.1 + +* Thu Jul 21 2022 Fedora Release Engineering - 31.0.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Sat Feb 05 2022 Jiri Vanek - 31.0.1-3 +- Rebuilt for java-17-openjdk as system jdk + +* Thu Jan 20 2022 Fedora Release Engineering - 31.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Thu Oct 14 2021 Orion Poplawski - 31.0.1-1 +- Update to 31.0.1 + +* Thu Jul 22 2021 Fedora Release Engineering - 30.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Mon May 17 2021 Mikolaj Izdebski - 30.1-2 +- Bootstrap build +- Non-bootstrap build + +* Tue Jan 26 2021 Fedora Release Engineering - 25.0-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jan 26 2021 Marian Koncek - 30.1-1 +- Update to upstream version 30.1 + +* Fri Sep 18 2020 Marian Koncek - 29.0-1 +- Update to upstream version 29.0 + +* Tue Jul 28 2020 Fedora Release Engineering - 25.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Jiri Vanek - 25.0-8 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Wed Feb 19 2020 Fabio Valentini - 25.0-7 +- Drop unnecessary dependency on parent POM. + +* Wed Jan 29 2020 Fedora Release Engineering - 25.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Sat Jan 25 2020 Mikolaj Izdebski - 28.2-2 - Build with OpenJDK 8 +* Fri Jan 24 2020 Marian Koncek - 28.2-1 +- Update to upstream version 28.2 + * Tue Nov 05 2019 Mikolaj Izdebski - 28.1-2 - Mass rebuild for javapackages-tools 201902 @@ -111,9 +200,15 @@ find -name '*.java' | xargs sed -ri \ * Thu Aug 01 2019 Marian Koncek - 28.0-1 - Update to upstream version 28.0 +* Thu Jul 25 2019 Fedora Release Engineering - 25.0-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Fri May 24 2019 Mikolaj Izdebski - 25.0-4 - Mass rebuild for javapackages-tools 201901 +* Fri Feb 01 2019 Fedora Release Engineering - 25.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Fri Aug 03 2018 Michael Simacek - 25.0-3 - Fix license tag to include CC0 @@ -201,6 +296,7 @@ find -name '*.java' | xargs sed -ri \ * Fri Jun 28 2013 Mikolaj Izdebski - 13.0-4 - Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 * Thu Feb 14 2013 Fedora Release Engineering - 13.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources new file mode 100644 index 0000000..835a1a3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (guava-32.1.3.tar.gz) = 8efd8072e0aafaa851e18a69af011cbaeba207a7ee2dbe2daee9f70729c1c785d054197e6bf032d30065245070088f9f2d7f1a01f244b00325a3ede9d00fb9ec