RHEL 9.0.0 Alpha bootstrap

The content of this branch was automatically imported from Fedora ELN
with the following as its source:
https://src.fedoraproject.org/rpms/auto#9e7dd676b5c020390bc01eb97176446d6179342b
This commit is contained in:
Petr Šabata 2020-10-14 22:05:41 +02:00
parent 71ac0f3249
commit bf9b6aa5f1
4 changed files with 210 additions and 0 deletions

5
.gitignore vendored
View File

@ -0,0 +1,5 @@
/auto-value-1.0.tar.gz
/auto-value-1.1.tar.gz
/auto-value-1.3.tar.gz
/auto-value-1.4.1.tar.gz
/auto-value-1.5.4.tar.gz

180
auto.spec Normal file
View File

@ -0,0 +1,180 @@
Name: auto
Summary: Collection of source code generators for Java
Version: 1.5.4
Release: 6%{?dist}
License: ASL 2.0
URL: https://github.com/google/auto
# Source tarball is generated by script to ensure the correct tagged
# code is fetched for the various submodules
Source0: auto-value-%{version}.tar.gz
Source1: gen_auto_tarball.sh
BuildRequires: maven-local
BuildRequires: mvn(com.squareup:javapoet)
BuildArch: noarch
%description
The Auto sub-projects are a collection of code generators
that automate those types of tasks.
%package common
Summary: Auto Common Utilities
# Obsoletes added in F30
Obsoletes: %{name}-factory < %{version}-%{release}
%description common
Common utilities for creating annotation processors.
%package service
Summary: Provider-configuration files for ServiceLoader
%description service
A configuration/meta-data generator for
java.util.ServiceLoader-style service
providers.
%package value
Summary: Auto Value
%description value
Immutable value-type code generation for Java 1.6+.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n auto-value-%{version}
find -name '*.class' -print -delete
find -name '*.jar' -print -delete
# remove unnecessary dependency on parent POM
%pom_remove_parent
# Disable factory module due to missing dep:
# com.google.googlejavaformat:google-java-format
%pom_disable_module factory build-pom.xml
# Fix deps in service module
%pom_xpath_set "pom:parent/pom:version" 6 service
%pom_change_dep com.google.auto:auto-common com.google.auto:auto-common:0.10 service
%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin
%pom_remove_plugin :maven-shade-plugin value
%pom_remove_plugin :maven-invoker-plugin value
# Broader guava compatibility
sed -i -e 's/23.5-jre/20.0/' pom.xml
sed -i -e 's/toImmutableMap/toMap/' -e 's/static com.google.common.collect.ImmutableMap/static java.util.stream.Collectors/' \
-e '/elementValues/s/ImmutableMap/Map/' \
common/src/main/java/com/google/auto/common/SimpleAnnotationMirror.java
sed -i -e 's/toImmutableSet/toSet/' -e 's/static com.google.common.collect.ImmutableSet/static java.util.stream.Collectors/' \
-e '/ImmutableSet</s/ImmutableSet/Set/' \
service/src/main/java/com/google/auto/service/processor/AutoServiceProcessor.java
%mvn_package :build-only __noinstall
%build
# skip test suite because of unpackaged dependencies for tests
%mvn_build -sf -- -f build-pom.xml
%install
%mvn_install
%files -f .mfiles-%{name}-parent
%dir %{_javadir}/%{name}
%doc README.md
%license LICENSE.txt
%files common -f .mfiles-%{name}-common
%doc common/README.md
%license LICENSE.txt
%files service -f .mfiles-%{name}-service
%doc service/README.md
%license LICENSE.txt
%files value -f .mfiles-%{name}-value
%doc value/README.md
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.5.4-5
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Fri Mar 20 2020 Mat Booth <mat.booth@redhat.com> - 1.5.4-4
- Remove unneeded dep on plexus-java, used only for integration tests that we do
not execute
* Thu Feb 20 2020 Mat Booth <mat.booth@redhat.com> - 1.5.4-3
- Allow compatibility with a broader range of guava versions
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
* Fri Dec 13 2019 Fabio Valentini <decathorpe@gmail.com> - 1.5.4-1
- Update to version 1.5.4
- Don't use compat version of guava any longer
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Fri Feb 15 2019 Mat Booth <mat.booth@redhat.com> - 1.4.1-1
- Update to release 1.4.1 of auto
- Disable unused factory module due to missing deps
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Fri Jun 08 2018 Mat Booth <mat.booth@redhat.com> - 1.3-2
- Fix BRs
* Fri Jun 08 2018 Mat Booth <mat.booth@redhat.com> - 1.3-1
- Update to 1.3 release of auto
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
* Sat Jun 13 2015 gil cattaneo <puntogil@libero.it> 1.1-1
- update to 1.1
* Wed Apr 01 2015 gil cattaneo <puntogil@libero.it> 1.0-2
- enable factory module
* Tue Mar 31 2015 gil cattaneo <puntogil@libero.it> 1.0-1
- initial rpm

24
gen_auto_tarball.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
VAL_TAG=auto-value-1.5.4
COM_TAG=auto-common-0.10
SER_TAG=auto-service-1.0-rc4
PARENT_TAG=auto-parent-6
mkdir $VAL_TAG/
pushd $VAL_TAG/
wget https://github.com/google/auto/archive/$VAL_TAG.tar.gz
tar xvf $VAL_TAG.tar.gz --strip-components=1
rm -rf pom.xml factory/ common/ service/
wget https://github.com/google/auto/archive/$COM_TAG.tar.gz
tar xvf $COM_TAG.tar.gz --strip-components=1 auto-$COM_TAG/common
wget https://github.com/google/auto/archive/$SER_TAG.tar.gz
tar xvf $SER_TAG.tar.gz --strip-components=1 auto-$SER_TAG/service
wget https://github.com/google/auto/archive/$PARENT_TAG.tar.gz
tar xvf $PARENT_TAG.tar.gz --strip-components=1 auto-$PARENT_TAG/pom.xml
rm *.tar.gz
popd
tar caf $VAL_TAG.tar.gz $VAL_TAG/
rm -rf $VAL_TAG/

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (auto-value-1.5.4.tar.gz) = eac782de9e32d516cec2e16d567b19ad663218334ffcd43113b7fd5d6f15fdd8289f8337b14ea4222057bbd6ced2c20fd22f182b7c17861058c2febe2cf601b8