Remove all of the unused apache-commons-* depedencies
Remove junit dependency (not sure why that was there) Remove systemd-units BuildRequires
This commit is contained in:
parent
573c4ceb52
commit
5621db464f
@ -94,9 +94,6 @@ BuildArch: noarch
|
|||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: ecj >= 1:4.6.3
|
BuildRequires: ecj >= 1:4.6.3
|
||||||
BuildRequires: findutils
|
BuildRequires: findutils
|
||||||
BuildRequires: apache-commons-collections
|
|
||||||
BuildRequires: apache-commons-dbcp
|
|
||||||
BuildRequires: apache-commons-pool
|
|
||||||
BuildRequires: java-devel >= 1:1.8.0
|
BuildRequires: java-devel >= 1:1.8.0
|
||||||
BuildRequires: jpackage-utils >= 0:1.7.0
|
BuildRequires: jpackage-utils >= 0:1.7.0
|
||||||
%if 0%{?fedora} >= 27 || 0%{?rhel} > 7
|
%if 0%{?fedora} >= 27 || 0%{?rhel} > 7
|
||||||
@ -104,12 +101,7 @@ BuildRequires: jpackage-utils >= 0:1.7.0
|
|||||||
# See https://fedora-java.github.io/howto/latest/#_add_maven_depmap_macro
|
# See https://fedora-java.github.io/howto/latest/#_add_maven_depmap_macro
|
||||||
BuildRequires: javapackages-local
|
BuildRequires: javapackages-local
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: junit
|
|
||||||
BuildRequires: systemd-units
|
|
||||||
|
|
||||||
Requires: apache-commons-collections
|
|
||||||
Requires: apache-commons-dbcp
|
|
||||||
Requires: apache-commons-pool
|
|
||||||
Requires: java-headless >= 1:1.8.0
|
Requires: java-headless >= 1:1.8.0
|
||||||
Requires: jpackage-utils
|
Requires: jpackage-utils
|
||||||
Requires: procps
|
Requires: procps
|
||||||
@ -178,15 +170,12 @@ find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
export OPT_JAR_LIST="xalan-j2-serializer"
|
export OPT_JAR_LIST="xalan-j2-serializer"
|
||||||
# we don't care about the tarballs and we're going to replace
|
# Create a dummy file for later removal
|
||||||
# tomcat-dbcp.jar with apache-commons-{collections,dbcp,pool}-tomcat5.jar
|
|
||||||
# so just create a dummy file for later removal
|
|
||||||
touch HACK
|
touch HACK
|
||||||
|
|
||||||
# who needs a build.properties file anyway
|
# who needs a build.properties file anyway
|
||||||
%{ant} -Dbase.path="." \
|
%{ant} -Dbase.path="." \
|
||||||
-Dbuild.compiler="modern" \
|
-Dbuild.compiler="modern" \
|
||||||
-Dcommons-collections.jar="$(build-classpath apache-commons-collections)" \
|
|
||||||
-Dcommons-daemon.jar="HACK" \
|
-Dcommons-daemon.jar="HACK" \
|
||||||
-Dcommons-daemon.native.src.tgz="HACK" \
|
-Dcommons-daemon.native.src.tgz="HACK" \
|
||||||
-Djdt.jar="$(build-classpath ecj)" \
|
-Djdt.jar="$(build-classpath ecj)" \
|
||||||
@ -303,8 +292,7 @@ pushd ${RPM_BUILD_ROOT}%{_javadir}
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
pushd output/build
|
pushd output/build
|
||||||
%{_bindir}/build-jar-repository lib apache-commons-collections \
|
%{_bindir}/build-jar-repository lib ecj 2>&1
|
||||||
apache-commons-dbcp apache-commons-pool ecj 2>&1
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
pushd ${RPM_BUILD_ROOT}%{libdir}
|
pushd ${RPM_BUILD_ROOT}%{libdir}
|
||||||
@ -312,9 +300,6 @@ pushd ${RPM_BUILD_ROOT}%{libdir}
|
|||||||
%{__ln_s} ../../java/tomcat-jsp-%{jspspec}-api.jar .
|
%{__ln_s} ../../java/tomcat-jsp-%{jspspec}-api.jar .
|
||||||
%{__ln_s} ../../java/tomcat-servlet-%{servletspec}-api.jar .
|
%{__ln_s} ../../java/tomcat-servlet-%{servletspec}-api.jar .
|
||||||
%{__ln_s} ../../java/tomcat-el-%{elspec}-api.jar .
|
%{__ln_s} ../../java/tomcat-el-%{elspec}-api.jar .
|
||||||
%{__ln_s} $(build-classpath apache-commons-collections) commons-collections.jar
|
|
||||||
%{__ln_s} $(build-classpath apache-commons-dbcp) commons-dbcp.jar
|
|
||||||
%{__ln_s} $(build-classpath apache-commons-pool) commons-pool.jar
|
|
||||||
%{__ln_s} $(build-classpath ecj) jasper-jdt.jar
|
%{__ln_s} $(build-classpath ecj) jasper-jdt.jar
|
||||||
|
|
||||||
# Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
|
# Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
|
||||||
|
Loading…
Reference in New Issue
Block a user