Blame SPECS/guava.spec

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