orion / rpms / guava

Forked from rpms/guava a year ago
Clone
84e0772
%bcond_with bootstrap
9dac382
178e48b
Name:           guava
ea0a3b6
Version:        30.1
559e49e
Release:        3%{?dist}
178e48b
Summary:        Google Core Libraries for Java
4c75fa6
# Most of the code is under ASL 2.0
4c75fa6
# Few classes are under CC0, grep for creativecommons
4c75fa6
License:        ASL 2.0 and CC0
178e48b
URL:            https://github.com/google/guava
178e48b
BuildArch:      noarch
178e48b
178e48b
Source0:        https://github.com/google/guava/archive/v%{version}.tar.gz
178e48b
ea0a3b6
Patch1:         0001-Remove-multi-line-annotations.patch
ea0a3b6
0185b44
BuildRequires:  maven-local-openjdk8
9dac382
%if %{with bootstrap}
9dac382
BuildRequires:  javapackages-bootstrap
9dac382
%else
e2e5912
BuildRequires:  %{?module_prefix}mvn(com.google.code.findbugs:jsr305)
3adc142
BuildRequires:  mvn(junit:junit)
178e48b
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
b50d6bf
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
9dac382
%endif
11a4bde
3568707
%description
48e8053
Guava is a suite of core and expanded libraries that include
48e8053
utility classes, Google’s collections, io classes, and much
3568707
much more.
3568707
This project is a complete packaging of all the Guava libraries
3568707
into a single jar.  Individual portions of Guava can be used
3568707
by downloading the appropriate module and its dependencies.
3568707
aa39600
%{?javadoc_package}
3568707
Noa Resare c1a8a83
%package testlib
3adc142
Summary:        The guava-testlib artifact
Noa Resare c1a8a83
Noa Resare c1a8a83
%description testlib
3adc142
guava-testlib provides additional functionality for conveninent unit testing
Noa Resare c1a8a83
3568707
%prep
11a4bde
%setup -q
3adc142
b497bf1
find . -name '*.jar' -delete
3568707
b010199
%pom_remove_parent guava-bom
12a8468
24db2d7
%pom_disable_module guava-gwt
f8c871e
%pom_disable_module guava-tests
f8c871e
78976c4
%pom_xpath_inject pom:modules "<module>futures/failureaccess</module>"
9621704
%pom_xpath_inject pom:parent "<relativePath>../..</relativePath>" futures/failureaccess
78976c4
%pom_xpath_set pom:parent/pom:version %{version}-jre futures/failureaccess
1a39d70
f8c871e
%pom_remove_plugin -r :animal-sniffer-maven-plugin
f8c871e
# Downloads JDK source for doc generation
f8c871e
%pom_remove_plugin :maven-dependency-plugin guava
f8c871e
Noa Resare 9056648
%pom_remove_dep :caliper guava-tests
f8c871e
Noa Resare 9056648
%mvn_package :guava-parent guava
3568707
Noa Resare 9056648
# javadoc generation fails due to strict doclint in JDK 1.8.0_45
Noa Resare 9056648
%pom_remove_plugin -r :maven-javadoc-plugin
57bf73a
b973e14
%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>" guava/pom.xml
b973e14
3adc142
%pom_remove_dep -r :error_prone_annotations
3adc142
%pom_remove_dep -r :j2objc-annotations
f8c871e
%pom_remove_dep -r org.checkerframework:
125f79c
%pom_remove_dep -r :listenablefuture
3adc142
3adc142
annotations=$(
f8c871e
    find -name '*.java' \
f8c871e
    | xargs fgrep -h \
f8c871e
        -e 'import com.google.j2objc.annotations' \
f8c871e
        -e 'import com.google.errorprone.annotation' \
ea0a3b6
        -e 'import com.google.errorprone.annotations' \
ea0a3b6
        -e 'import com.google.common.annotations' \
f8c871e
        -e 'import org.codehaus.mojo.animal_sniffer' \
f8c871e
        -e 'import org.checkerframework' \
3adc142
    | sort -u \
3adc142
    | sed 's/.*\.\([^.]*\);/\1/' \
3adc142
    | paste -sd\|
3adc142
)
ea0a3b6
3adc142
# guava started using quite a few annotation libraries for code quality, which
3adc142
# we don't have. This ugly regex is supposed to remove their usage from the code
3adc142
find -name '*.java' | xargs sed -ri \
f8c871e
    "s/^import .*\.($annotations);//;s/@($annotations)"'\>\s*(\((("[^"]*")|([^)]*))\))?//g'
3adc142
ea0a3b6
%patch1 -p1
ea0a3b6
ee12bee
%mvn_package "com.google.guava:failureaccess" guava
ee12bee
125f79c
%mvn_package "com.google.guava:guava-bom" __noinstall
125f79c
3568707
%build
25c331e
# Tests fail on Koji due to insufficient memory,
25c331e
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332971
25c331e
%mvn_build -s -f
3568707
3568707
%install
1016357
%mvn_install
3568707
Noa Resare c1a8a83
%files -f .mfiles-guava
3adc142
%doc CONTRIBUTORS README*
11a4bde
%license COPYING
3568707
Noa Resare c1a8a83
%files testlib -f .mfiles-guava-testlib
Noa Resare c1a8a83
3568707
%changelog
559e49e
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 30.1-3
559e49e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
559e49e
052b089
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 30.1-2
052b089
- Bootstrap build
84e0772
- Non-bootstrap build
052b089
01cfd41
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-10
01cfd41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
01cfd41
ea0a3b6
* Tue Jan 26 2021 Marian Koncek <mkoncek@redhat.com> - 30.1-1
ea0a3b6
- Update to upstream version 30.1
ea0a3b6
6da93cc
* Fri Sep 18 2020 Marian Koncek <mkoncek@redhat.com> - 29.0-1
6da93cc
- Update to upstream version 29.0
6da93cc
209f8f5
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-9
209f8f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
209f8f5
cfa48fb
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 25.0-8
cfa48fb
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
cfa48fb
12a8468
* Wed Feb 19 2020 Fabio Valentini <decathorpe@gmail.com> - 25.0-7
12a8468
- Drop unnecessary dependency on parent POM.
12a8468
0c501f7
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-6
0c501f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0c501f7
0185b44
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 28.2-2
0185b44
- Build with OpenJDK 8
0185b44
1a39d70
* Fri Jan 24 2020 Marian Koncek <mkoncek@redhat.com> - 28.2-1
1a39d70
- Update to upstream version 28.2
1a39d70
ca85071
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 28.1-2
ca85071
- Mass rebuild for javapackages-tools 201902
ca85071
eb3fa2b
* Mon Sep 02 2019 Marian Koncek <mkoncek@redhat.com> - 28.1-1
eb3fa2b
- Update to upstream version 28.1
eb3fa2b
125f79c
* Thu Aug 01 2019 Marian Koncek <mkoncek@redhat.com> - 28.0-1
125f79c
- Update to upstream version 28.0
125f79c
dde7f11
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-5
dde7f11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
dde7f11
d156c60
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 25.0-4
d156c60
- Mass rebuild for javapackages-tools 201901
d156c60
749f106
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-4
749f106
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
749f106
4c75fa6
* Fri Aug 03 2018 Michael Simacek <msimacek@redhat.com> - 25.0-3
4c75fa6
- Fix license tag to include CC0
4c75fa6
b8b568d
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 25.0-2
b8b568d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
b8b568d
aafa948
* Wed May 02 2018 Michael Simacek <msimacek@redhat.com> - 25.0-1
aafa948
- Update to upstream version 25.0
aafa948
11a0ee1
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 24.0-2
11a0ee1
- Escape macros in %%changelog
11a0ee1
f8c871e
* Mon Feb 05 2018 Michael Simacek <msimacek@redhat.com> - 24.0-1
f8c871e
- Update to upstream version 24.0
f8c871e
3adc142
* Mon Nov 06 2017 Michael Simacek <msimacek@redhat.com> - 20.0-1
3adc142
- Update to upstream version 20.0
3adc142
69c77c2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-11
69c77c2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
69c77c2
723316e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-10
723316e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
723316e
74b95c5
* Mon Oct 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-9
74b95c5
- Allow conditional builds without testlib
74b95c5
178e48b
* Thu Jun 16 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-8
178e48b
- Cleanup package
178e48b
ed81924
* Tue May 10 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-7
ed81924
- Disable tests due to insufficient memory on Koji
ed81924
79a8ee2
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 18.0-6
79a8ee2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
79a8ee2
3ce7905
* Wed Jun 22 2015 Noa Resare <noa@resare.com> - 18.0-5
Noa Resare c1a8a83
- enable module guava-testlib
Noa Resare c1a8a83
- enable tests in guava-testlib
Noa Resare c1a8a83
- backport fix to HashMap related test from 19.0-SNAPSHOT
Noa Resare c1a8a83
f4cd99d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 18.0-4
f4cd99d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f4cd99d
57bf73a
* Thu May 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-3
57bf73a
- Remove maven-javadoc-plugin execution
57bf73a
13ef731
* Fri Feb  6 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 18.0-2
13ef731
- Update upstream website URL
13ef731
11a4bde
* Wed Jan  7 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 18.0-1
11a4bde
- Update to v. 18 (#1175401)
11a0ee1
- Use %%license
11a4bde
e1a943b
* Wed Oct  8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17.0-2
e1a943b
- Add alias for com.google.guava:guava-jdk5
e1a943b
2177498
* Fri Jun 20 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 17.0-1
2177498
- Add patch for Java 8
2177498
b973e14
* Tue Jun 17 2014 Roland Grunberg <rgrunber@redhat.com> - 15.0-4
b973e14
- Do not generate uses directive for exports.
b973e14
48e8053
* Fri Jun 13 2014 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 17.0-1
48e8053
- Update to latest upstream version (#1109442).
48e8053
c1e5098
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 15.0-3
c1e5098
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c1e5098
Stanislav Ochotnicky 676eddd
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 15.0-2
Stanislav Ochotnicky 676eddd
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 676eddd
3924a36
* Wed Jan  8 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 15.0-1
3924a36
- Update to upstream version 15.0
3924a36
1016357
* Mon Aug 12 2013 gil cattaneo <puntogil@libero.it> 13.0-6
1016357
- fix rhbz#992456
1016357
- update to current packaging guidelines
1016357
326e14d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0-5
326e14d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
326e14d
4bb535d
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-4
ee1537f
- Replace BR on ant-nodeps with ant
ee1537f
ee1537f
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-4
4bb535d
- Rebuild to regenerate API documentation
4bb535d
- Resolves: CVE-2013-1571
4bb535d
95f5f80
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 13.0-3
95f5f80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
95f5f80
Stanislav Ochotnicky 812eaff
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 13.0-2
Stanislav Ochotnicky 812eaff
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 812eaff
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 812eaff
24db2d7
* Tue Aug  7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 13.0-1
24db2d7
- Update to upstream version 13.0
24db2d7
- Remove RPM bug workaround
24db2d7
- Convert patches to pom macros
24db2d7
57d830f
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 11.0.2-2
57d830f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
57d830f
b497bf1
* Sat Apr 28 2012 gil cattaneo <puntogil@libero.it> 11.0.2-1
b497bf1
- Update to 11.0.2
b497bf1
a0f6864
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 09-2
a0f6864
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a0f6864
Stanislav Ochotnicky 06e18d4
* Mon Sep 12 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 09-1
Stanislav Ochotnicky 06e18d4
- Update to 09
Stanislav Ochotnicky 06e18d4
- Packaging fixes
Stanislav Ochotnicky 06e18d4
- Build with maven
Stanislav Ochotnicky 06e18d4
088042d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 05-5
088042d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
088042d
6e658c4
* Wed Jul 14 2010 Hui wang <huwang@redhat.com> - 05-4
6e658c4
- Patch pom
6e658c4
3568707
* Fri Jun 18 2010 Hui Wang <huwang@redhat.com> - 05-3
3568707
- Fixed jar name in install section
3568707
- Removed spaces in description
3568707
3568707
* Thu Jun 17 2010 Hui Wang <huwang@redhat.com> - 05-2
3568707
- Fixed summary
3568707
- Fixed description
3568707
- Fixed creating symlink insturctions
3568707
- add depmap
3568707
3568707
* Thu Jun 10 2010 Hui Wang <huwang@redhat.com> - 05-1
Stanislav Ochotnicky 06e18d4
- Initial version of the package