This commit is contained in:
@@ -43,14 +43,12 @@ Patch3: reproducible-build-date.patch
|
||||
Patch4: ant-python3.patch
|
||||
# PATCH-FEATURE-OPENSUSE reproducible-build-manifest.patch -- have fixed "Created-by" in manifest
|
||||
Patch5: reproducible-build-manifest.patch
|
||||
Patch6: apache-ant-xml-apis.patch
|
||||
BuildRequires: antlr-bootstrap
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: javapackages-tools
|
||||
BuildRequires: unzip
|
||||
BuildRequires: xml-commons-apis-bootstrap
|
||||
#BuildRequires: xerces-j2-bootstrap
|
||||
#!BuildIgnore: xerces-j2-bootstrap
|
||||
BuildRequires: xml-apis
|
||||
BuildArch: noarch
|
||||
# Needed for maven conversions
|
||||
%if !%{with bootstrap}
|
||||
@@ -63,7 +61,7 @@ BuildRequires: junit
|
||||
%endif
|
||||
%if %{with antlr}
|
||||
BuildRequires: xerces-j2
|
||||
BuildRequires: xml-commons-apis
|
||||
BuildRequires: xml-apis
|
||||
%endif
|
||||
%if 0%{?suse_version} > 1320
|
||||
BuildRequires: strip-nondeterminism
|
||||
@@ -72,8 +70,8 @@ BuildRequires: strip-nondeterminism
|
||||
Requires: java-devel >= 1.8
|
||||
Requires: javapackages-tools
|
||||
Requires: jaxp_parser_impl
|
||||
Requires: xml-commons-apis
|
||||
Requires: xml-commons-resolver
|
||||
Requires: xml-apis
|
||||
Requires: xml-resolver
|
||||
Obsoletes: apache-ant < %{version}
|
||||
Provides: apache-ant = %{version}
|
||||
Obsoletes: ant-nodeps < %{version}
|
||||
@@ -162,8 +160,8 @@ This package contains optional apache bsf tasks for Apache Ant.
|
||||
Summary: Optional apache resolver tasks for ant
|
||||
License: Apache-2.0
|
||||
Group: Development/Tools/Building
|
||||
BuildRequires: xml-commons-resolver
|
||||
Requires: xml-commons-resolver
|
||||
BuildRequires: xml-resolver
|
||||
Requires: xml-resolver
|
||||
%requires_eq ant
|
||||
|
||||
%description -n ant-apache-resolver
|
||||
@@ -344,6 +342,7 @@ find -name build.xml -o -name pom.xml | xargs sed -i -e s/-SNAPSHOT//
|
||||
%patch3 -p1
|
||||
%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
|
||||
# clean jar files
|
||||
find . -name "*.jar" -print -delete
|
||||
@@ -362,7 +361,7 @@ build-jar-repository -s -p lib/optional junit4
|
||||
%endif
|
||||
%if %{with antlr}
|
||||
# we need to build junit in antlr, but we remove it later
|
||||
build-jar-repository -s -p lib/optional xerces-j2 xml-commons-jaxp-1.3-apis antlr-bootstrap bcel javamail/mailapi jdepend junit4 log4j oro regexp bsf commons-logging commons-net jsch xalan-j2 xalan-j2-serializer xml-commons-resolver
|
||||
build-jar-repository -s -p lib/optional xerces-j2 xml-apis antlr-bootstrap bcel javamail/mailapi jdepend junit4 log4j oro regexp bsf commons-logging commons-net jsch xalan-j2 xalan-j2-serializer xml-resolver
|
||||
%endif
|
||||
|
||||
# Fix file-not-utf8 rpmlint warning
|
||||
@@ -455,7 +454,7 @@ do
|
||||
[ $jarname == ant-bootstrap ] && continue
|
||||
|
||||
#install pom
|
||||
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
|
||||
%add_maven_depmap ${pomname} ${destname}${jarname}.jar -a ant:ant-launcher
|
||||
elif [ $jarname == ant ]; then
|
||||
@@ -475,14 +474,14 @@ rm -f src/script/*.bat
|
||||
rm -f src/script/*.cmd
|
||||
|
||||
# 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
|
||||
%endif
|
||||
%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
|
||||
%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
|
||||
|
||||
%if %{with bootstrap}
|
||||
@@ -513,7 +512,7 @@ echo "junit4 ant/ant-junit4" > %{buildroot}%{_sysconfdir}/ant.d/junit4
|
||||
%if %{with antlr}
|
||||
echo "antlr ant/ant-antlr" > %{buildroot}%{_sysconfdir}/ant.d/antlr
|
||||
echo "bsf ant/ant-apache-bsf" > %{buildroot}%{_sysconfdir}/ant.d/apache-bsf
|
||||
echo "xml-commons-resolver ant/ant-apache-resolver" > %{buildroot}%{_sysconfdir}/ant.d/apache-resolver
|
||||
echo "xml-resolver ant/ant-apache-resolver" > %{buildroot}%{_sysconfdir}/ant.d/apache-resolver
|
||||
echo "jakarta-commons-logging ant/ant-commons-logging" > %{buildroot}%{_sysconfdir}/ant.d/commons-logging
|
||||
echo "jakarta-commons-net ant/ant-commons-net" > %{buildroot}%{_sysconfdir}/ant.d/commons-net
|
||||
echo "bcel ant/ant-apache-bcel" > %{buildroot}%{_sysconfdir}/ant.d/apache-bcel
|
||||
|
Reference in New Issue
Block a user