From bf9b6aa5f1158c1465ff650fad62e8640e72b170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20=C5=A0abata?= Date: Wed, 14 Oct 2020 22:05:41 +0200 Subject: [PATCH] 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 --- .gitignore | 5 ++ auto.spec | 180 ++++++++++++++++++++++++++++++++++++++++++++ gen_auto_tarball.sh | 24 ++++++ sources | 1 + 4 files changed, 210 insertions(+) create mode 100644 auto.spec create mode 100755 gen_auto_tarball.sh create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0825c58 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/auto.spec b/auto.spec new file mode 100644 index 0000000..80576f1 --- /dev/null +++ b/auto.spec @@ -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 - 1.5.4-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Jiri Vanek - 1.5.4-5 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Fri Mar 20 2020 Mat Booth - 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 - 1.5.4-3 +- Allow compatibility with a broader range of guava versions + +* Tue Jan 28 2020 Fedora Release Engineering - 1.5.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Dec 13 2019 Fabio Valentini - 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 - 1.4.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Feb 15 2019 Mat Booth - 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 - 1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 1.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Jun 08 2018 Mat Booth - 1.3-2 +- Fix BRs + +* Fri Jun 08 2018 Mat Booth - 1.3-1 +- Update to 1.3 release of auto + +* Wed Feb 07 2018 Fedora Release Engineering - 1.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 1.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Jun 13 2015 gil cattaneo 1.1-1 +- update to 1.1 + +* Wed Apr 01 2015 gil cattaneo 1.0-2 +- enable factory module + +* Tue Mar 31 2015 gil cattaneo 1.0-1 +- initial rpm + diff --git a/gen_auto_tarball.sh b/gen_auto_tarball.sh new file mode 100755 index 0000000..be2911f --- /dev/null +++ b/gen_auto_tarball.sh @@ -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/ + diff --git a/sources b/sources new file mode 100644 index 0000000..ccb80a5 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (auto-value-1.5.4.tar.gz) = eac782de9e32d516cec2e16d567b19ad663218334ffcd43113b7fd5d6f15fdd8289f8337b14ea4222057bbd6ced2c20fd22f182b7c17861058c2febe2cf601b8