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