commit f539511661dbbbc08bec0b5f7906ac6dcab3752e Author: Adrian Schröter Date: Mon Oct 14 13:56:18 2024 +0200 Sync from SUSE:ALP:Source:Standard:1.0 auto revision 8163cf6a8b52365b0d57922a1ad761cf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/auto-common-1.0.tar.gz b/auto-common-1.0.tar.gz new file mode 100644 index 0000000..56c061b --- /dev/null +++ b/auto-common-1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ac17e9200b0dc80b89d33b34794eaf23a1cf60930be2f69a8fc8944fb424c72 +size 356936 diff --git a/auto-parent-6.tar.gz b/auto-parent-6.tar.gz new file mode 100644 index 0000000..23ff856 --- /dev/null +++ b/auto-parent-6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efc056aadc8dc6d413c49cbab7737965e488ddbef17015807c55f40c48ba3a8f +size 279652 diff --git a/auto-service-1.0.tar.gz b/auto-service-1.0.tar.gz new file mode 100644 index 0000000..0317f03 --- /dev/null +++ b/auto-service-1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a53ad130fd202b22537ba835cb655ab55eaee08280b0ecb64810889b96d6481 +size 356962 diff --git a/auto-value-1.6.1.tar.gz b/auto-value-1.6.1.tar.gz new file mode 100644 index 0000000..91df2d4 --- /dev/null +++ b/auto-value-1.6.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24a6cbcc1d3027acb55a1c496183b760105f9dec35b853cbe2d932dbe97b4da9 +size 299950 diff --git a/auto.changes b/auto.changes new file mode 100644 index 0000000..d707b62 --- /dev/null +++ b/auto.changes @@ -0,0 +1,22 @@ +------------------------------------------------------------------- +Thu Jan 13 17:52:07 UTC 2022 - Fridrich Strba + +- Update to upstream release 1.6.1 + * provides the auto-value-annotations artifact + +------------------------------------------------------------------- +Wed Mar 25 07:54:25 UTC 2020 - Fridrich Strba + +- Update to upstream release 1.5.4 +- Fetch 4 different tarballs in order to have correctly tagged + submodules in the build + +------------------------------------------------------------------- +Sun Jun 2 21:45:57 UTC 2019 - Jan Engelhardt + +- Add missing Group: line for the javadoc subpackage. + +------------------------------------------------------------------- +Mon May 6 09:39:17 UTC 2019 - Fridrich Strba + +- Initial packaging of auto value 1.3 diff --git a/auto.spec b/auto.spec new file mode 100644 index 0000000..c4025a4 --- /dev/null +++ b/auto.spec @@ -0,0 +1,176 @@ +# +# spec file for package auto +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%global auto_ver 1.6.1 +%global common_ver 1.0 +%global service_ver 1.0 +%global parent_ver 6 +Name: auto +Version: %{auto_ver} +Release: 0 +Summary: A collection of source code generators for Java +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/google/auto +Source0: https://github.com/google/auto/archive/auto-value-%{version}.tar.gz +Source1: https://github.com/google/auto/archive/auto-common-%{common_ver}.tar.gz +Source2: https://github.com/google/auto/archive/auto-service-%{service_ver}.tar.gz +Source3: https://github.com/google/auto/archive/auto-parent-%{parent_ver}.tar.gz +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: maven-local +BuildRequires: mvn(com.squareup:javapoet) +BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +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 +Group: Development/Libraries/Java +Obsoletes: %{name}-factory < %{version}-%{release} + +%description common +Common utilities for creating annotation processors. + +%package service +Summary: AutoService Processor +Group: Development/Libraries/Java + +%description service +Provider-configuration files for ServiceLoader. + +%package service-aggregator +Summary: AutoService Aggregator +Group: Development/Libraries/Java + +%description service-aggregator +Aggregator POM for @AutoService. + +%package service-annotations +Summary: AutoService Annotations +Group: Development/Libraries/Java + +%description service-annotations +Provider-configuration files for ServiceLoader. + +%package value +Summary: Auto Value +Group: Development/Libraries/Java + +%description value +Immutable value-type code generation for Java 1.6+. + +%package value-annotations +Summary: Auto Value Annotations +Group: Development/Libraries/Java + +%description value-annotations +Immutable value-type code generation for Java 1.6+. + +%package value-parent +Summary: Auto Value Parent + +%description value-parent +Immutable value-type code generation for Java 1.6+. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +This package contains javadoc for %{name}. + +%prep +%setup -q -n auto-auto-value-%{version} -a1 -a2 -a3 +rm -rf pom.xml factory/ common/ service/ +mv auto-auto-parent-%{parent_ver}/pom.xml . +mv auto-auto-common-%{common_ver}/common common +mv auto-auto-service-%{service_ver}/service service + +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 +# Missing dep on com.google.gwt:gwt +%pom_disable_module src/it/functional value/pom.xml +%pom_disable_module src/it/gwtserializer value/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:1.0 value/processor +%pom_change_dep com.google.auto.service:auto-service com.google.auto.service:auto-service:1.0 value/processor +#%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 +%pom_remove_plugin :maven-shade-plugin value/processor + +%mvn_package :build-only __noinstall + +%build +%{mvn_build} -sf -- \ +%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0} + -Dmaven.compiler.release=8 \ +%endif + -f build-pom.xml -Dsource=8 -Dfile.encoding=UTF-8 + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%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 service-aggregator -f .mfiles-%{name}-service-aggregator +%license LICENSE.txt + +%files service-annotations -f .mfiles-%{name}-service-annotations +%license LICENSE.txt + +%files value -f .mfiles-%{name}-value +%doc value/README.md +%license LICENSE.txt + +%files value-annotations -f .mfiles-%{name}-value-annotations +%license LICENSE.txt + +%files value-parent -f .mfiles-%{name}-value-parent +%license LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%license LICENSE.txt + +%changelog