This commit is contained in:
parent
6fd07b44d0
commit
503f41d26c
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d5f830dffe986622725ed817a269dfc35491f1cac67919356a8db7a226cc912d
|
||||
size 296950
|
BIN
auto-value-1.6.1.tar.gz
(Stored with Git LFS)
Normal file
BIN
auto-value-1.6.1.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
46
auto.spec
46
auto.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package auto
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# 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
|
||||
@ -16,7 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%global auto_ver 1.5.4
|
||||
%global auto_ver 1.6.1
|
||||
%global common_ver 0.10
|
||||
%global service_ver 1.0-rc4
|
||||
%global parent_ver 6
|
||||
@ -35,6 +35,7 @@ BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.squareup:javapoet)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
@ -65,6 +66,19 @@ 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
|
||||
@ -79,31 +93,27 @@ 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: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
|
||||
%pom_remove_plugin :maven-shade-plugin
|
||||
%pom_remove_plugin :maven-shade-plugin value/processor
|
||||
|
||||
# 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
|
||||
%mvn_package :build-only __noinstall
|
||||
|
||||
%build
|
||||
%{mvn_build} -sf -- \
|
||||
@ -133,6 +143,12 @@ sed -i -e 's/toImmutableSet/toSet/' -e 's/static com.google.common.collect.Immut
|
||||
%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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user