2023-08-31 07:01:31 +00:00
committed by Git OBS Bridge
parent 50a0dd8895
commit 5436145a9d
12 changed files with 275 additions and 51 deletions

View File

@@ -24,7 +24,7 @@
%bcond_with junit5
%bcond_with antlr
Name: ant-junit
Version: 1.10.13
Version: 1.10.14
Release: 0
Summary: Optional junit tasks for ant
License: Apache-2.0
@@ -513,15 +513,15 @@ do
#bootstrap does not have a pom
if [ "$jarname" = ant-bootstrap ]; then
mkdir -p src/etc/poms/${jarname}
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src/etc/poms/${jarname}/pom.xml
mkdir -p src%{_sysconfdir}/poms/${jarname}
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src%{_sysconfdir}/poms/${jarname}/pom.xml
fi
#install pom
if [ "$jarname" != ant-bootstrap ]; then
%pom_remove_parent src/etc/poms/${jarname}/pom.xml
%pom_remove_parent src%{_sysconfdir}/poms/${jarname}/pom.xml
fi
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
install -m 644 src%{_sysconfdir}/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
if [ "$jarname" = ant-launcher ]; then
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
elif [ "$jarname" = ant-jmf ]; then
@@ -548,14 +548,14 @@ rm -f src/script/*.bat
rm -f src/script/*.cmd
# XSLs
cp -p src/etc/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
cp -p src%{_sysconfdir}/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
%endif
%if %{with junit}
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
cp -p src%{_sysconfdir}/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
%endif
%if %{with antlr}
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
cp -p src%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
%endif
%if %{with bootstrap}