This commit is contained in:
parent
5436145a9d
commit
f0c43cdc88
@ -513,15 +513,15 @@ do
|
|||||||
|
|
||||||
#bootstrap does not have a pom
|
#bootstrap does not have a pom
|
||||||
if [ "$jarname" = ant-bootstrap ]; then
|
if [ "$jarname" = ant-bootstrap ]; then
|
||||||
mkdir -p src%{_sysconfdir}/poms/${jarname}
|
mkdir -p src/etc/poms/${jarname}
|
||||||
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src%{_sysconfdir}/poms/${jarname}/pom.xml
|
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src/etc/poms/${jarname}/pom.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#install pom
|
#install pom
|
||||||
if [ "$jarname" != ant-bootstrap ]; then
|
if [ "$jarname" != ant-bootstrap ]; then
|
||||||
%pom_remove_parent src%{_sysconfdir}/poms/${jarname}/pom.xml
|
%pom_remove_parent src/etc/poms/${jarname}/pom.xml
|
||||||
fi
|
fi
|
||||||
install -m 644 src%{_sysconfdir}/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
||||||
if [ "$jarname" = ant-launcher ]; then
|
if [ "$jarname" = ant-launcher ]; then
|
||||||
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
||||||
elif [ "$jarname" = ant-jmf ]; then
|
elif [ "$jarname" = ant-jmf ]; then
|
||||||
@ -548,14 +548,14 @@ rm -f src/script/*.bat
|
|||||||
rm -f src/script/*.cmd
|
rm -f src/script/*.cmd
|
||||||
|
|
||||||
# XSLs
|
# XSLs
|
||||||
cp -p src%{_sysconfdir}/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
||||||
%endif
|
%endif
|
||||||
%if %{with junit}
|
%if %{with junit}
|
||||||
cp -p src%{_sysconfdir}/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
%if %{with antlr}
|
%if %{with antlr}
|
||||||
cp -p src%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
|
@ -513,15 +513,15 @@ do
|
|||||||
|
|
||||||
#bootstrap does not have a pom
|
#bootstrap does not have a pom
|
||||||
if [ "$jarname" = ant-bootstrap ]; then
|
if [ "$jarname" = ant-bootstrap ]; then
|
||||||
mkdir -p src%{_sysconfdir}/poms/${jarname}
|
mkdir -p src/etc/poms/${jarname}
|
||||||
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src%{_sysconfdir}/poms/${jarname}/pom.xml
|
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src/etc/poms/${jarname}/pom.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#install pom
|
#install pom
|
||||||
if [ "$jarname" != ant-bootstrap ]; then
|
if [ "$jarname" != ant-bootstrap ]; then
|
||||||
%pom_remove_parent src%{_sysconfdir}/poms/${jarname}/pom.xml
|
%pom_remove_parent src/etc/poms/${jarname}/pom.xml
|
||||||
fi
|
fi
|
||||||
install -m 644 src%{_sysconfdir}/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
||||||
if [ "$jarname" = ant-launcher ]; then
|
if [ "$jarname" = ant-launcher ]; then
|
||||||
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
||||||
elif [ "$jarname" = ant-jmf ]; then
|
elif [ "$jarname" = ant-jmf ]; then
|
||||||
@ -548,14 +548,14 @@ rm -f src/script/*.bat
|
|||||||
rm -f src/script/*.cmd
|
rm -f src/script/*.cmd
|
||||||
|
|
||||||
# XSLs
|
# XSLs
|
||||||
cp -p src%{_sysconfdir}/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
||||||
%endif
|
%endif
|
||||||
%if %{with junit}
|
%if %{with junit}
|
||||||
cp -p src%{_sysconfdir}/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
%if %{with antlr}
|
%if %{with antlr}
|
||||||
cp -p src%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
|
@ -513,15 +513,15 @@ do
|
|||||||
|
|
||||||
#bootstrap does not have a pom
|
#bootstrap does not have a pom
|
||||||
if [ "$jarname" = ant-bootstrap ]; then
|
if [ "$jarname" = ant-bootstrap ]; then
|
||||||
mkdir -p src%{_sysconfdir}/poms/${jarname}
|
mkdir -p src/etc/poms/${jarname}
|
||||||
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src%{_sysconfdir}/poms/${jarname}/pom.xml
|
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src/etc/poms/${jarname}/pom.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#install pom
|
#install pom
|
||||||
if [ "$jarname" != ant-bootstrap ]; then
|
if [ "$jarname" != ant-bootstrap ]; then
|
||||||
%pom_remove_parent src%{_sysconfdir}/poms/${jarname}/pom.xml
|
%pom_remove_parent src/etc/poms/${jarname}/pom.xml
|
||||||
fi
|
fi
|
||||||
install -m 644 src%{_sysconfdir}/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
||||||
if [ "$jarname" = ant-launcher ]; then
|
if [ "$jarname" = ant-launcher ]; then
|
||||||
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
||||||
elif [ "$jarname" = ant-jmf ]; then
|
elif [ "$jarname" = ant-jmf ]; then
|
||||||
@ -548,14 +548,14 @@ rm -f src/script/*.bat
|
|||||||
rm -f src/script/*.cmd
|
rm -f src/script/*.cmd
|
||||||
|
|
||||||
# XSLs
|
# XSLs
|
||||||
cp -p src%{_sysconfdir}/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
||||||
%endif
|
%endif
|
||||||
%if %{with junit}
|
%if %{with junit}
|
||||||
cp -p src%{_sysconfdir}/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
%if %{with antlr}
|
%if %{with antlr}
|
||||||
cp -p src%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
|
14
ant.spec
14
ant.spec
@ -512,15 +512,15 @@ do
|
|||||||
|
|
||||||
#bootstrap does not have a pom
|
#bootstrap does not have a pom
|
||||||
if [ "$jarname" = ant-bootstrap ]; then
|
if [ "$jarname" = ant-bootstrap ]; then
|
||||||
mkdir -p src%{_sysconfdir}/poms/${jarname}
|
mkdir -p src/etc/poms/${jarname}
|
||||||
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src%{_sysconfdir}/poms/${jarname}/pom.xml
|
sed -e "s#@VERSION@#%{version}#g" < %{SOURCE10} > src/etc/poms/${jarname}/pom.xml
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#install pom
|
#install pom
|
||||||
if [ "$jarname" != ant-bootstrap ]; then
|
if [ "$jarname" != ant-bootstrap ]; then
|
||||||
%pom_remove_parent src%{_sysconfdir}/poms/${jarname}/pom.xml
|
%pom_remove_parent src/etc/poms/${jarname}/pom.xml
|
||||||
fi
|
fi
|
||||||
install -m 644 src%{_sysconfdir}/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
install -m 644 src/etc/poms/${jarname}/pom.xml %{buildroot}/%{_mavenpomdir}/${pomname}
|
||||||
if [ "$jarname" = ant-launcher ]; then
|
if [ "$jarname" = ant-launcher ]; then
|
||||||
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
||||||
elif [ "$jarname" = ant-jmf ]; then
|
elif [ "$jarname" = ant-jmf ]; then
|
||||||
@ -547,14 +547,14 @@ rm -f src/script/*.bat
|
|||||||
rm -f src/script/*.cmd
|
rm -f src/script/*.cmd
|
||||||
|
|
||||||
# XSLs
|
# XSLs
|
||||||
cp -p src%{_sysconfdir}/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/*.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
rm -f %{buildroot}%{ant_home}%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames,junit-frames,junit-noframes}.xsl
|
||||||
%endif
|
%endif
|
||||||
%if %{with junit}
|
%if %{with junit}
|
||||||
cp -p src%{_sysconfdir}/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/{junit-noframes,junit-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
%if %{with antlr}
|
%if %{with antlr}
|
||||||
cp -p src%{_sysconfdir}/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
cp -p src/etc/{maudit-frames,jdepend,jdepend-frames}.xsl %{buildroot}%{ant_home}%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user