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