Formatting cleanups and jakarta-commons->apache-commons rename

- Removed comments (no need for them, we have git history)
- Indentation
This commit is contained in:
Stanislav Ochotnicky 2010-12-02 17:10:02 +01:00
parent 02259b07ea
commit 8ebe6511f3

View File

@ -55,7 +55,7 @@
Name: tomcat6 Name: tomcat6
Epoch: 0 Epoch: 0
Version: %{major_version}.%{minor_version}.%{micro_version} Version: %{major_version}.%{minor_version}.%{micro_version}
Release: 15%{?dist} Release: 16%{?dist}
Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API Summary: Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
Group: Networking/Daemons Group: Networking/Daemons
@ -75,32 +75,30 @@ Source10: %{name}-%{major_version}.%{minor_version}-log4j.properties
Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch Patch0: %{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch Patch1: %{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
Patch2: %{name}-%{major_version}.%{minor_version}-CVE-2010-2227.patch Patch2: %{name}-%{major_version}.%{minor_version}-CVE-2010-2227.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch: noarch BuildArch: noarch
BuildRequires: ant BuildRequires: ant
BuildRequires: ant-nodeps BuildRequires: ant-nodeps
BuildRequires: ecj BuildRequires: ecj
BuildRequires: findutils BuildRequires: findutils
BuildRequires: jakarta-commons-collections BuildRequires: jakarta-commons-collections
#BuildRequires: jakarta-commons-collections-tomcat5 BuildRequires: apache-commons-daemon
BuildRequires: jakarta-commons-daemon BuildRequires: apache-commons-dbcp
#BuildRequires: jakarta-commons-dbcp-tomcat5 BuildRequires: apache-commons-pool
#BuildRequires: jakarta-commons-pool-tomcat5
BuildRequires: jakarta-commons-dbcp
BuildRequires: jakarta-commons-pool
BuildRequires: jakarta-taglibs-standard BuildRequires: jakarta-taglibs-standard
BuildRequires: java-1.6.0-devel BuildRequires: java-1.6.0-devel
BuildRequires: jpackage-utils >= 0:1.7.0 BuildRequires: jpackage-utils >= 0:1.7.0
BuildRequires: junit BuildRequires: junit
BuildRequires: log4j BuildRequires: log4j
Requires(pre): shadow-utils Requires: apache-commons-daemon
Requires(pre): shadow-utils Requires: apache-commons-logging
Requires: jakarta-commons-daemon Requires: apache-commons-collections
Requires: jakarta-commons-logging
Requires: jakarta-commons-collections
Requires: java-1.6.0 Requires: java-1.6.0
Requires: procps Requires: procps
Requires: %{name}-lib = %{epoch}:%{version}-%{release} Requires: %{name}-lib = %{epoch}:%{version}-%{release}
Requires(pre): shadow-utils
Requires(pre): shadow-utils
Requires(post): /sbin/chkconfig Requires(post): /sbin/chkconfig
Requires(preun): /sbin/chkconfig Requires(preun): /sbin/chkconfig
Requires(post): /lib/lsb/init-functions Requires(post): /lib/lsb/init-functions
@ -169,9 +167,9 @@ Requires: %{name}-jsp-%{jspspec}-api = %{epoch}:%{version}-%{release}
Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release} Requires: %{name}-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}
Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release} Requires: %{name}-el-%{elspec}-api = %{epoch}:%{version}-%{release}
Requires: ecj Requires: ecj
Requires: jakarta-commons-collections Requires: apache-commons-collections
Requires: jakarta-commons-dbcp Requires: apache-commons-dbcp
Requires: jakarta-commons-pool Requires: apache-commons-pool
Requires(preun): coreutils Requires(preun): coreutils
%description lib %description lib
@ -227,18 +225,18 @@ export CLASSPATH=
export OPT_JAR_LIST="ant/ant-nodeps" export OPT_JAR_LIST="ant/ant-nodeps"
pushd %{packdname} pushd %{packdname}
# we don't care about the tarballs and we're going to replace # we don't care about the tarballs and we're going to replace
# tomcat-dbcp.jar with jakarta-commons-{collections,dbcp,pool}-tomcat5.jar # tomcat-dbcp.jar with apache-commons-{collections,dbcp,pool}-tomcat5.jar
# so just create a dummy file for later removal # 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 jakarata-commons-collections)" \ -Dcommons-collections.jar="$(build-classpath apache-commons-collections)" \
-Dcommons-daemon.jar="$(build-classpath commons-daemon)" \ -Dcommons-daemon.jar="$(build-classpath apache-commons-daemon)" \
-Dcommons-daemon.jsvc.tar.gz="HACK" \ -Dcommons-daemon.jsvc.tar.gz="HACK" \
-Djasper-jdt.jar="$(build-classpath ecj)" \ -Djasper-jdt.jar="$(build-classpath ecj)" \
-Djdt.jar="$(build-classpath ecj)" \ -Djdt.jar="$(build-classpath ecj)" \
-Dtomcat-dbcp.jar="$(build-classpath commons-dbcp)" \ -Dtomcat-dbcp.jar="$(build-classpath apache-commons-dbcp)" \
-Dtomcat-native.tar.gz="HACK" \ -Dtomcat-native.tar.gz="HACK" \
-Dversion="%{version}" \ -Dversion="%{version}" \
-Dversion.build="%{micro_version}" -Dversion.build="%{micro_version}"
@ -339,10 +337,10 @@ pushd ${RPM_BUILD_ROOT}%{_javadir}
popd popd
pushd %{packdname}/output/build pushd %{packdname}/output/build
%{_bindir}/build-jar-repository lib commons-collections \ %{_bindir}/build-jar-repository lib apache-commons-collections \
commons-dbcp commons-pool ecj 2>&1 apache-commons-dbcp apache-commons-pool ecj 2>&1
# need to use -p here with b-j-r otherwise the examples webapp fails to # need to use -p here with b-j-r otherwise the examples webapp fails to
# load with a java.io.IOException # load with a java.io.IOException
%{_bindir}/build-jar-repository -p webapps/examples/WEB-INF/lib \ %{_bindir}/build-jar-repository -p webapps/examples/WEB-INF/lib \
taglibs-core.jar taglibs-standard.jar 2>&1 taglibs-core.jar taglibs-standard.jar 2>&1
popd popd
@ -456,10 +454,6 @@ done
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \ %{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20100 %{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20100
#%post lib
#%{_bindir}/build-jar-repository %{libdir} commons-collections-tomcat5 \
# commons-dbcp-tomcat5 commons-pool-tomcat5 ecj 2>&1
%post servlet-%{servletspec}-api %post servlet-%{servletspec}-api
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \ %{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar 20500 %{_javadir}/%{name}-servlet-%{servletspec}-api.jar 20500
@ -469,11 +463,6 @@ done
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \ %{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
%{_javadir}/%{name}-el-%{elspec}-api.jar 20250 %{_javadir}/%{name}-el-%{elspec}-api.jar 20250
#%post webapps
# need to use -p here with b-j-r otherwise the examples webapp fails to
# load with a java.io.IOException
#%{_bindir}/build-jar-repository -p %{appdir}/examples/WEB-INF/lib \
# taglibs-core.jar taglibs-standard.jar 2>&1
# move the temporary backups to the correct tomcat directory # move the temporary backups to the correct tomcat directory
# due to rhbz 640686 # due to rhbz 640686
@ -499,19 +488,9 @@ if [ "$1" = "0" ]; then
/sbin/chkconfig --del %{name} /sbin/chkconfig --del %{name}
fi fi
#%preun lib
#if [ "$1" = "0" ]; then
# %{__rm} -f %{libdir}/\[commons-collections-tomcat5\].jar \
# %{libdir}/\[commons-dbcp-tomcat5\].jar \
# %{libdir}/\[commons-pool-tomcat5\].jar \
# %{libdir}/\[ecj\].jar >/dev/null 2>&1
#fi
%postun %postun
%update_maven_depmap %update_maven_depmap
#%{__rm} -rf %{appdir}
#%{__rm} -rf %{confdir}
#%{__rm} -rf %{libdir}
%postun jsp-%{jspspec}-api %postun jsp-%{jspspec}-api
if [ "$1" = "0" ]; then if [ "$1" = "0" ]; then
@ -546,8 +525,6 @@ fi
%attr(0765,root,tomcat) %dir %{appdir} %attr(0765,root,tomcat) %dir %{appdir}
%attr(0765,root,tomcat) %dir %{confdir} %attr(0765,root,tomcat) %dir %{confdir}
%attr(0765,root,tomcat) %dir %{confdir}/Catalina %attr(0765,root,tomcat) %dir %{confdir}/Catalina
#%dir %{confdir}
#%dir %{confdir}/Catalina
%attr(0765,root,tomcat) %dir %{confdir}/Catalina/localhost %attr(0765,root,tomcat) %dir %{confdir}/Catalina/localhost
%config(noreplace) %{confdir}/%{name}.conf %config(noreplace) %{confdir}/%{name}.conf
%config(noreplace) %{confdir}/*.policy %config(noreplace) %{confdir}/*.policy