From 6f8860a5dca29940d3d5da4c36bf8ce95fb6bb7e45ac05f5d557c137c15b1960 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 12 Apr 2019 20:08:51 +0000 Subject: [PATCH] Accepting request 693807 from home:fstrba:maven OBS-URL: https://build.opensuse.org/request/show/693807 OBS-URL: https://build.opensuse.org/package/show/Java:packages/auto?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + auto-value-1.3.tar.gz | 3 + auto.spec | 136 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 163 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 auto-value-1.3.tar.gz create mode 100644 auto.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/auto-value-1.3.tar.gz b/auto-value-1.3.tar.gz new file mode 100644 index 0000000..fce67fd --- /dev/null +++ b/auto-value-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e32a1f937e7c68b6fa10a14295cc50b45c5129baa1bd0781eb3da393ebe2511 +size 237192 diff --git a/auto.spec b/auto.spec new file mode 100644 index 0000000..0cc5cb6 --- /dev/null +++ b/auto.spec @@ -0,0 +1,136 @@ +# +# spec file for package auto +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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/ +# + + +Name: auto +Version: 1.3 +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 +BuildRequires: fdupes +BuildRequires: maven-local +BuildRequires: mvn(com.squareup:javapoet) +BuildRequires: mvn(javax.annotation:jsr250-api) +BuildRequires: mvn(javax.inject:javax.inject) +BuildRequires: mvn(org.ow2.asm:asm) +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 + +%description common +Common utilities for creating annotation processors. + +%package factory +Summary: JSR-330-compatible factories + +%description factory +A source code generator for JSR-330-compatible factories. + +%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-auto-value-%{version} +find -name '*.class' -print -delete +find -name '*.jar' -print -delete + +%pom_xpath_inject "pom:project" " + + common + factory + service + value +" + +%pom_xpath_set "pom:project/pom:version" %{version} +for p in common factory service value ;do + %pom_xpath_set "pom:parent/pom:version" %{version} ${p} + %pom_xpath_set "pom:project/pom:version" %{version} ${p} + %pom_xpath_remove "pom:dependency[pom:scope = 'test']" ${p} +done + +%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin +%pom_remove_plugin :maven-shade-plugin value +%pom_remove_plugin :maven-invoker-plugin value +%pom_remove_plugin :maven-invoker-plugin factory + +%pom_xpath_set "pom:dependency[pom:artifactId = 'auto-common']/pom:version" %{version} factory service value +%pom_xpath_set "pom:dependency[pom:artifactId = 'auto-service']/pom:version" %{version} factory value +%pom_xpath_set "pom:dependency[pom:artifactId = 'auto-value']/pom:version" %{version} factory + +%pom_add_dep javax.annotation:jsr250-api value + +%build + +# Unavailable test deps +%{mvn_build} -sf -- -Dsource=6 + +%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 factory -f .mfiles-%{name}-factory +%doc factory/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