|
|
@ -1,28 +1,21 @@
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: guava
|
|
|
|
Name: guava
|
|
|
|
Version: 33.3.0
|
|
|
|
Version: 28.1
|
|
|
|
Release: 5%{?dist}
|
|
|
|
Release: 3%{?dist}
|
|
|
|
Summary: Google Core Libraries for Java
|
|
|
|
Summary: Google Core Libraries for Java
|
|
|
|
# Most of the code is under Apache-2.0
|
|
|
|
# Most of the code is under ASL 2.0
|
|
|
|
# Few classes are under CC0-1.0 grep for creativecommons
|
|
|
|
# Few classes are under CC0, grep for creativecommons
|
|
|
|
License: Apache-2.0 AND CC0-1.0
|
|
|
|
License: ASL 2.0 and CC0
|
|
|
|
URL: https://github.com/google/guava
|
|
|
|
URL: https://github.com/google/guava
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildArch: noarch
|
|
|
|
ExclusiveArch: %{java_arches} noarch
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/google/guava/archive/v%{version}/guava-%{version}.tar.gz
|
|
|
|
Source0: https://github.com/google/guava/archive/v%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
BuildRequires: jurand
|
|
|
|
BuildRequires: maven-local-openjdk8
|
|
|
|
%if %{with bootstrap}
|
|
|
|
BuildRequires: %{?module_prefix}mvn(com.google.code.findbugs:jsr305)
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
|
|
|
%else
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
|
|
|
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
|
|
|
|
|
|
|
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.maven.plugins:maven-enforcer-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
|
|
|
|
%endif
|
|
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
%description
|
|
|
|
Guava is a suite of core and expanded libraries that include
|
|
|
|
Guava is a suite of core and expanded libraries that include
|
|
|
@ -32,11 +25,8 @@ This project is a complete packaging of all the Guava libraries
|
|
|
|
into a single jar. Individual portions of Guava can be used
|
|
|
|
into a single jar. Individual portions of Guava can be used
|
|
|
|
by downloading the appropriate module and its dependencies.
|
|
|
|
by downloading the appropriate module and its dependencies.
|
|
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
%{?module_package}
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
%{?javadoc_package}
|
|
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package testlib
|
|
|
|
%package testlib
|
|
|
|
Summary: The guava-testlib artifact
|
|
|
|
Summary: The guava-testlib artifact
|
|
|
@ -45,25 +35,16 @@ Summary: The guava-testlib artifact
|
|
|
|
guava-testlib provides additional functionality for conveninent unit testing
|
|
|
|
guava-testlib provides additional functionality for conveninent unit testing
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
|
|
find . -name '*.jar' -delete
|
|
|
|
find . -name '*.jar' -delete
|
|
|
|
|
|
|
|
|
|
|
|
%pom_remove_parent guava-bom
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pom_disable_module guava-gwt
|
|
|
|
%pom_disable_module guava-gwt
|
|
|
|
%pom_disable_module guava-tests
|
|
|
|
%pom_disable_module guava-tests
|
|
|
|
|
|
|
|
|
|
|
|
%pom_xpath_inject pom:modules "<module>futures/failureaccess</module>"
|
|
|
|
|
|
|
|
%pom_xpath_inject pom:parent "<relativePath>../..</relativePath>" futures/failureaccess
|
|
|
|
|
|
|
|
%pom_xpath_set pom:parent/pom:version %{version}-jre futures/failureaccess
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pom_remove_plugin -r :animal-sniffer-maven-plugin
|
|
|
|
%pom_remove_plugin -r :animal-sniffer-maven-plugin
|
|
|
|
%pom_remove_plugin -r :maven-source-plugin
|
|
|
|
# Downloads JDK source for doc generation
|
|
|
|
|
|
|
|
%pom_remove_plugin :maven-dependency-plugin guava
|
|
|
|
%pom_remove_plugin -r :toolchains-maven-plugin
|
|
|
|
|
|
|
|
%pom_remove_plugin -r :maven-toolchains-plugin
|
|
|
|
|
|
|
|
%pom_xpath_remove pom:jdkToolchain
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pom_remove_dep :caliper guava-tests
|
|
|
|
%pom_remove_dep :caliper guava-tests
|
|
|
|
|
|
|
|
|
|
|
@ -72,27 +53,35 @@ find . -name '*.jar' -delete
|
|
|
|
# javadoc generation fails due to strict doclint in JDK 1.8.0_45
|
|
|
|
# javadoc generation fails due to strict doclint in JDK 1.8.0_45
|
|
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
|
|
|
%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</_nouses>" guava/pom.xml
|
|
|
|
%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>" guava/pom.xml
|
|
|
|
|
|
|
|
|
|
|
|
# missing error_prone_core artifact
|
|
|
|
%pom_remove_dep -r :animal-sniffer-annotations
|
|
|
|
%pom_xpath_remove pom:annotationProcessorPaths
|
|
|
|
|
|
|
|
sed -i /Xplugin:ErrorProne/d pom.xml
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pom_remove_dep -r :error_prone_annotations
|
|
|
|
%pom_remove_dep -r :error_prone_annotations
|
|
|
|
%pom_remove_dep -r :j2objc-annotations
|
|
|
|
%pom_remove_dep -r :j2objc-annotations
|
|
|
|
%pom_remove_dep -r org.checkerframework:
|
|
|
|
%pom_remove_dep -r org.checkerframework:
|
|
|
|
%pom_remove_dep -r :listenablefuture
|
|
|
|
%pom_remove_dep -r :listenablefuture
|
|
|
|
|
|
|
|
|
|
|
|
%java_remove_annotations guava guava-testlib -s \
|
|
|
|
annotations=$(
|
|
|
|
-p org[.]checkerframework[.] \
|
|
|
|
find -name '*.java' \
|
|
|
|
-p com[.]google[.]common[.]annotations[.] \
|
|
|
|
| xargs fgrep -h \
|
|
|
|
-p com[.]google[.]errorprone[.]annotations[.] \
|
|
|
|
-e 'import com.google.j2objc.annotations' \
|
|
|
|
-p 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'
|
|
|
|
|
|
|
|
|
|
|
|
%mvn_package "com.google.guava:failureaccess" guava
|
|
|
|
%mvn_package "com.google.guava:failureaccess" guava
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%pom_xpath_inject pom:modules \
|
|
|
|
|
|
|
|
"<module>futures/failureaccess</module>"
|
|
|
|
|
|
|
|
|
|
|
|
%mvn_package "com.google.guava:guava-bom" __noinstall
|
|
|
|
%mvn_package "com.google.guava:guava-bom" __noinstall
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
@ -103,112 +92,16 @@ sed -i /Xplugin:ErrorProne/d pom.xml
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
|
|
|
|
%files -f .mfiles-guava
|
|
|
|
%files -n %{?module_prefix}%{name} -f .mfiles-guava
|
|
|
|
%doc CONTRIBUTORS README*
|
|
|
|
%doc CONTRIBUTORS README*
|
|
|
|
%license LICENSE
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files testlib -f .mfiles-guava-testlib
|
|
|
|
%files testlib -f .mfiles-guava-testlib
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
%changelog
|
|
|
|
* Fri Nov 29 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 33.3.0-3
|
|
|
|
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 28.1-3
|
|
|
|
- Update javapackages test plan to f42
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 21 2024 Mikolaj Izdebski <mizdebsk@redhat.com> - 33.3.0-1
|
|
|
|
|
|
|
|
- Update to upstream version 33.3.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 33.2.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 16 2024 Marian Koncek <mkoncek@redhat.com> - 33.2.1-1
|
|
|
|
|
|
|
|
- Update to upstream version 33.2.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Feb 27 2024 Jiri Vanek <jvanek@redhat.com> - 32.1.3-5
|
|
|
|
|
|
|
|
- Rebuilt for java-21-openjdk as system jdk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 23 2024 Jiri Vanek <jvanek@redhat.com> - 32.1.3-4
|
|
|
|
|
|
|
|
- bump of release for for java-21-openjdk as system jdk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 32.1.3-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 20 2024 Fedora Release Engineering <releng@fedoraproject.org> - 32.1.3-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 21 2023 Marian Koncek <mkoncek@redhat.com> - 32.1.3-1
|
|
|
|
|
|
|
|
- Update to upstream version 32.1.3
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Sep 20 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 31.1-8
|
|
|
|
|
|
|
|
- Rebuild to regenerate auto-Requires on java
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 01 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 31.1-7
|
|
|
|
|
|
|
|
- Convert License tag to SPDX format
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Aug 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 31.1-6
|
|
|
|
|
|
|
|
- Build with Jurand instead of deprecated javapackages-extra
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Aug 15 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 31.1-5
|
|
|
|
|
|
|
|
- Build with default JDK 17
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 31.1-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Mar 08 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 31.1-3
|
|
|
|
|
|
|
|
- Port to Jurand 1.1.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 31.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Sep 08 2022 Marian Koncek <mkoncek@redhat.com> - 31.1-1
|
|
|
|
|
|
|
|
- Update to upstream version 31.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 31.0.1-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 31.0.1-3
|
|
|
|
|
|
|
|
- Rebuilt for java-17-openjdk as system jdk
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 31.0.1-2
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Oct 14 2021 Orion Poplawski <orion@nwra.com> - 31.0.1-1
|
|
|
|
|
|
|
|
- Update to 31.0.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 30.1-3
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 30.1-2
|
|
|
|
|
|
|
|
- Bootstrap build
|
|
|
|
|
|
|
|
- Non-bootstrap build
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-10
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Marian Koncek <mkoncek@redhat.com> - 30.1-1
|
|
|
|
|
|
|
|
- Update to upstream version 30.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Sep 18 2020 Marian Koncek <mkoncek@redhat.com> - 29.0-1
|
|
|
|
|
|
|
|
- Update to upstream version 29.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-9
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 25.0-8
|
|
|
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Feb 19 2020 Fabio Valentini <decathorpe@gmail.com> - 25.0-7
|
|
|
|
|
|
|
|
- Drop unnecessary dependency on parent POM.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-6
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 28.2-2
|
|
|
|
|
|
|
|
- Build with OpenJDK 8
|
|
|
|
- Build with OpenJDK 8
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jan 24 2020 Marian Koncek <mkoncek@redhat.com> - 28.2-1
|
|
|
|
|
|
|
|
- Update to upstream version 28.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 28.1-2
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 28.1-2
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
|
|
|
|
|
|
@ -218,15 +111,9 @@ sed -i /Xplugin:ErrorProne/d pom.xml
|
|
|
|
* Thu Aug 01 2019 Marian Koncek <mkoncek@redhat.com> - 28.0-1
|
|
|
|
* Thu Aug 01 2019 Marian Koncek <mkoncek@redhat.com> - 28.0-1
|
|
|
|
- Update to upstream version 28.0
|
|
|
|
- Update to upstream version 28.0
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-5
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 25.0-4
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 25.0-4
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-4
|
|
|
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 25.0-3
|
|
|
|
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 25.0-3
|
|
|
|
- Fix license tag to include CC0
|
|
|
|
- Fix license tag to include CC0
|
|
|
|
|
|
|
|
|
|
|
@ -314,7 +201,6 @@ sed -i /Xplugin:ErrorProne/d pom.xml
|
|
|
|
|
|
|
|
|
|
|
|
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-4
|
|
|
|
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-4
|
|
|
|
- Rebuild to regenerate API documentation
|
|
|
|
- Rebuild to regenerate API documentation
|
|
|
|
- Resolves: CVE-2013-1571
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0-3
|
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|