- Silence loads of warnings by rpmlintrc

OBS-URL: https://build.opensuse.org/package/show/Java:packages/tomcat?expand=0&rev=49
This commit is contained in:
Tomáš Chvátal 2014-07-11 09:18:33 +00:00 committed by Git OBS Bridge
parent a106a5ac9d
commit 9fc74e4f86
2 changed files with 44 additions and 35 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 11 09:18:07 UTC 2014 - tchvatal@suse.com
- Silence loads of warnings by rpmlintrc
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jul 10 14:57:29 UTC 2014 - tchvatal@suse.com Thu Jul 10 14:57:29 UTC 2014 - tchvatal@suse.com

View File

@ -47,8 +47,6 @@ Url: http://tomcat.apache.org
Source0: http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz Source0: http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz
Source1: %{name}-%{major_version}.%{minor_version}.conf Source1: %{name}-%{major_version}.%{minor_version}.conf
Source2: %{name}-%{major_version}.%{minor_version}.init Source2: %{name}-%{major_version}.%{minor_version}.init
# sysconfig removal - bnc#471639
#Source3: %{name}-%{major_version}.%{minor_version}.sysconfig
Source4: %{name}-%{major_version}.%{minor_version}.wrapper Source4: %{name}-%{major_version}.%{minor_version}.wrapper
Source5: %{name}-%{major_version}.%{minor_version}.logrotate Source5: %{name}-%{major_version}.%{minor_version}.logrotate
Source6: %{name}-%{major_version}.%{minor_version}-digest.script Source6: %{name}-%{major_version}.%{minor_version}-digest.script
@ -140,7 +138,7 @@ Group: Productivity/Networking/Web/Servers
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description admin-webapps %description admin-webapps
The host-manager and manager web applications for Apache Tomcat. The host-manager and manager web based applications for Apache Tomcat.
%package docs-webapp %package docs-webapp
Summary: The docs web application for Apache Tomcat Summary: The docs web application for Apache Tomcat
@ -148,7 +146,7 @@ Group: Productivity/Networking/Web/Servers
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description docs-webapp %description docs-webapp
The docs web application for Apache Tomcat. The documentation of web application for Apache Tomcat.
%package el-2_2-api %package el-2_2-api
Summary: Expression Language v2.2 API Summary: Expression Language v2.2 API
@ -160,14 +158,14 @@ Provides: el_2_2_api = %{version}-%{release}
Provides: el_api = %{elspec} Provides: el_api = %{elspec}
%description el-2_2-api %description el-2_2-api
Expression Language 2.2. Expression Language API version 2.2.
%package javadoc %package javadoc
Summary: Javadoc generated documentation for Apache Tomcat Summary: Javadoc generated documentation for Apache Tomcat
Group: Productivity/Networking/Web/Servers Group: Productivity/Networking/Web/Servers
%description javadoc %description javadoc
Javadoc generated documentation for Apache Tomcat. Javadoc generated documentation files for Apache Tomcat.
%package jsp-2_2-api %package jsp-2_2-api
Summary: Apache Tomcat JSP API implementation classes Summary: Apache Tomcat JSP API implementation classes
@ -180,7 +178,7 @@ Provides: jsp = %{jspspec}
Provides: jsp22 Provides: jsp22
%description jsp-2_2-api %description jsp-2_2-api
Apache Tomcat JSP API implementation classes Apache Tomcat JSP API implementation classes version 2.2
%if %{with_systemd} %if %{with_systemd}
%package jsvc %package jsvc
@ -208,7 +206,7 @@ Provides: jakarta-commons-dbcp-tomcat5 = 1.4
Obsoletes: jakarta-commons-dbcp-tomcat5 < 1.4 Obsoletes: jakarta-commons-dbcp-tomcat5 < 1.4
%description lib %description lib
Libraries needed to run the Tomcat Web container Libraries required to successfully run the Tomcat Web container
%package servlet-3_0-api %package servlet-3_0-api
Summary: Apache Tomcat Servlet API implementation classes Summary: Apache Tomcat Servlet API implementation classes
@ -221,13 +219,13 @@ Provides: servlet30
Provides: servlet7 Provides: servlet7
%description servlet-3_0-api %description servlet-3_0-api
Apache Tomcat Servlet API implementation classes Apache Tomcat Servlet API implementation classes version 3.0
%package webapps %package webapps
Summary: The ROOT and examples web applications for Apache Tomcat Summary: ROOT and examples web applications for Apache Tomcat
Group: Productivity/Networking/Web/Servers Group: Productivity/Networking/Web/Servers
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires(post): jakarta-taglibs-standard >= 1.1 Requires: jakarta-taglibs-standard >= 1.1
%description webapps %description webapps
The ROOT and examples web applications for Apache Tomcat The ROOT and examples web applications for Apache Tomcat
@ -353,8 +351,6 @@ install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
%endif %endif
install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name} install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name}
# sysconfig removal
# % {__install} -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
install -d -m 0755 %{buildroot}%{appdir} install -d -m 0755 %{buildroot}%{appdir}
install -d -m 0755 %{buildroot}%{bindir} install -d -m 0755 %{buildroot}%{bindir}
install -d -m 0755 %{buildroot}%{confdir} install -d -m 0755 %{buildroot}%{confdir}
@ -386,10 +382,6 @@ sed -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
-e "s|\@\@\@JAVAHOME\@\@\@|%{_sysconfdir}/alternatives/jre|g" \ -e "s|\@\@\@JAVAHOME\@\@\@|%{_sysconfdir}/alternatives/jre|g" \
-e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \ -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
> %{buildroot}%{confdir}/%{name}.conf > %{buildroot}%{confdir}/%{name}.conf
# sysconfig removal
# % {__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
# -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" %{SOURCE3} \
# > %{buildroot}%{_sysconfdir}/sysconfig/%{name}
%if %{with_systemd} %if %{with_systemd}
install -m 0644 %{SOURCE11} \ install -m 0644 %{SOURCE11} \
@ -399,8 +391,8 @@ install -m 0644 %{SOURCE17} \
install -m 0644 %{SOURCE20} \ install -m 0644 %{SOURCE20} \
%{buildroot}%{_unitdir}/%{name}-jsvc.service %{buildroot}%{_unitdir}/%{name}-jsvc.service
(cd %{buildroot}%{_sbindir}; ln -s %{name}-sysd %{name}-jsvc-sysd) (cd %{buildroot}%{_sbindir}; ln -s %{name}-sysd %{name}-jsvc-sysd)
ln -sf ../../sbin/service %{buildroot}/%{_sbindir}/rc%{name} ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rc%{name}
ln -sf ../../sbin/service %{buildroot}/%{_sbindir}/rc%{name}-jsvc ln -sf %{_sbindir}/service %{buildroot}/%{_sbindir}/rc%{name}-jsvc
%else %else
install -m 0755 %{SOURCE2} \ install -m 0755 %{SOURCE2} \
%{buildroot}%{_initddir}/%{name} %{buildroot}%{_initddir}/%{name}
@ -453,7 +445,7 @@ pushd %{buildroot}%{libdir}
ln -s $(build-classpath log4j) log4j.jar ln -s $(build-classpath log4j) log4j.jar
ln -s $(build-classpath ecj) jasper-jdt.jar ln -s $(build-classpath ecj) jasper-jdt.jar
# Temporary copy the juli jar here from %{_datadir}/java/tomcat (for maven depmap) # Temporary copy the juli jar here from %%{_datadir}/java/tomcat (for maven depmap)
cp -a %{buildroot}%{bindir}/tomcat-juli.jar ./ cp -a %{buildroot}%{bindir}/tomcat-juli.jar ./
popd popd
@ -545,6 +537,20 @@ echo "%{name}/catalina-ant" > %{buildroot}/%{_sysconfdir}/ant.d/catalina-ant
#bnc#565901 #bnc#565901
ln -sf %{_sbindir}/d%{name} %{buildroot}/%{bindir}/catalina.sh ln -sf %{_sbindir}/d%{name} %{buildroot}/%{bindir}/catalina.sh
# Install update-alternatives content
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
ln -s %{_javadir}/%{name}-el-%{elspec}-api.jar %{buildroot}%{_javadir}/el_api.jar
ln -s %{_javadir}/%{name}-el-%{elspec}-api.jar %{buildroot}%{_sysconfdir}/alternatives/el_api.jar
ln -s %{_javadir}/%{name}-el-%{elspec}-api.jar %{buildroot}%{_javadir}/el_1_0_api.jar
ln -s %{_javadir}/%{name}-el-%{elspec}-api.jar %{buildroot}%{_sysconfdir}/alternatives/el_1_0_api.jar
ln -s %{_javadir}/%{name}-jsp-%{jspspec}-api.jar %{buildroot}%{_javadir}/jsp.jar
ln -s %{_javadir}/%{name}-jsp-%{jspspec}-api.jar %{buildroot}%{_sysconfdir}/alternatives/jsp.jar
ln -s %{_javadir}/%{name}-servlet-%{servletspec}-api.jar %{buildroot}%{_javadir}/servlet.jar
ln -s %{_javadir}/%{name}-servlet-%{servletspec}-api.jar %{buildroot}%{_sysconfdir}/alternatives/servlet.jar
%pre %pre
# add the tomcat user and group # add the tomcat user and group
%{_sbindir}/groupadd -r tomcat 2>/dev/null || : %{_sbindir}/groupadd -r tomcat 2>/dev/null || :
@ -562,13 +568,10 @@ ln -sf %{_sbindir}/d%{name} %{buildroot}/%{bindir}/catalina.sh
%endif %endif
%preun %preun
if [ -x %{_initddir}/%{name} ]; then
# clean tempdir and cachedir on removal or upgrade
## % {__rm} -rf %{workdir}/* %{tempdir}/*
%stop_on_removal %{name}
fi
%if %{with_systemd} %if %{with_systemd}
%service_del_preun %{name}.service %service_del_preun %{name}.service
%else
%stop_on_removal %{name}
%endif %endif
%postun %postun
@ -580,7 +583,6 @@ fi
%endif %endif
%if %{with_systemd} %if %{with_systemd}
%pre jsvc %pre jsvc
%service_add_pre %{name}-jsvc.service %service_add_pre %{name}-jsvc.service
@ -599,7 +601,7 @@ fi
%{_sbindir}/update-alternatives --install %{_javadir}/el_1_0_api.jar el_1_0_api %{_javadir}/%{name}-el-%{elspec}-api.jar 20300 %{_sbindir}/update-alternatives --install %{_javadir}/el_1_0_api.jar el_1_0_api %{_javadir}/%{name}-el-%{elspec}-api.jar 20300
%preun el-2_2-api %preun el-2_2-api
if [ "$1" = "0" ]; then if [ $1 -eq 0 ] ; then
%{_sbindir}/update-alternatives --remove el_api %{_javadir}/%{name}-el-%{elspec}-api.jar %{_sbindir}/update-alternatives --remove el_api %{_javadir}/%{name}-el-%{elspec}-api.jar
%{_sbindir}/update-alternatives --remove el_1_0_api %{_javadir}/%{name}-el-%{elspec}-api.jar %{_sbindir}/update-alternatives --remove el_1_0_api %{_javadir}/%{name}-el-%{elspec}-api.jar
fi fi
@ -609,7 +611,7 @@ fi
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20200 %{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20200
%postun jsp-2_2-api %postun jsp-2_2-api
if [ "$1" = "0" ]; then if [ $1 -eq 0 ] ; then
%{_sbindir}/update-alternatives --remove jsp \ %{_sbindir}/update-alternatives --remove jsp \
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar %{_javadir}/%{name}-jsp-%{jspspec}-api.jar
fi fi
@ -619,7 +621,7 @@ fi
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar 30000 %{_javadir}/%{name}-servlet-%{servletspec}-api.jar 30000
%postun servlet-3_0-api %postun servlet-3_0-api
if [ "$1" = "0" ]; then if [ $1 -eq 0 ] ; then
%{_sbindir}/update-alternatives --remove servlet \ %{_sbindir}/update-alternatives --remove servlet \
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar %{_javadir}/%{name}-servlet-%{servletspec}-api.jar
fi fi
@ -638,7 +640,6 @@ rm -f \
%attr(0755,root,root) %{_bindir}/%{name}-digest %attr(0755,root,root) %{_bindir}/%{name}-digest
%attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper %attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper
%attr(0755,root,root) %{_sbindir}/d%{name} %attr(0755,root,root) %{_sbindir}/d%{name}
# % attr(0755,root,root) %{_sbindir}/%{name}
%if %{with_systemd} %if %{with_systemd}
%attr(0644,root,root) %{_unitdir}/%{name}.service %attr(0644,root,root) %{_unitdir}/%{name}.service
%attr(0755,root,root) %{_sbindir}/%{name}-sysd %attr(0755,root,root) %{_sbindir}/%{name}-sysd
@ -650,12 +651,9 @@ rm -f \
%if ! %{with_systemd} %if ! %{with_systemd}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%endif %endif
# sysconfig removal
# % config(noreplace) %{_sysconfdir}/sysconfig/%{name}
# bnc#726307 # bnc#726307
%attr(0775,root,tomcat) %dir %{confdir} %attr(0775,root,tomcat) %dir %{confdir}
%{confdir}/Catalina %{confdir}/Catalina
# % attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
%config(noreplace) %{confdir}/%{name}.conf %config(noreplace) %{confdir}/%{name}.conf
%config(noreplace) %{confdir}/*.policy %config(noreplace) %{confdir}/*.policy
%config(noreplace) %{confdir}/*.properties %config(noreplace) %{confdir}/*.properties
@ -698,6 +696,10 @@ rm -f \
%{libdir}/%{name}-el-%{elspec}-api.jar %{libdir}/%{name}-el-%{elspec}-api.jar
%{_mavenpomdir}/JPP-%{name}-el-api.pom %{_mavenpomdir}/JPP-%{name}-el-api.pom
%{_mavendepmapfragdir}/%{name}-tomcat-el-api %{_mavendepmapfragdir}/%{name}-tomcat-el-api
%ghost %{_javadir}/el_1_0_api.jar
%ghost %{_javadir}/el_api.jar
%ghost %{_sysconfdir}/alternatives/el_1_0_api.jar
%ghost %{_sysconfdir}/alternatives/el_api.jar
%files javadoc %files javadoc
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
@ -707,7 +709,8 @@ rm -f \
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
%{_javadir}/%{name}-jsp-%{jspspec}-api.jar %{_javadir}/%{name}-jsp-%{jspspec}-api.jar
%{_javadir}/%{name}-jsp-api.jar %{_javadir}/%{name}-jsp-api.jar
# % ghost %{_javadir}/jsp.jar %ghost %{_javadir}/jsp.jar
%ghost %{_sysconfdir}/alternatives/jsp.jar
%{_mavenpomdir}/JPP-%{name}-jsp-api.pom %{_mavenpomdir}/JPP-%{name}-jsp-api.pom
%{_mavendepmapfragdir}/%{name}-tomcat-jsp-api %{_mavendepmapfragdir}/%{name}-tomcat-jsp-api
@ -737,7 +740,8 @@ rm -f \
%doc LICENSE %doc LICENSE
%{_javadir}/%{name}-servlet-%{servletspec}-api.jar %{_javadir}/%{name}-servlet-%{servletspec}-api.jar
%{_javadir}/%{name}-servlet-api.jar %{_javadir}/%{name}-servlet-api.jar
# % ghost %{_javadir}/servlet.jar %ghost %{_javadir}/servlet.jar
%ghost %{_sysconfdir}/alternatives/servlet.jar
%{_mavendepmapfragdir}/%{name}-tomcat-servlet-api %{_mavendepmapfragdir}/%{name}-tomcat-servlet-api
%{_mavenpomdir}/JPP-%{name}-servlet-api.pom %{_mavenpomdir}/JPP-%{name}-servlet-api.pom