Allow conditional builds without Ant tasks
This commit is contained in:
parent
6a91b1f429
commit
790b604a3a
@ -176,15 +176,19 @@ popd
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%if %{with ant_tasks}
|
||||
install -d -m 755 %{buildroot}%{_sysconfdir}/ant.d
|
||||
echo "aqute-bnd slf4j/api slf4j/simple osgi-annotation osgi-core osgi-compendium" >%{buildroot}%{_sysconfdir}/ant.d/%{name}
|
||||
%endif
|
||||
|
||||
%jpackage_script aQute.bnd.main.bnd "" "" aqute-bnd:slf4j/slf4j-api:slf4j/slf4j-simple:osgi-annotation:osgi-core:osgi-compendium bnd 1
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE
|
||||
%{_bindir}/bnd
|
||||
%if %{with ant_tasks}
|
||||
%config(noreplace) %{_sysconfdir}/ant.d/*
|
||||
%endif
|
||||
|
||||
%files -n aqute-bndlib -f .mfiles-bndlib
|
||||
%license LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user