Sisyphus repository
Last update: 27 september 2020 | SRPMs: 17701 | Visits: 19302121
en ru br
ALT Linux repos

Group :: Development/Java
RPM: auto

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Group: Development/Java
# BEGIN SourceDeps(oneline):
BuildRequires(pre): rpm-macros-java
BuildRequires: rpm-build-java
# END SourceDeps(oneline)
BuildRequires: /proc
BuildRequires: jpackage-generic-compat
# see
%define _localstatedir %{_var}
Name:          auto
Version:       1.4.1
Release:       alt1_1jpp8
Summary:       A collection of source code generators for Java
License:       ASL 2.0

BuildRequires:  maven-local
BuildRequires:  mvn(
BuildRequires:  mvn(com.squareup:javapoet)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

BuildArch:     noarch

The Auto sub-projects are a collection of code generators
that automate those types of tasks.

%package common
Group: Development/Java
Summary:       Auto Common Utilities
# Obsoletes added in F30
Obsoletes:     %{name}-factory < %{version}-%{release}

%description common
Common utilities for creating annotation processors.

%package service
Group: Development/Java
Summary:       Provider-configuration files for ServiceLoader

%description service
A configuration/meta-data generator for
java.util.ServiceLoader-style service

%package value
Group: Development/Java
Summary:       Auto Value

%description value
Immutable value-type code generation for Java 1.6+.

%package javadoc
Group: Development/Java
Summary:       Javadoc for %{name}
BuildArch: noarch

%description javadoc
This package contains javadoc for %{name}.

%setup -q -n auto-auto-value-%{version}
find -name '*.class' -print -delete
find -name '*.jar' -print -delete

# Disable factory module due to missing dep:

%pom_disable_module factory build-pom.xml

%pom_xpath_set "pom:project/pom:version" 3
for p in common factory service value ;do
%pom_xpath_set "pom:project/pom:version" %{version} ${p}
%pom_xpath_remove "pom:dependency[pom:scope = 'test']" ${p}

%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

%mvn_package :build-only __noinstall

# Unavailable test deps
%mvn_build -sf -- -f build-pom.xml


%files -f .mfiles-%{name}-parent
%dir %{_javadir}/%{name}
%doc --no-dereference LICENSE.txt

%files common -f .mfiles-%{name}-common
%doc common/
%doc --no-dereference LICENSE.txt

%files service -f .mfiles-%{name}-service
%doc service/
%doc --no-dereference LICENSE.txt

%files value -f .mfiles-%{name}-value
%doc value/
%doc --no-dereference LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc --no-dereference LICENSE.txt


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin