Blame SPECS/auto.spec

eab30a
Name:          auto
eab30a
Version:       1.4.1
eab30a
Release:       1%{?dist}
eab30a
Summary:       A collection of source code generators for Java
eab30a
License:       ASL 2.0
eab30a
URL:           https://github.com/google/auto
eab30a
Source0:       https://github.com/google/auto/archive/auto-value-%{version}.tar.gz
eab30a
eab30a
BuildRequires:  maven-local
eab30a
BuildRequires:  mvn(com.google.guava:guava:19.0)
eab30a
BuildRequires:  mvn(com.squareup:javapoet)
eab30a
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
eab30a
eab30a
BuildArch:     noarch
eab30a
eab30a
%description
eab30a
The Auto sub-projects are a collection of code generators
eab30a
that automate those types of tasks.
eab30a
eab30a
%package common
eab30a
Summary:       Auto Common Utilities
eab30a
# Obsoletes added in F30
eab30a
Obsoletes:     %{name}-factory < %{version}-%{release}
eab30a
eab30a
%description common
eab30a
Common utilities for creating annotation processors.
eab30a
eab30a
%package service
eab30a
Summary:       Provider-configuration files for ServiceLoader
eab30a
eab30a
%description service
eab30a
A configuration/meta-data generator for
eab30a
java.util.ServiceLoader-style service
eab30a
providers.
eab30a
eab30a
%package value
eab30a
Summary:       Auto Value
eab30a
eab30a
%description value
eab30a
Immutable value-type code generation for Java 1.6+.
eab30a
eab30a
%package javadoc
eab30a
Summary:       Javadoc for %{name}
eab30a
eab30a
%description javadoc
eab30a
This package contains javadoc for %{name}.
eab30a
eab30a
%prep
eab30a
%setup -q -n auto-auto-value-%{version}
eab30a
find -name '*.class' -print -delete
eab30a
find -name '*.jar' -print -delete
eab30a
eab30a
# Disable factory module due to missing dep:
eab30a
# com.google.googlejavaformat:google-java-format
eab30a
%pom_disable_module factory build-pom.xml
eab30a
eab30a
%pom_xpath_set "pom:project/pom:version" 3
eab30a
for p in common factory service value ;do
eab30a
%pom_xpath_set "pom:project/pom:version" %{version} ${p}
eab30a
%pom_xpath_remove "pom:dependency[pom:scope = 'test']" ${p}
eab30a
done
eab30a
eab30a
%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin
eab30a
%pom_remove_plugin :maven-shade-plugin value
eab30a
%pom_remove_plugin :maven-invoker-plugin value
eab30a
%pom_remove_plugin :maven-invoker-plugin factory
eab30a
eab30a
%pom_xpath_set "pom:dependency[pom:artifactId = 'auto-common']/pom:version" %{version} factory service value
eab30a
%pom_xpath_set "pom:dependency[pom:artifactId = 'auto-service']/pom:version" %{version} factory value
eab30a
%pom_xpath_set "pom:dependency[pom:artifactId = 'auto-value']/pom:version" %{version} factory
eab30a
eab30a
%mvn_package :build-only __noinstall
eab30a
eab30a
%build
eab30a
# Unavailable test deps
eab30a
%mvn_build -sf -- -f build-pom.xml
eab30a
eab30a
%install
eab30a
%mvn_install
eab30a
eab30a
%files -f .mfiles-%{name}-parent
eab30a
%dir %{_javadir}/%{name}
eab30a
%doc README.md
eab30a
%license LICENSE.txt
eab30a
eab30a
%files common -f .mfiles-%{name}-common
eab30a
%doc common/README.md
eab30a
%license LICENSE.txt
eab30a
eab30a
%files service -f .mfiles-%{name}-service
eab30a
%doc service/README.md
eab30a
%license LICENSE.txt
eab30a
eab30a
%files value -f .mfiles-%{name}-value
eab30a
%doc value/README.md
eab30a
%license LICENSE.txt
eab30a
eab30a
%files javadoc -f .mfiles-javadoc
eab30a
%license LICENSE.txt
eab30a
eab30a
%changelog
eab30a
* Fri Feb 15 2019 Mat Booth <mat.booth@redhat.com> - 1.4.1-1
eab30a
- Update to release 1.4.1 of auto
eab30a
- Disable unused factory module due to missing deps
eab30a
eab30a
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-4
eab30a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
eab30a
eab30a
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
eab30a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
eab30a
eab30a
* Fri Jun 08 2018 Mat Booth <mat.booth@redhat.com> - 1.3-2
eab30a
- Fix BRs
eab30a
eab30a
* Fri Jun 08 2018 Mat Booth <mat.booth@redhat.com> - 1.3-1
eab30a
- Update to 1.3 release of auto
eab30a
eab30a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-6
eab30a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
eab30a
eab30a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-5
eab30a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
eab30a
eab30a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-4
eab30a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
eab30a
eab30a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-3
eab30a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
eab30a
eab30a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1-2
eab30a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
eab30a
eab30a
* Sat Jun 13 2015 gil cattaneo <puntogil@libero.it> 1.1-1
eab30a
- update to 1.1
eab30a
eab30a
* Wed Apr 01 2015 gil cattaneo <puntogil@libero.it> 1.0-2
eab30a
- enable factory module
eab30a
eab30a
* Tue Mar 31 2015 gil cattaneo <puntogil@libero.it> 1.0-1
eab30a
- initial rpm