2016-06-16 08:55:01 +00:00
|
|
|
|
Name: guava
|
2017-11-10 09:11:45 +00:00
|
|
|
|
Version: 20.0
|
|
|
|
|
Release: 1%{?dist}
|
2016-06-16 08:55:01 +00:00
|
|
|
|
Summary: Google Core Libraries for Java
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://github.com/google/guava
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/google/guava/archive/v%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
2017-11-10 09:11:45 +00:00
|
|
|
|
BuildRequires: mvn(com.google.guava:guava)
|
|
|
|
|
BuildRequires: mvn(junit:junit)
|
2016-06-16 08:55:01 +00:00
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
2017-11-10 09:11:45 +00:00
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
2016-06-16 08:55:01 +00:00
|
|
|
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
2015-01-07 04:32:42 +00:00
|
|
|
|
|
2010-06-21 03:28:16 +00:00
|
|
|
|
%description
|
2014-06-14 00:16:40 +00:00
|
|
|
|
Guava is a suite of core and expanded libraries that include
|
|
|
|
|
utility classes, Google’s collections, io classes, and much
|
2010-06-21 03:28:16 +00:00
|
|
|
|
much more.
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
2015-06-03 21:47:41 +00:00
|
|
|
|
%package testlib
|
2017-11-10 09:11:45 +00:00
|
|
|
|
Summary: The guava-testlib artifact
|
2015-06-03 21:47:41 +00:00
|
|
|
|
|
|
|
|
|
%description testlib
|
2017-11-10 09:11:45 +00:00
|
|
|
|
guava-testlib provides additional functionality for conveninent unit testing
|
2015-06-03 21:47:41 +00:00
|
|
|
|
|
2010-06-21 03:28:16 +00:00
|
|
|
|
%prep
|
2015-01-07 04:32:42 +00:00
|
|
|
|
%setup -q
|
2017-11-10 09:11:45 +00:00
|
|
|
|
|
2012-05-08 09:08:31 +00:00
|
|
|
|
find . -name '*.jar' -delete
|
2010-06-21 03:28:16 +00:00
|
|
|
|
|
2012-08-07 17:09:13 +00:00
|
|
|
|
%pom_disable_module guava-gwt
|
2015-06-03 21:47:41 +00:00
|
|
|
|
%pom_remove_plugin -r :animal-sniffer-maven-plugin
|
2013-08-12 13:22:40 +00:00
|
|
|
|
%pom_remove_plugin :maven-gpg-plugin
|
2014-06-14 00:16:40 +00:00
|
|
|
|
%pom_remove_dep jdk:srczip guava
|
2015-06-18 11:18:44 +00:00
|
|
|
|
%pom_remove_dep :caliper guava-tests
|
|
|
|
|
%mvn_package :guava-parent guava
|
|
|
|
|
%mvn_package :guava-tests __noinstall
|
2010-06-21 03:28:16 +00:00
|
|
|
|
|
2015-06-18 11:18:44 +00:00
|
|
|
|
# javadoc generation fails due to strict doclint in JDK 1.8.0_45
|
|
|
|
|
%pom_remove_plugin -r :maven-javadoc-plugin
|
2015-05-14 04:53:05 +00:00
|
|
|
|
|
2014-06-02 19:40:29 +00:00
|
|
|
|
%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>" guava/pom.xml
|
|
|
|
|
|
2017-11-10 09:11:45 +00:00
|
|
|
|
%pom_remove_dep -r :animal-sniffer-annotations
|
|
|
|
|
%pom_remove_dep -r :error_prone_annotations
|
|
|
|
|
%pom_remove_dep -r :j2objc-annotations
|
|
|
|
|
|
|
|
|
|
annotations=$(
|
|
|
|
|
fgrep -hr -e com.google.j2objc.annotations \
|
|
|
|
|
-e com.google.errorprone.annotation -e org.codehaus.mojo.animal_sniffer \
|
|
|
|
|
| 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*(\((("[^"]*")|([^)]*))\))?//'
|
|
|
|
|
|
2010-06-21 03:28:16 +00:00
|
|
|
|
%build
|
|
|
|
|
|
2013-08-12 13:22:40 +00:00
|
|
|
|
%mvn_file :%{name} %{name}
|
2014-10-08 12:16:47 +00:00
|
|
|
|
%mvn_alias :%{name} com.google.collections:google-collections com.google.guava:guava-jdk5
|
2016-05-10 13:45:46 +00:00
|
|
|
|
# Tests fail on Koji due to insufficient memory,
|
|
|
|
|
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332971
|
|
|
|
|
%mvn_build -s -f
|
2010-06-21 03:28:16 +00:00
|
|
|
|
|
|
|
|
|
%install
|
2013-08-12 13:22:40 +00:00
|
|
|
|
%mvn_install
|
2010-06-21 03:28:16 +00:00
|
|
|
|
|
2015-06-03 21:47:41 +00:00
|
|
|
|
%files -f .mfiles-guava
|
2017-11-10 09:11:45 +00:00
|
|
|
|
%doc CONTRIBUTORS README*
|
2015-01-07 04:32:42 +00:00
|
|
|
|
%license COPYING
|
2010-06-21 03:28:16 +00:00
|
|
|
|
|
2013-08-12 13:22:40 +00:00
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
2015-01-07 04:32:42 +00:00
|
|
|
|
%license COPYING
|
2010-06-21 03:28:16 +00:00
|
|
|
|
|
2015-06-03 21:47:41 +00:00
|
|
|
|
%files testlib -f .mfiles-guava-testlib
|
|
|
|
|
|
2010-06-21 03:28:16 +00:00
|
|
|
|
%changelog
|
2017-11-10 09:11:45 +00:00
|
|
|
|
* Mon Nov 06 2017 Michael Simacek <msimacek@redhat.com> - 20.0-1
|
|
|
|
|
- Update to upstream version 20.0
|
|
|
|
|
|
2017-07-26 12:22:41 +00:00
|
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-11
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
|
2017-02-10 12:27:13 +00:00
|
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
|
2016-10-10 17:15:10 +00:00
|
|
|
|
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-9
|
|
|
|
|
- Allow conditional builds without testlib
|
|
|
|
|
|
2016-06-16 08:55:01 +00:00
|
|
|
|
* Thu Jun 16 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-8
|
|
|
|
|
- Cleanup package
|
|
|
|
|
|
2016-05-10 13:48:15 +00:00
|
|
|
|
* Tue May 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-7
|
|
|
|
|
- Disable tests due to insufficient memory on Koji
|
|
|
|
|
|
2016-02-03 23:34:35 +00:00
|
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-6
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
|
2015-06-22 06:40:29 +00:00
|
|
|
|
* Wed Jun 22 2015 Noa Resare <noa@resare.com> - 18.0-5
|
2015-06-03 21:47:41 +00:00
|
|
|
|
- enable module guava-testlib
|
|
|
|
|
- enable tests in guava-testlib
|
|
|
|
|
- backport fix to HashMap related test from 19.0-SNAPSHOT
|
|
|
|
|
|
2015-06-17 10:08:11 +00:00
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 18.0-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
2015-05-14 04:53:05 +00:00
|
|
|
|
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-3
|
|
|
|
|
- Remove maven-javadoc-plugin execution
|
|
|
|
|
|
2015-02-06 18:28:50 +00:00
|
|
|
|
* Fri Feb 6 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-2
|
|
|
|
|
- Update upstream website URL
|
|
|
|
|
|
2015-01-07 04:32:42 +00:00
|
|
|
|
* Wed Jan 7 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 18.0-1
|
|
|
|
|
- Update to v. 18 (#1175401)
|
|
|
|
|
- Use %license
|
|
|
|
|
|
2014-10-08 12:16:47 +00:00
|
|
|
|
* Wed Oct 8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17.0-2
|
|
|
|
|
- Add alias for com.google.guava:guava-jdk5
|
|
|
|
|
|
2014-06-20 07:34:03 +00:00
|
|
|
|
* Fri Jun 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17.0-1
|
|
|
|
|
- Add patch for Java 8
|
|
|
|
|
|
2014-06-02 19:40:29 +00:00
|
|
|
|
* Tue Jun 17 2014 Roland Grunberg <rgrunber@redhat.com> - 15.0-4
|
|
|
|
|
- Do not generate uses directive for exports.
|
|
|
|
|
|
2014-06-14 00:16:40 +00:00
|
|
|
|
* Fri Jun 13 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 17.0-1
|
|
|
|
|
- Update to latest upstream version (#1109442).
|
|
|
|
|
|
2014-06-07 19:24:59 +00:00
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
|
2014-03-04 08:04:52 +00:00
|
|
|
|
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 15.0-2
|
|
|
|
|
- Use Requires: java-headless rebuild (#1067528)
|
|
|
|
|
|
2014-01-08 10:35:40 +00:00
|
|
|
|
* Wed Jan 8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 15.0-1
|
|
|
|
|
- Update to upstream version 15.0
|
|
|
|
|
|
2013-08-12 13:22:40 +00:00
|
|
|
|
* Mon Aug 12 2013 gil cattaneo <puntogil@libero.it> 13.0-6
|
|
|
|
|
- fix rhbz#992456
|
|
|
|
|
- update to current packaging guidelines
|
|
|
|
|
|
2013-08-03 17:12:49 +00:00
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
|
2013-06-28 13:52:11 +00:00
|
|
|
|
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-4
|
|
|
|
|
- Replace BR on ant-nodeps with ant
|
|
|
|
|
|
2013-06-28 11:34:27 +00:00
|
|
|
|
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-4
|
|
|
|
|
- Rebuild to regenerate API documentation
|
|
|
|
|
- Resolves: CVE-2013-1571
|
|
|
|
|
|
2013-02-14 00:50:28 +00:00
|
|
|
|
* 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
|
|
|
|
|
|
2013-02-06 18:50:56 +00:00
|
|
|
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 13.0-2
|
|
|
|
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
|
|
- Replace maven BuildRequires with maven-local
|
|
|
|
|
|
2012-08-07 17:09:13 +00:00
|
|
|
|
* Tue Aug 7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-1
|
|
|
|
|
- Update to upstream version 13.0
|
|
|
|
|
- Remove RPM bug workaround
|
|
|
|
|
- Convert patches to pom macros
|
|
|
|
|
|
2012-07-19 11:45:28 +00:00
|
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.0.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
|
2012-05-08 09:08:31 +00:00
|
|
|
|
* Sat Apr 28 2012 gil cattaneo <puntogil@libero.it> 11.0.2-1
|
|
|
|
|
- Update to 11.0.2
|
|
|
|
|
|
2012-01-13 04:36:59 +00:00
|
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 09-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
|
2011-09-13 13:32:29 +00:00
|
|
|
|
* Mon Sep 12 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 09-1
|
|
|
|
|
- Update to 09
|
|
|
|
|
- Packaging fixes
|
|
|
|
|
- Build with maven
|
|
|
|
|
|
2011-02-09 07:37:53 +00:00
|
|
|
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 05-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
|
2010-07-14 06:43:21 +00:00
|
|
|
|
* Wed Jul 14 2010 Hui wang <huwang@redhat.com> - 05-4
|
|
|
|
|
- Patch pom
|
|
|
|
|
|
2010-06-21 03:28:16 +00:00
|
|
|
|
* Fri Jun 18 2010 Hui Wang <huwang@redhat.com> - 05-3
|
|
|
|
|
- Fixed jar name in install section
|
|
|
|
|
- Removed spaces in description
|
|
|
|
|
|
|
|
|
|
* Thu Jun 17 2010 Hui Wang <huwang@redhat.com> - 05-2
|
|
|
|
|
- Fixed summary
|
|
|
|
|
- Fixed description
|
|
|
|
|
- Fixed creating symlink insturctions
|
|
|
|
|
- add depmap
|
|
|
|
|
|
|
|
|
|
* Thu Jun 10 2010 Hui Wang <huwang@redhat.com> - 05-1
|
2011-09-13 13:32:29 +00:00
|
|
|
|
- Initial version of the package
|