Allow to conditionally build without gradle
This commit is contained in:
parent
3911f298e9
commit
951bc8dde9
@ -5,11 +5,12 @@
|
|||||||
# Avoid circular dependency on itself when bootstrapping
|
# Avoid circular dependency on itself when bootstrapping
|
||||||
%{!?_with_bootstrap: %global bootstrap 0}
|
%{!?_with_bootstrap: %global bootstrap 0}
|
||||||
|
|
||||||
|
%bcond_without gradle
|
||||||
%bcond_without tests
|
%bcond_without tests
|
||||||
|
|
||||||
Name: javapackages-tools
|
Name: javapackages-tools
|
||||||
Version: 4.7.0
|
Version: 4.7.0
|
||||||
Release: 12%{?dist}
|
Release: 13%{?dist}
|
||||||
|
|
||||||
Summary: Macros and scripts for Java packaging support
|
Summary: Macros and scripts for Java packaging support
|
||||||
|
|
||||||
@ -78,6 +79,7 @@ Requires: maven-surefire-provider-testng
|
|||||||
%description -n maven-local
|
%description -n maven-local
|
||||||
This package provides macros and scripts to support packaging Maven artifacts.
|
This package provides macros and scripts to support packaging Maven artifacts.
|
||||||
|
|
||||||
|
%if %{with gradle}
|
||||||
%package -n gradle-local
|
%package -n gradle-local
|
||||||
Summary: Local mode for Gradle
|
Summary: Local mode for Gradle
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
@ -88,6 +90,7 @@ Requires: xmvn-connector-gradle >= 2
|
|||||||
%description -n gradle-local
|
%description -n gradle-local
|
||||||
This package implements local mode for Gradle, which allows artifact
|
This package implements local mode for Gradle, which allows artifact
|
||||||
resolution using XMvn resolver.
|
resolution using XMvn resolver.
|
||||||
|
%endif
|
||||||
|
|
||||||
%package -n ivy-local
|
%package -n ivy-local
|
||||||
Summary: Local mode for Apache Ivy
|
Summary: Local mode for Apache Ivy
|
||||||
@ -141,6 +144,12 @@ pushd python
|
|||||||
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
%if %{without gradle}
|
||||||
|
rm -rf %{buildroot}%{_bindir}/gradle-local
|
||||||
|
rm -rf %{buildroot}%{_datadir}/gradle-local
|
||||||
|
rm -rf %{buildroot}%{_mandir}/man7/gradle_build.7.gz
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
./check
|
./check
|
||||||
@ -152,7 +161,9 @@ popd
|
|||||||
|
|
||||||
%files -n maven-local -f files-maven
|
%files -n maven-local -f files-maven
|
||||||
|
|
||||||
|
%if %{with gradle}
|
||||||
%files -n gradle-local -f files-gradle
|
%files -n gradle-local -f files-gradle
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n ivy-local -f files-ivy
|
%files -n ivy-local -f files-ivy
|
||||||
|
|
||||||
@ -161,6 +172,9 @@ popd
|
|||||||
%{python3_sitelib}/javapackages*
|
%{python3_sitelib}/javapackages*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jan 31 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.7.0-13
|
||||||
|
- Allow to conditionally build without gradle
|
||||||
|
|
||||||
* Tue Dec 20 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.7.0-12
|
* Tue Dec 20 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.7.0-12
|
||||||
- Non-bootstrap build
|
- Non-bootstrap build
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user