7ca604
Name:           guava
7ca604
Version:        28.1
7ca604
Release:        3%{?dist}
7ca604
Summary:        Google Core Libraries for Java
7ca604
# Most of the code is under ASL 2.0
7ca604
# Few classes are under CC0, grep for creativecommons
7ca604
License:        ASL 2.0 and CC0
7ca604
URL:            https://github.com/google/guava
7ca604
BuildArch:      noarch
7ca604
7ca604
Source0:        https://github.com/google/guava/archive/v%{version}.tar.gz
7ca604
7ca604
BuildRequires:  maven-local-openjdk8
7ca604
BuildRequires:  %{?module_prefix}mvn(com.google.code.findbugs:jsr305)
7ca604
BuildRequires:  mvn(junit:junit)
7ca604
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
7ca604
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
7ca604
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
7ca604
7ca604
%description
7ca604
Guava is a suite of core and expanded libraries that include
7ca604
utility classes, Google’s collections, io classes, and much
7ca604
much more.
7ca604
This project is a complete packaging of all the Guava libraries
7ca604
into a single jar.  Individual portions of Guava can be used
7ca604
by downloading the appropriate module and its dependencies.
7ca604
7ca604
%{?module_package}
7ca604
%{?javadoc_package}
7ca604
7ca604
%package testlib
7ca604
Summary:        The guava-testlib artifact
7ca604
7ca604
%description testlib
7ca604
guava-testlib provides additional functionality for conveninent unit testing
7ca604
7ca604
%prep
7ca604
%setup -q
7ca604
7ca604
find . -name '*.jar' -delete
7ca604
7ca604
%pom_disable_module guava-gwt
7ca604
%pom_disable_module guava-tests
7ca604
7ca604
%pom_remove_plugin -r :animal-sniffer-maven-plugin
7ca604
# Downloads JDK source for doc generation
7ca604
%pom_remove_plugin :maven-dependency-plugin guava
7ca604
7ca604
%pom_remove_dep :caliper guava-tests
7ca604
7ca604
%mvn_package :guava-parent guava
7ca604
7ca604
# javadoc generation fails due to strict doclint in JDK 1.8.0_45
7ca604
%pom_remove_plugin -r :maven-javadoc-plugin
7ca604
7ca604
%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>" guava/pom.xml
7ca604
7ca604
%pom_remove_dep -r :animal-sniffer-annotations
7ca604
%pom_remove_dep -r :error_prone_annotations
7ca604
%pom_remove_dep -r :j2objc-annotations
7ca604
%pom_remove_dep -r org.checkerframework:
7ca604
%pom_remove_dep -r :listenablefuture
7ca604
7ca604
annotations=$(
7ca604
    find -name '*.java' \
7ca604
    | xargs fgrep -h \
7ca604
        -e 'import com.google.j2objc.annotations' \
7ca604
        -e 'import com.google.errorprone.annotation' \
7ca604
        -e 'import org.codehaus.mojo.animal_sniffer' \
7ca604
        -e 'import org.checkerframework' \
7ca604
    | sort -u \
7ca604
    | sed 's/.*\.\([^.]*\);/\1/' \
7ca604
    | paste -sd\|
7ca604
)
7ca604
# guava started using quite a few annotation libraries for code quality, which
7ca604
# we don't have. This ugly regex is supposed to remove their usage from the code
7ca604
find -name '*.java' | xargs sed -ri \
7ca604
    "s/^import .*\.($annotations);//;s/@($annotations)"'\>\s*(\((("[^"]*")|([^)]*))\))?//g'
7ca604
7ca604
%mvn_package "com.google.guava:failureaccess" guava
7ca604
7ca604
%pom_xpath_inject pom:modules \
7ca604
"<module>futures/failureaccess</module>"
7ca604
7ca604
%mvn_package "com.google.guava:guava-bom" __noinstall
7ca604
7ca604
%build
7ca604
# Tests fail on Koji due to insufficient memory,
7ca604
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332971
7ca604
%mvn_build -s -f
7ca604
7ca604
%install
7ca604
%mvn_install
7ca604
7ca604
%files -n %{?module_prefix}%{name} -f .mfiles-guava
7ca604
%doc CONTRIBUTORS README*
7ca604
%license COPYING
7ca604
7ca604
%files testlib -f .mfiles-guava-testlib
7ca604
7ca604
%changelog
7ca604
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 28.1-3
7ca604
- Build with OpenJDK 8
7ca604
7ca604
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 28.1-2
7ca604
- Mass rebuild for javapackages-tools 201902
7ca604
7ca604
* Mon Sep 02 2019 Marian Koncek <mkoncek@redhat.com> - 28.1-1
7ca604
- Update to upstream version 28.1
7ca604
7ca604
* Thu Aug 01 2019 Marian Koncek <mkoncek@redhat.com> - 28.0-1
7ca604
- Update to upstream version 28.0
7ca604
7ca604
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 25.0-4
7ca604
- Mass rebuild for javapackages-tools 201901
7ca604
7ca604
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 25.0-3
7ca604
- Fix license tag to include CC0
7ca604
7ca604
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-2
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7ca604
7ca604
* Wed May 02 2018 Michael Simacek <msimacek@redhat.com> - 25.0-1
7ca604
- Update to upstream version 25.0
7ca604
7ca604
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 24.0-2
7ca604
- Escape macros in %%changelog
7ca604
7ca604
* Mon Feb 05 2018 Michael Simacek <msimacek@redhat.com> - 24.0-1
7ca604
- Update to upstream version 24.0
7ca604
7ca604
* Mon Nov 06 2017 Michael Simacek <msimacek@redhat.com> - 20.0-1
7ca604
- Update to upstream version 20.0
7ca604
7ca604
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-11
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7ca604
7ca604
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-10
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
7ca604
7ca604
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-9
7ca604
- Allow conditional builds without testlib
7ca604
7ca604
* Thu Jun 16 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-8
7ca604
- Cleanup package
7ca604
7ca604
* Tue May 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-7
7ca604
- Disable tests due to insufficient memory on Koji
7ca604
7ca604
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-6
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
7ca604
7ca604
* Wed Jun 22 2015 Noa Resare <noa@resare.com> - 18.0-5
7ca604
- enable module guava-testlib
7ca604
- enable tests in guava-testlib
7ca604
- backport fix to HashMap related test from 19.0-SNAPSHOT
7ca604
7ca604
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 18.0-4
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7ca604
7ca604
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-3
7ca604
- Remove maven-javadoc-plugin execution
7ca604
7ca604
* Fri Feb  6 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-2
7ca604
- Update upstream website URL
7ca604
7ca604
* Wed Jan  7 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 18.0-1
7ca604
- Update to v. 18 (#1175401)
7ca604
- Use %%license
7ca604
7ca604
* Wed Oct  8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17.0-2
7ca604
- Add alias for com.google.guava:guava-jdk5
7ca604
7ca604
* Fri Jun 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17.0-1
7ca604
- Add patch for Java 8
7ca604
7ca604
* Tue Jun 17 2014 Roland Grunberg <rgrunber@redhat.com> - 15.0-4
7ca604
- Do not generate uses directive for exports.
7ca604
7ca604
* Fri Jun 13 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 17.0-1
7ca604
- Update to latest upstream version (#1109442).
7ca604
7ca604
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.0-3
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7ca604
7ca604
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 15.0-2
7ca604
- Use Requires: java-headless rebuild (#1067528)
7ca604
7ca604
* Wed Jan  8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 15.0-1
7ca604
- Update to upstream version 15.0
7ca604
7ca604
* Mon Aug 12 2013 gil cattaneo <puntogil@libero.it> 13.0-6
7ca604
- fix rhbz#992456
7ca604
- update to current packaging guidelines
7ca604
7ca604
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0-5
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7ca604
7ca604
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-4
7ca604
- Replace BR on ant-nodeps with ant
7ca604
7ca604
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-4
7ca604
- Rebuild to regenerate API documentation
7ca604
7ca604
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0-3
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7ca604
7ca604
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 13.0-2
7ca604
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
7ca604
- Replace maven BuildRequires with maven-local
7ca604
7ca604
* Tue Aug  7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-1
7ca604
- Update to upstream version 13.0
7ca604
- Remove RPM bug workaround
7ca604
- Convert patches to pom macros
7ca604
7ca604
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.0.2-2
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7ca604
7ca604
* Sat Apr 28 2012 gil cattaneo <puntogil@libero.it> 11.0.2-1
7ca604
- Update to 11.0.2
7ca604
7ca604
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 09-2
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
7ca604
7ca604
* Mon Sep 12 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 09-1
7ca604
- Update to 09
7ca604
- Packaging fixes
7ca604
- Build with maven
7ca604
7ca604
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 05-5
7ca604
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
7ca604
7ca604
* Wed Jul 14 2010 Hui wang <huwang@redhat.com> - 05-4
7ca604
- Patch pom
7ca604
7ca604
* Fri Jun 18 2010 Hui Wang <huwang@redhat.com> - 05-3
7ca604
- Fixed jar name in install section
7ca604
- Removed spaces in description
7ca604
7ca604
* Thu Jun 17 2010 Hui Wang <huwang@redhat.com> - 05-2
7ca604
- Fixed summary
7ca604
- Fixed description
7ca604
- Fixed creating symlink insturctions
7ca604
- add depmap
7ca604
7ca604
* Thu Jun 10 2010 Hui Wang <huwang@redhat.com> - 05-1
7ca604
- Initial version of the package