Blame takari-lifecycle.spec

a8ed07a
%bcond_without  bootstrap
0f19be7
Name:           takari-lifecycle
a8ed07a
Version:        1.12.0
a8ed07a
Release:        1%{?with_bootstrap:.boot}%{?dist}
164dbb7
Summary:        Optimized replacement for the Maven default lifecycle
a03e603
# Everything is under EPL, but one file (AetherUtils.java) is under both EPL and ASL 2.0
a03e603
License:        EPL and ASL 2.0
164dbb7
URL:            http://takari.io
0f19be7
BuildArch:      noarch
0f19be7
0f19be7
Source0:        https://github.com/takari/%{name}/archive/%{name}-%{version}.tar.gz
a03e603
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
0f19be7
164dbb7
# ProblemFactory class is not exported by JDT
164dbb7
Patch0:         0001-Use-DefaultProblemFactory.patch
cf3c49d
Patch1:         0002-Port-to-mustache-java-0.9.1.patch
a8ed07a
Patch2:         0003-Fix-JDT-compatibility.patch
a8ed07a
Patch3:         0004-Use-commons-codec-instead-of-takari-hash-in-tests.patch
164dbb7
0f19be7
BuildRequires:  maven-local
a8ed07a
BuildRequires:  mvn(com.github.spullara.mustache.java:compiler)
164dbb7
BuildRequires:  mvn(com.google.code.gson:gson)
164dbb7
BuildRequires:  mvn(com.google.guava:guava)
164dbb7
BuildRequires:  mvn(io.takari:incrementalbuild)
164dbb7
BuildRequires:  mvn(io.takari.m2e.workspace:org.eclipse.m2e.workspace.cli)
164dbb7
BuildRequires:  mvn(io.takari:takari-archiver)
164dbb7
BuildRequires:  mvn(javax.inject:javax.inject)
164dbb7
BuildRequires:  mvn(org.apache.commons:commons-exec)
164dbb7
BuildRequires:  mvn(org.apache.maven:maven-artifact)
164dbb7
BuildRequires:  mvn(org.apache.maven:maven-core)
164dbb7
BuildRequires:  mvn(org.apache.maven:maven-model)
164dbb7
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
868d612
BuildRequires:  mvn(org.apache.maven:maven-repository-metadata)
164dbb7
BuildRequires:  mvn(org.apache.maven:maven-settings)
164dbb7
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
868d612
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
164dbb7
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
164dbb7
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
164dbb7
BuildRequires:  mvn(org.eclipse.aether:aether-api)
164dbb7
BuildRequires:  mvn(org.eclipse.aether:aether-util)
164dbb7
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
a8ed07a
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.jdt.compiler.apt)
164dbb7
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.jdt.core)
164dbb7
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.osgi)
164dbb7
BuildRequires:  mvn(org.slf4j:slf4j-api)
164dbb7
BuildRequires:  mvn(org.sonatype.sisu:sisu-guice::no_aop:)
164dbb7
BuildRequires:  mvn(xmlunit:xmlunit)
164dbb7
a8ed07a
%if %{with bootstrap}
a8ed07a
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
a8ed07a
%else
a8ed07a
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)
a8ed07a
BuildRequires:  mvn(io.takari:takari:pom:)
a8ed07a
%endif
a8ed07a
164dbb7
0f19be7
%description
0f19be7
Takari Maven Lifecycle includes an optimized replacement for the Maven
0f19be7
default lifecycle.  The Takari Lifecycle Plugin is a Maven plugin with
0f19be7
a small set of dependencies that provides equivalent functionality to
0f19be7
five plugins with a large set of transitive dependencies.  This
0f19be7
reduces the download times to retrieve the needed components as well
0f19be7
as the storage space requirements in your repositories.
0f19be7
164dbb7
%package javadoc
164dbb7
Summary:        API documentation for %{name}
164dbb7
164dbb7
%description javadoc
164dbb7
This package provides %{summary}.
164dbb7
164dbb7
0f19be7
%prep
0f19be7
%setup -q -n %{name}-%{name}-%{version}
164dbb7
%patch0 -p1
cf3c49d
%patch1 -p1
a8ed07a
%patch2 -p1
a8ed07a
%patch3 -p1
164dbb7
a03e603
cp %{SOURCE1} .
a03e603
e42168a
# Replace bundled test dependency with symlink to system JAR
e42168a
ln -sf %{_javadir}/commons-lang.jar takari-lifecycle-plugin/src/test/jars/commons-lang-2.0.jar
e42168a
0f19be7
# XXX skip ITs for now
0f19be7
%pom_disable_module takari-lifecycle-plugin-its
0f19be7
164dbb7
%pom_remove_plugin -r :animal-sniffer-maven-plugin
164dbb7
%pom_remove_plugin -r :license-maven-plugin
164dbb7
a8ed07a
# changed by patch
a8ed07a
%pom_change_dep -r :takari-hash commons-codec:commons-codec::test
a8ed07a
a8ed07a
%if %{with bootstrap}
a8ed07a
# Bootstrap build
a8ed07a
%pom_remove_parent
a8ed07a
%pom_xpath_set pom:project/pom:packaging maven-plugin takari-lifecycle-plugin
a8ed07a
%pom_add_plugin :maven-compiler-plugin '
a8ed07a
<configuration>
a8ed07a
<source>1.8</source>
a8ed07a
<target>1.8</target>
a8ed07a
</configuration>'
a8ed07a
%pom_add_plugin org.apache.maven.plugins:maven-plugin-plugin takari-lifecycle-plugin '
a8ed07a
<executions>
a8ed07a
<execution>
a8ed07a
<id>mojo-descriptor</id>
a8ed07a
<configuration>
a8ed07a
<phase>process-classes</phase>
a8ed07a
<packagingTypes>
a8ed07a
<packaging>maven-plugin</packaging>
a8ed07a
</packagingTypes>
a8ed07a
</configuration>
a8ed07a
<goals>
a8ed07a
<goal>descriptor</goal>
a8ed07a
</goals>
a8ed07a
</execution>
a8ed07a
</executions>'
a8ed07a
%endif
164dbb7
0f19be7
%build
164dbb7
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8
0f19be7
0f19be7
%install
0f19be7
%mvn_install
0f19be7
164dbb7
0f19be7
%files -f .mfiles
a03e603
%license LICENSE.txt LICENSE-2.0.txt
0f19be7
%doc README.md
0f19be7
164dbb7
%files javadoc -f .mfiles-javadoc
a03e603
%license LICENSE.txt LICENSE-2.0.txt
164dbb7
164dbb7
0f19be7
%changelog
a8ed07a
* Mon Jul 18 2016 Michael Simacek <msimacek@redhat.com> - 1.12.0-1
a8ed07a
- Update to upstream version 1.12.0
a8ed07a
23615d5
* Mon Feb 15 2016 Michael Simacek <msimacek@redhat.com> - 1.11.11-1
23615d5
- Non-bootstrap build
23615d5
8b9177b
* Mon Feb 15 2016 Michael Simacek <msimacek@redhat.com> - 1.11.11-0.1
8b9177b
- Update to upstream version 1.11.11
8b9177b
- Bootstrap build
8b9177b
0f8c52c
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-4
0f8c52c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0f8c52c
cf3c49d
* Mon Nov 30 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11.3-3
cf3c49d
- Port to mustache-java 0.9.1
cf3c49d
f5cf19e
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.3-2
f5cf19e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
f5cf19e
868d612
* Wed Apr 22 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11.3-1
868d612
- Update to upstream version 1.11.3
868d612
de24622
* Thu Mar 12 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10.2-4
de24622
- Non-bootstrap bulid
de24622
e42168a
* Thu Mar 12 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10.2-3
e42168a
- Replace bundled test dependency with symlink to system JAR
a03e603
- Add Apache license text
e42168a
164dbb7
* Fri Mar 06 2015 Michael Simacek <msimacek@redhat.com> - 1.10.2-2
164dbb7
- Working build
164dbb7
0f19be7
* Fri Feb 20 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.10.2-1
0f19be7
- Initial packaging