147 lines
5.7 KiB
RPMSpec
147 lines
5.7 KiB
RPMSpec
Name: apache-tomcat
|
|
Version: 7.0.103
|
|
Release: 2mamba
|
|
Summary: Apache Servlet/JSP Engine, RI for Servlet 3.0/JSP 2.2 API
|
|
Group: System/Servers
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://tomcat.apache.org
|
|
Source0: https://archive.apache.org/dist/tomcat/tomcat-7/v%{version}/bin/apache-tomcat-%{version}.tar.gz
|
|
Source1: tomcat7.service
|
|
Source2: tomcat7.sysusers
|
|
Source3: tomcat7.tmpfiles
|
|
License: Apache License 2.0
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: jpackage-utils
|
|
Requires: eclipse-ecj
|
|
Requires: apache-commons-daemon
|
|
Requires: apache-commons-daemon-jsvc
|
|
Requires: procps
|
|
Requires: shadow-common
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies.
|
|
The Java Servlet and JavaServer Pages specifications are developed by Sun under the Java Community Process.
|
|
|
|
Tomcat is developed in an open and participatory environment and released under the Apache Software License 2.0. Tomcat is intended to be a collaboration of the best-of-breed developers from around the world.
|
|
We invite you to participate in this open development project.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
# Tomcat general files (from Arch Linux)
|
|
install -dm 755 %{buildroot}%{_javadir}/tomcat7
|
|
install -dm 755 %{buildroot}%{_datadir}/tomcat7
|
|
cp -dr --no-preserve=ownership bin %{buildroot}%{_datadir}/tomcat7
|
|
# commons-daemon and tomcat-natives are packaged on their own
|
|
rm %{buildroot}%{_datadir}/tomcat7/bin/{*.bat,commons-daemon*,tomcat-native.tar.gz}
|
|
ln -s %{_javadir}/commons-daemon.jar %{buildroot}%{_datadir}/tomcat7/bin/commons-daemon.jar
|
|
|
|
install -m 644 lib/* %{buildroot}%{_javadir}/tomcat7
|
|
# eclipse-ecj is packaged on its own
|
|
rm %{buildroot}%{_javadir}/tomcat7/ecj-*.jar
|
|
ln -s ../eclipse-ecj.jar %{buildroot}%{_javadir}/tomcat7/ecj.jar
|
|
|
|
ln -s %{_javadir}/tomcat7 %{buildroot}%{_datadir}/tomcat7/lib
|
|
|
|
# We log through systemd but this would still be required for stock Tomcat logging
|
|
install -dm 775 %{buildroot}/var/log/tomcat7
|
|
ln -s /var/log/tomcat7 %{buildroot}%{_datadir}/tomcat7/logs
|
|
touch %{buildroot}/var/log/tomcat7/catalina.{out,err}
|
|
|
|
install -dm 775 %{buildroot}%{_sysconfdir}/tomcat7
|
|
install -m 640 conf/* %{buildroot}%{_sysconfdir}/tomcat7
|
|
install -dm 775 %{buildroot}%{_sysconfdir}/tomcat7/Catalina
|
|
ln -s /etc/tomcat7 %{buildroot}%{_datadir}/tomcat7/conf
|
|
|
|
install -dm 775 %{buildroot}/var/lib/tomcat7
|
|
cp -r webapps %{buildroot}/var/lib/tomcat7
|
|
chmod 775 %{buildroot}/var/lib/tomcat7/webapps
|
|
ln -s /var/lib/tomcat7/webapps %{buildroot}%{_datadir}/tomcat7/webapps
|
|
|
|
install -dm 1777 %{buildroot}/var/tmp
|
|
install -dm 775 %{buildroot}/var/tmp/tomcat7/{temp,work}
|
|
ln -s /var/tmp/tomcat7/temp %{buildroot}%{_datadir}/tomcat7/temp
|
|
ln -s /var/tmp/tomcat7/work %{buildroot}%{_datadir}/tomcat7/work
|
|
|
|
install -Dm 644 %{SOURCE1} %{buildroot}%{_unitdir}/tomcat7.service
|
|
install -Dm 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/tomcat7.conf
|
|
install -Dm 644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/tomcat7.conf
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post
|
|
%systemd_post tomcat7
|
|
:
|
|
|
|
%preun
|
|
%systemd_preun tomcat7
|
|
:
|
|
|
|
%postun
|
|
%systemd_postun tomcat7
|
|
:
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%dir %{_sysconfdir}/tomcat7
|
|
%attr(-,tomcat7,root) %{_sysconfdir}/tomcat7/catalina.policy
|
|
%attr(-,tomcat7,root) %{_sysconfdir}/tomcat7/catalina.properties
|
|
%attr(-,tomcat7,root) %{_sysconfdir}/tomcat7/context.xml
|
|
%attr(-,tomcat7,root) %{_sysconfdir}/tomcat7/logging.properties
|
|
%attr(-,tomcat7,root) %{_sysconfdir}/tomcat7/server.xml
|
|
%attr(-,tomcat7,root) %{_sysconfdir}/tomcat7/tomcat-users.xml
|
|
%attr(-,tomcat7,root) %{_sysconfdir}/tomcat7/tomcat-users.xsd
|
|
%attr(-,tomcat7,root) %{_sysconfdir}/tomcat7/web.xml
|
|
%{_unitdir}/tomcat7.service
|
|
%{_sysusersdir}/tomcat7.conf
|
|
%{_tmpfilesdir}/tomcat7.conf
|
|
%dir %{_datadir}/java/tomcat7
|
|
%{_datadir}/java/tomcat7/*.jar
|
|
%dir %{_datadir}/tomcat7/bin
|
|
%{_datadir}/tomcat7/bin/*
|
|
%{_datadir}/tomcat7/conf
|
|
%{_datadir}/tomcat7/lib
|
|
%{_datadir}/tomcat7/logs
|
|
%{_datadir}/tomcat7/temp
|
|
%{_datadir}/tomcat7/webapps
|
|
%{_datadir}/tomcat7/work
|
|
%attr(-,tomcat7,root) %dir %{_localstatedir}/lib/tomcat7
|
|
%attr(-,tomcat7,root) %dir %{_localstatedir}/lib/tomcat7/webapps
|
|
%attr(-,tomcat7,root) %dir %{_localstatedir}/lib/tomcat7/webapps/ROOT
|
|
%attr(-,tomcat7,root) %{_localstatedir}/lib/tomcat7/webapps/ROOT/*
|
|
%attr(-,tomcat7,root) %dir %{_localstatedir}/lib/tomcat7/webapps/docs
|
|
%attr(-,tomcat7,root) %{_localstatedir}/lib/tomcat7/webapps/docs/*
|
|
%attr(-,tomcat7,root) %dir %{_localstatedir}/lib/tomcat7/webapps/examples
|
|
%attr(-,tomcat7,root) %{_localstatedir}/lib/tomcat7/webapps/examples/*
|
|
%attr(-,tomcat7,root) %dir %{_localstatedir}/lib/tomcat7/webapps/host-manager
|
|
%attr(-,tomcat7,root) %{_localstatedir}/lib/tomcat7/webapps/host-manager/*
|
|
%attr(-,tomcat7,root) %dir %{_localstatedir}/lib/tomcat7/webapps/manager
|
|
%attr(-,tomcat7,root) %{_localstatedir}/lib/tomcat7/webapps/manager/*
|
|
%attr(-,tomcat7,root) %{_localstatedir}/log/tomcat7/catalina.err
|
|
%attr(-,tomcat7,root) %{_localstatedir}/log/tomcat7/catalina.out
|
|
|
|
%changelog
|
|
* Thu May 21 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0.103-2mamba
|
|
- require apache-commons-daemon and apache-commons-daemon-jsvc
|
|
|
|
* Sat May 16 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 7.0.103-1mamba
|
|
- update to 7.0.103
|
|
|
|
* Fri Aug 26 2011 Automatic Build System <autodist@mambasoft.it> 7.0.20-1mamba
|
|
- update to 7.0.20
|
|
|
|
* Tue Mar 01 2011 gil <puntogil@libero.it> 7.0.9-1mamba
|
|
- update to 7.0.9
|
|
|
|
* Sun Feb 27 2011 gil <puntogil@libero.it> 7.0.8-1mamba
|
|
- update to 7.0.8
|