]>
Commit | Line | Data |
---|---|---|
3ba87888 | 1 | |
eca62e60 | 2 | # Conditional build: |
ac632beb | 3 | %bcond_without javadoc # skip building javadocs |
1d6ec01d | 4 | %bcond_without webservices # skip building webservices |
1d6ec01d | 5 | |
6 | %define jspapiver 2.1 | |
7 | %define servletapiver 2.5 | |
8 | ||
3ba87888 | 9 | %include /usr/lib/rpm/macros.java |
868907c0 | 10 | Summary: Web server and Servlet/JSP Engine, RI for Servlet %{servletapiver}/JSP %{jspapiver} API |
f02af67f | 11 | Summary(pl.UTF-8): Serwer www i silnik Servlet/JSP będący wzorcową implementacją API Servlet %{servletapiver}/JSP %{jspapiver} |
14a619da | 12 | Name: tomcat |
09568a96 | 13 | Version: 6.0.29 |
20c2b709 | 14 | Release: 5 |
c1934721 | 15 | License: Apache v2.0 |
16 | Group: Networking/Daemons/Java | |
1d6ec01d | 17 | Source0: http://www.apache.org/dist/tomcat/tomcat-6/v%{version}/src/apache-%{name}-%{version}-src.tar.gz |
09568a96 | 18 | # Source0-md5: 260de5ae62f415b9c085c5aeed4ef24c |
14a619da | 19 | Source1: apache-%{name}.init |
20 | Source2: apache-%{name}.sysconfig | |
1d6ec01d | 21 | Source3: %{name}-build.properties |
22 | Source10: %{name}-context-ROOT.xml | |
23 | Source11: %{name}-context-docs.xml | |
24 | Source12: %{name}-context-manager.xml | |
25 | Source13: %{name}-context-host-manager.xml | |
26 | Source14: %{name}-context-examples.xml | |
27 | Patch0: %{name}-build.xml.patch | |
28 | Patch1: %{name}-extras.xml.patch | |
1e19945f | 29 | Patch2: server.xml-URIEncoding-utf8.patch |
336b6ea8 | 30 | Patch3: %{name}-LDAPUserDatabase.patch |
f952cac2 | 31 | Patch4: %{name}-catalina.policy-javadir.patch |
20c2b709 | 32 | Patch5: %{name}-userdir.patch |
aef723ef | 33 | URL: http://tomcat.apache.org/ |
498e9275 | 34 | BuildRequires: ant >= 1.5.3 |
7ea1b4e7 | 35 | BuildRequires: ant-trax |
5d4d27d1 | 36 | BuildRequires: java-commons-daemon >= 1.0 |
1d6ec01d | 37 | BuildRequires: java-commons-dbcp-tomcat5 >= 0:1.1 |
ffe85d25 | 38 | BuildRequires: java-commons-pool-tomcat5 |
0f9529d5 | 39 | BuildRequires: java-eclipse-jdt >= 3.2 |
1d6ec01d | 40 | %if %{with webservices} |
1d6ec01d | 41 | BuildRequires: java(JSR109) |
3ba87888 | 42 | BuildRequires: java-geronimo-spec-jaxrpc |
1d6ec01d | 43 | %endif |
e5a85283 | 44 | BuildRequires: java-jdbc-mysql |
21a8c36d | 45 | BuildRequires: java-mail |
25b4b7d9 | 46 | BuildRequires: jdk |
7ea1b4e7 | 47 | BuildRequires: jpackage-utils |
a18fb636 | 48 | BuildRequires: rpm-javaprov |
7ea1b4e7 | 49 | BuildRequires: rpmbuild(macros) >= 1.300 |
8129909e ER |
50 | Requires(post,preun): /sbin/chkconfig |
51 | Requires(postun): /usr/sbin/groupdel | |
52 | Requires(postun): /usr/sbin/userdel | |
53 | Requires(pre): /bin/id | |
54 | Requires(pre): /usr/bin/getgid | |
55 | Requires(pre): /usr/sbin/groupadd | |
56 | Requires(pre): /usr/sbin/useradd | |
d5057aa4 | 57 | Requires: java(jaxp_parser_impl) |
58 | Requires: java(jndi) >= 1.2.1 | |
2d7d7c63 | 59 | Requires: java-%{name}-catalina = %{epoch}:%{version}-%{release} |
60 | Requires: java-%{name}-coyote = %{epoch}:%{version}-%{release} | |
d0340044 | 61 | Requires: java-%{name}-jasper = %{epoch}:%{version}-%{release} |
ffe85d25 | 62 | Requires: java-commons-dbcp-tomcat5 >= 0:1.1 |
ffe85d25 | 63 | Requires: java-commons-pool-tomcat5 |
da4f9769 | 64 | Requires: java-jdbc-mysql |
b6c309e6 | 65 | Requires: java-mail |
da4f9769 | 66 | Requires: java-servletapi = %{epoch}:%{version}-%{release} |
06f3c8c2 | 67 | Requires: jpackage-utils |
3352e747 | 68 | Requires: jre >= 1.2 |
06f3c8c2 | 69 | Requires: jsvc |
eca62e60 | 70 | Requires: rc-scripts |
da4f9769 | 71 | Suggests: tomcat-native |
fa20abb1 | 72 | Provides: group(servlet) |
201f6baa | 73 | Provides: group(tomcat) |
74 | Provides: user(tomcat) | |
26763826 | 75 | Obsoletes: apache-tomcat |
51bcbcd2 | 76 | Obsoletes: jakarta-tomcat |
623f0978 | 77 | BuildArch: noarch |
78 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
79 | ||
a97a4eb2 | 80 | %define _tomcatdir %{_datadir}/tomcat |
623f0978 | 81 | %define _logdir %{_var}/log |
a0446376 | 82 | %define _vardir %{_var}/lib/tomcat |
623f0978 | 83 | |
1d6ec01d | 84 | %define find_jar() %{expand:%%define jarfile {%(jar=$(find-jar %1); echo ${jar:-%%nil})}}%{?jarfile}%{!?jarfile:%{error:find-jar %1 failed}}%{nil} |
85 | ||
623f0978 | 86 | %description |
eca62e60 ER |
87 | Tomcat is the servlet container that is used in the official Reference |
88 | Implementation for the Java Servlet and JavaServer Pages technologies. | |
89 | The Java Servlet and JavaServer Pages specifications are developed by | |
90 | Sun under the Java Community Process. | |
623f0978 | 91 | |
eca62e60 ER |
92 | Tomcat is developed in an open and participatory environment and |
93 | released under the Apache Software License. Tomcat is intended to be a | |
94 | collaboration of the best-of-breed developers from around the world. | |
95 | We invite you to participate in this open development project. | |
96 | ||
f045ab88 JB |
97 | %description -l pl.UTF-8 |
98 | Tomcat to kontener serwletowy używany przez oficjalną implementację | |
99 | wzorcową technologii Java Servlet i JavaServer Pages. Specyfikacje | |
51bcbcd2 ER |
100 | Java Servlet i JavaServer Pages są rozwijane przez Suna zgodnie z Java |
101 | Community Process. | |
623f0978 | 102 | |
1d6ec01d | 103 | %package webapp-docs |
51bcbcd2 | 104 | Summary: The Apache Tomcat Servlet/JSP Container documentation |
152e6062 | 105 | Summary(pl.UTF-8): Dokumentacja do Tomcata - kontenera Servlet/JSP |
c1934721 | 106 | Group: Documentation |
26763826 | 107 | Obsoletes: apache-tomcat-doc |
51bcbcd2 | 108 | Obsoletes: jakarta-tomcat-doc |
1d6ec01d | 109 | Obsoletes: tomcat-doc |
623f0978 | 110 | |
1d6ec01d | 111 | %description webapp-docs |
e1f70dd8 JB |
112 | The Tomcat Servlet/JSP Container documentation. |
113 | ||
1d6ec01d | 114 | %description webapp-docs -l pl.UTF-8 |
152e6062 | 115 | Dokumentacja do Tomcata - kontenera Servlet/JSP. |
623f0978 | 116 | |
1d6ec01d | 117 | %package webapp-manager |
118 | Summary: The Apache Tomcat Servlet/JSP application manager | |
119 | Summary(pl.UTF-8): Zarządca aplikacji w Tomcacie | |
120 | Group: Networking/Daemons/Java/Servlets | |
8917be8d | 121 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1d6ec01d | 122 | |
123 | %description webapp-manager | |
124 | The Apache Tomcat Servlet/JSP application manager. | |
125 | ||
126 | %description webapp-manager -l pl.UTF-8 | |
127 | Zarządca aplikacji w Tomcacie. | |
128 | ||
129 | %package webapp-host-manager | |
130 | Summary: The Apache Tomcat Servlet/JSP virtual hosts manager | |
131 | Summary(pl.UTF-8): Zarządca wirtualnych hostów w Tomcacie | |
c1934721 | 132 | Group: Networking/Daemons/Java/Servlets |
8917be8d | 133 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1d6ec01d | 134 | Obsoletes: tomcat-admin |
804609f8 | 135 | |
1d6ec01d | 136 | %description webapp-host-manager |
137 | The Apache Tomcat Servlet/JSP virtual hosts manager. | |
804609f8 | 138 | |
1d6ec01d | 139 | %description webapp-host-manager -l pl.UTF-8 |
140 | Zarządca wirtualnych hostów w Tomcacie. | |
141 | ||
142 | %package webapp-examples | |
143 | Summary: The Apache Tomcat Servlet/JSP example applications | |
144 | Summary(pl.UTF-8): Przykładowe aplikacje dla Tomcata | |
145 | Group: Networking/Daemons/Java/Servlets | |
8917be8d | 146 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1d6ec01d | 147 | |
148 | %description webapp-examples | |
149 | The Apache Tomcat Servlet/JSP example applications. | |
150 | ||
151 | %description webapp-examples -l pl.UTF-8 | |
152 | Przykładowe aplikacje dla Tomcata. | |
153 | ||
154 | %package webservices | |
155 | Summary: Web Services support (JSR 109) | |
156 | Group: Libraries/Java | |
da4f9769 | 157 | Requires: %{name} = %{epoch}:%{version}-%{release} |
1d6ec01d | 158 | Requires: java(JSR109) |
3ba87888 | 159 | Requires: java-geronimo-spec-jaxrpc |
1d6ec01d | 160 | |
161 | %description webservices | |
162 | Factories for JSR 109 which may be used to resolve web services | |
163 | references. | |
804609f8 | 164 | |
df85b7fd | 165 | %package -n java-tomcat-catalina |
f02af67f | 166 | Summary: Tomcat's servlet container |
167 | Group: Libraries/Java | |
168 | Requires: jpackage-utils | |
169 | ||
df85b7fd | 170 | %description -n java-tomcat-catalina |
f02af67f | 171 | Catalina is Tomcat's servlet container. Catalina implements Sun |
172 | Microsystems' specifications for servlet and JavaServer Pages (JSP). | |
173 | ||
df85b7fd | 174 | %package -n java-tomcat-coyote |
f02af67f | 175 | Summary: Tomcat HTTP connector |
176 | Group: Libraries/Java | |
177 | Requires: jpackage-utils | |
178 | ||
df85b7fd | 179 | %description -n java-tomcat-coyote |
f02af67f | 180 | Coyote is Tomcat's HTTP Connector component that supports the HTTP 1.1 |
181 | protocol for the web server or application container. Coyote listens | |
182 | for incoming connections on a specific TCP port on the server and | |
183 | forwards the request to the Tomcat Engine to process the request and | |
184 | send back a response to the requesting client. | |
185 | ||
d0340044 | 186 | %package -n java-tomcat-jasper |
55a9c77b | 187 | Summary: JSP compiler |
188 | Summary(pl.UTF-8): Kompilator JSP | |
d4ae229e | 189 | Group: Libraries/Java |
0f9529d5 | 190 | Requires: java-eclipse-jdt >= 3.2 |
da4f9769 | 191 | Requires: jpackage-utils |
26763826 | 192 | Obsoletes: apache-tomcat-jasper |
d0340044 | 193 | Obsoletes: tomcat-jasper |
d4ae229e | 194 | |
d0340044 | 195 | %description -n java-tomcat-jasper |
55a9c77b | 196 | Jasper is Java ServerPages compiler used by Apache Tomcat servlet |
197 | container. | |
198 | ||
d0340044 | 199 | %description -n java-tomcat-jasper -l pl.UTF-8 |
55a9c77b | 200 | Jasper jest kompilatorem Java ServerPages używanym przez kontener |
201 | servletów Apache Tomcat. | |
d4ae229e | 202 | |
1d6ec01d | 203 | %package -n java-servletapi |
204 | Summary: Java servlet and JSP implementation classes | |
205 | Summary(pl.UTF-8): Klasy z implementacją Java Servlet i JSP | |
206 | Group: Libraries/Java | |
d5057aa4 | 207 | Provides: java(jsp) = %{jspapiver} |
208 | Provides: java(servlet) = %{servletapiver} | |
37db1679 | 209 | Obsoletes: jakarta-servletapi5 |
0f9529d5 | 210 | Obsoletes: java-servletapi5 |
1d6ec01d | 211 | |
212 | %description -n java-servletapi | |
213 | Implementation classes of the Java Servlet and JSP APIs (packages | |
214 | javax.servlet, javax.servlet.http, javax.servlet.jsp, and | |
215 | javax.servlet.jsp.tagext). | |
216 | ||
217 | %description -n java-servletapi -l pl.UTF-8 | |
218 | Implementacje klas API Java Servlet i JSP (pakiety javax.servlet, | |
219 | javax.servlet.http, javax.servlet.jsp i java.servlet.jsp.tagext). | |
220 | ||
623f0978 | 221 | %prep |
14a619da | 222 | %setup -q -n apache-%{name}-%{version}-src |
1d6ec01d | 223 | %patch0 -p0 |
224 | %patch1 -p0 | |
1e19945f | 225 | %patch2 -p1 |
336b6ea8 | 226 | %patch3 -p1 |
f952cac2 | 227 | %patch4 -p1 |
20c2b709 | 228 | %patch5 -p1 |
e2f6574d | 229 | |
1d6ec01d | 230 | # we don't need those scripts |
231 | rm bin/*.bat | |
232 | rm bin/{startup,shutdown}.sh | |
eca62e60 | 233 | |
1e19945f | 234 | cp -a %{SOURCE3} build.properties |
623f0978 | 235 | |
236 | %build | |
eca62e60 ER |
237 | TOPDIR=$(pwd) |
238 | ||
1e19945f ER |
239 | %ant \ |
240 | -Drpm.javadir=%{_javadir} \ | |
241 | -Drpm.libdir=%{_libdir} | |
1d6ec01d | 242 | |
243 | %if %{with javadoc} | |
244 | %ant -f dist.xml dist-javadoc | |
245 | %endif | |
246 | ||
247 | %if %{with webservices} | |
248 | mkdir -p output/extras/webservices | |
249 | ||
f952cac2 JR |
250 | ln -sf %{_javadir}/geronimo-spec-jaxrpc.jar output/extras/webservices/jaxrpc.jar |
251 | ln -sf %{_javadir}/jsr109.jar output/extras/webservices/wsdl4j.jar | |
1d6ec01d | 252 | |
253 | %ant -f extras.xml webservices | |
254 | %endif | |
3bd96a5e | 255 | |
623f0978 | 256 | %install |
257 | rm -rf $RPM_BUILD_ROOT | |
1d6ec01d | 258 | cd output/build |
259 | ||
a97a4eb2 ER |
260 | TOMCATDIR=$RPM_BUILD_ROOT%{_tomcatdir} |
261 | CATALINADIR=$RPM_BUILD_ROOT/var/lib/tomcat | |
623f0978 | 262 | |
f0434189 | 263 | # useful for constructing relative symlinks. Is there a better way? |
264 | TOMCATDIRREV=$(echo %{_tomcatdir} | sed 's#[^/]\+#..#g;s#^/##') | |
265 | CATALINADIRREV=$(echo /var/lib/tomcat | sed 's#[^/]\+#..#g;s#^/##') | |
266 | SYSCONFDIRREV=$(echo %{_sysconfdir} | sed 's#[^/]\+#..#g;s#^/##') | |
267 | ||
1d6ec01d | 268 | install -d $TOMCATDIR \ |
269 | $CATALINADIR/temp \ | |
98133f85 | 270 | $RPM_BUILD_ROOT%{_vardir}/webapps \ |
a0446376 | 271 | $RPM_BUILD_ROOT%{_vardir}/work \ |
98133f85 | 272 | $RPM_BUILD_ROOT%{_vardir}/conf \ |
1d6ec01d | 273 | $RPM_BUILD_ROOT%{_logdir}/tomcat \ |
125df118 | 274 | $RPM_BUILD_ROOT/etc/sysconfig \ |
a0446376 | 275 | $RPM_BUILD_ROOT/etc/rc.d/init.d |
389e46b9 | 276 | |
1e19945f ER |
277 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/tomcat |
278 | cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/tomcat | |
623f0978 | 279 | |
3bd96a5e | 280 | cp -a conf/* $CATALINADIR/conf |
1d6ec01d | 281 | install -d $CATALINADIR/conf/Catalina/localhost |
1e19945f ER |
282 | cp -a %{SOURCE10} $CATALINADIR/conf/Catalina/localhost/ROOT.xml |
283 | cp -a %{SOURCE11} $CATALINADIR/conf/Catalina/localhost/docs.xml | |
284 | cp -a %{SOURCE12} $CATALINADIR/conf/Catalina/localhost/manager.xml | |
285 | cp -a %{SOURCE13} $CATALINADIR/conf/Catalina/localhost/host-manager.xml | |
286 | cp -a %{SOURCE14} $CATALINADIR/conf/Catalina/localhost/examples.xml | |
1d6ec01d | 287 | |
288 | cp -a bin lib webapps $TOMCATDIR | |
3bd96a5e | 289 | cp -a temp $CATALINADIR |
a97a4eb2 | 290 | |
f0434189 | 291 | ln -sf $CATALINADIRREV%{_logdir}/tomcat $CATALINADIR/logs |
292 | ln -sf $TOMCATDIRREV%{_logdir}/tomcat $TOMCATDIR/logs | |
293 | ln -sf $TOMCATDIRREV%{_vardir}/work $TOMCATDIR/work | |
294 | ln -sf $TOMCATDIRREV%{_vardir}/conf $TOMCATDIR/conf | |
295 | ln -sf $SYSCONFDIRREV%{_vardir}/conf $RPM_BUILD_ROOT%{_sysconfdir}/tomcat | |
a97a4eb2 ER |
296 | |
297 | # symlinks instead of copies | |
1fe35e78 | 298 | jars="commons-daemon commons-logging-api" |
fddf8ded ER |
299 | for jar in $jars; do |
300 | jar=$(find-jar $jar) | |
301 | ln -sf $jar $TOMCATDIR/bin | |
302 | done | |
303 | ||
b6c309e6 | 304 | jars="commons-pool-tomcat5 commons-dbcp-tomcat5 mysql-connector-java org.eclipse.jdt.core mail" |
1fe35e78 | 305 | for jar in $jars; do |
306 | jar=$(find-jar $jar) | |
307 | ln -sf $jar $TOMCATDIR/lib | |
308 | done | |
309 | ||
1d6ec01d | 310 | install -d $RPM_BUILD_ROOT%{_javadir} |
311 | mv $TOMCATDIR/lib/jasper*.jar $RPM_BUILD_ROOT%{_javadir} | |
312 | mv $TOMCATDIR/lib/jsp-api.jar $RPM_BUILD_ROOT%{_javadir}/jsp-api-%{jspapiver}.jar | |
313 | mv $TOMCATDIR/lib/servlet-api.jar $RPM_BUILD_ROOT%{_javadir}/servlet-api-%{servletapiver}.jar | |
f02af67f | 314 | mv $TOMCATDIR/lib/catalina.jar $RPM_BUILD_ROOT%{_javadir}/tomcat6-catalina.jar |
315 | mv $TOMCATDIR/lib/tomcat-coyote.jar $RPM_BUILD_ROOT%{_javadir}/tomcat6-coyote.jar | |
3bd96a5e | 316 | |
1d6ec01d | 317 | ln -s jsp-api-%{jspapiver}.jar $RPM_BUILD_ROOT%{_javadir}/jsp-api.jar |
318 | ln -s servlet-api-%{servletapiver}.jar $RPM_BUILD_ROOT%{_javadir}/servlet-api.jar | |
3bd96a5e | 319 | |
1d6ec01d | 320 | # XXX add softlinks jasper-compiler.jar and jasper-runtime for compatibility with tomcat 5.5? |
1d6ec01d | 321 | ln -sf %{_javadir}/jasper-el.jar $TOMCATDIR/lib |
322 | ln -sf %{_javadir}/jasper.jar $TOMCATDIR/lib | |
6378940b | 323 | |
2b6adad9 | 324 | ln -sf %{_javadir}/jsp-api-%{jspapiver}.jar $TOMCATDIR/lib/jsp-api.jar |
325 | ln -sf %{_javadir}/servlet-api-%{servletapiver}.jar $TOMCATDIR/lib/servlet-api.jar | |
a0446376 | 326 | |
f02af67f | 327 | ln -sf %{_javadir}/tomcat6-catalina.jar $TOMCATDIR/lib/catalina.jar |
328 | ln -sf %{_javadir}/tomcat6-coyote.jar $TOMCATDIR/lib/tomcat-coyote.jar | |
329 | ||
1d6ec01d | 330 | %if %{with webservices} |
331 | install ../extras/catalina-ws.jar $TOMCATDIR/lib/catalina-ws.jar | |
332 | ||
333 | ln -s %{_javadir}/geronimo-spec-jaxrpc.jar $TOMCATDIR/lib/jaxrpc.jar | |
334 | ln -s %{_javadir}/jsr109.jar $TOMCATDIR/lib/jsr109.jar | |
335 | %endif | |
d4ae229e | 336 | |
623f0978 | 337 | %clean |
338 | rm -rf $RPM_BUILD_ROOT | |
339 | ||
2b56d949 | 340 | %pre |
bc75997d | 341 | %groupadd -g 234 -r -f tomcat |
fa20abb1 | 342 | %groupadd -g 237 -r -f servlet |
343 | %useradd -u 234 -r -d /var/lib/tomcat -s /bin/false -c "Tomcat User" -g tomcat -G servlet tomcat | |
2b56d949 | 344 | |
345 | %post | |
346 | /sbin/chkconfig --add tomcat | |
6c0937ca | 347 | %service tomcat restart |
2b56d949 | 348 | |
349 | %preun | |
350 | if [ "$1" = "0" ]; then | |
6c0937ca | 351 | %service tomcat stop |
2b56d949 | 352 | /sbin/chkconfig --del tomcat |
353 | fi | |
354 | ||
355 | %postun | |
356 | if [ "$1" = "0" ]; then | |
201f6baa | 357 | %userremove tomcat |
358 | %groupremove tomcat | |
fa20abb1 | 359 | %groupremove servlet |
2b56d949 | 360 | fi |
361 | ||
623f0978 | 362 | %files |
363 | %defattr(644,root,root,755) | |
1d6ec01d | 364 | %doc KEYS RELEASE-NOTES RELEASE-PLAN-6.0.txt RUNNING.txt |
a97a4eb2 | 365 | %attr(754,root,root) /etc/rc.d/init.d/tomcat |
ab574f59 | 366 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/tomcat |
f0434189 | 367 | %{_sysconfdir}/tomcat |
a0446376 | 368 | %dir %{_tomcatdir} |
98133f85 | 369 | %dir %{_tomcatdir}/conf |
a0446376 | 370 | %dir %{_tomcatdir}/bin |
a97a4eb2 | 371 | %{_tomcatdir}/bin/catalina-tasks.xml |
389e46b9 | 372 | %attr(755,root,root) %{_tomcatdir}/bin/*.sh |
389e46b9 | 373 | %{_tomcatdir}/bin/*.jar |
1d6ec01d | 374 | %dir %{_tomcatdir}/lib |
375 | %{_tomcatdir}/lib/annotations-api.jar | |
d97bb7aa | 376 | %{_tomcatdir}/lib/catalina-ant.jar |
377 | %{_tomcatdir}/lib/catalina-ha.jar | |
1d6ec01d | 378 | %{_tomcatdir}/lib/catalina.jar |
d97bb7aa | 379 | %{_tomcatdir}/lib/catalina-tribes.jar |
1d6ec01d | 380 | %{_tomcatdir}/lib/commons-dbcp-tomcat5.jar |
3a73cb68 | 381 | %{_tomcatdir}/lib/commons-pool-tomcat5.jar |
1d6ec01d | 382 | %{_tomcatdir}/lib/el-api.jar |
34a6b0e4 | 383 | %{_tomcatdir}/lib/jasper-el.jar |
384 | %{_tomcatdir}/lib/jasper.jar | |
2ab9f95e | 385 | %{_tomcatdir}/lib/jsp-api.jar |
7b627a4a | 386 | %{_tomcatdir}/lib/mail.jar |
d97bb7aa | 387 | %{_tomcatdir}/lib/mysql-connector-java.jar |
34a6b0e4 | 388 | %{_tomcatdir}/lib/org.eclipse.jdt.core.jar |
2ab9f95e | 389 | %{_tomcatdir}/lib/servlet-api.jar |
1d6ec01d | 390 | %{_tomcatdir}/lib/tomcat-coyote.jar |
d97bb7aa | 391 | %{_tomcatdir}/lib/tomcat-i18n-es.jar |
392 | %{_tomcatdir}/lib/tomcat-i18n-fr.jar | |
1d6ec01d | 393 | %{_tomcatdir}/lib/tomcat-i18n-ja.jar |
3bf2e196 ER |
394 | |
395 | %dir %{_tomcatdir}/webapps | |
396 | ||
397 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/ROOT.xml | |
398 | %{_tomcatdir}/webapps/ROOT | |
399 | ||
50aa3a1c | 400 | %{_tomcatdir}/logs |
a0446376 | 401 | %{_tomcatdir}/work |
efc565cf | 402 | %dir %attr(770,root,tomcat) %{_vardir} |
1d6ec01d | 403 | # these directory has to be writeable because /admin need to modify config |
404 | # files and create temporary files | |
efc565cf | 405 | %dir %attr(770,root,tomcat) %{_vardir}/conf |
406 | %dir %attr(770,root,tomcat) %{_vardir}/conf/Catalina | |
49a8ad15 | 407 | %dir %{_vardir}/conf/Catalina/localhost |
3bf2e196 | 408 | # tomcat config has to be writeable because of tomcat-users.xml file and Catalina dir |
8ffc4ec0 | 409 | %config(noreplace) %attr(660,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/catalina.policy |
410 | %config(noreplace) %attr(660,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/*.properties* | |
411 | %config(noreplace) %attr(660,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/*.xml | |
efc565cf | 412 | %dir %attr(770,root,tomcat) %{_vardir}/work |
413 | %dir %attr(770,root,tomcat) %{_vardir}/webapps | |
414 | %dir %attr(770,root,tomcat) %{_vardir}/temp | |
415 | %dir %attr(770,root,tomcat) %{_logdir}/tomcat | |
9e1e98ce | 416 | %{_vardir}/logs |
623f0978 | 417 | |
1d6ec01d | 418 | %files webapp-docs |
ff740076 | 419 | %defattr(644,root,root,755) |
1d6ec01d | 420 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/docs.xml |
421 | %{_tomcatdir}/webapps/docs | |
d4ae229e | 422 | |
1d6ec01d | 423 | %files webapp-manager |
804609f8 | 424 | %defattr(644,root,root,755) |
1d6ec01d | 425 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/manager.xml |
426 | %{_tomcatdir}/webapps/manager | |
427 | ||
428 | %files webapp-host-manager | |
429 | %defattr(644,root,root,755) | |
430 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/host-manager.xml | |
431 | %{_tomcatdir}/webapps/host-manager | |
432 | ||
433 | %files webapp-examples | |
434 | %defattr(644,root,root,755) | |
435 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/examples.xml | |
436 | %{_tomcatdir}/webapps/examples | |
437 | ||
438 | %if %{with webservices} | |
439 | %files webservices | |
440 | %defattr(644,root,root,755) | |
d97bb7aa | 441 | %{_tomcatdir}/lib/catalina-ws.jar |
1d6ec01d | 442 | %{_tomcatdir}/lib/jsr109.jar |
443 | %{_tomcatdir}/lib/jaxrpc.jar | |
1d6ec01d | 444 | %endif |
804609f8 | 445 | |
d0340044 | 446 | %files -n java-tomcat-jasper |
7e500426 | 447 | %defattr(644,root,root,755) |
1d6ec01d | 448 | %{_javadir}/jasper-el.jar |
449 | %{_javadir}/jasper.jar | |
450 | ||
df85b7fd | 451 | %files -n java-tomcat-catalina |
f02af67f | 452 | %defattr(644,root,root,755) |
453 | %{_javadir}/tomcat6-catalina.jar | |
454 | ||
df85b7fd | 455 | %files -n java-tomcat-coyote |
f02af67f | 456 | %defattr(644,root,root,755) |
457 | %{_javadir}/tomcat6-coyote.jar | |
458 | ||
1d6ec01d | 459 | %files -n java-servletapi |
460 | %defattr(644,root,root,755) | |
461 | %{_javadir}/jsp-api*.jar | |
462 | %{_javadir}/servlet-api*.jar |