]>
Commit | Line | Data |
---|---|---|
afab8c93 ER |
1 | # TODO |
2 | # - rename %{name}-jasper -> java-jasper? | |
57751705 | 3 | # |
eca62e60 | 4 | # Conditional build: |
ac632beb | 5 | %bcond_without javadoc # skip building javadocs |
6 | %bcond_with jta # put jta jar into tomcat lib dir. | |
7 | %bcond_without java_sun # build with gcj (does not work) | |
eca62e60 ER |
8 | # |
9 | Summary: Apache Servlet/JSP Engine, RI for Servlet 2.4/JSP 2.0 API | |
f045ab88 | 10 | Summary(pl.UTF-8): Silnik Servlet/JSP Apache będący wzorcową implementacją API Servlet 2.4/JSP 2.0 |
14a619da | 11 | Name: tomcat |
f9d6e42f | 12 | Version: 5.5.27 |
afab8c93 | 13 | Release: 1 |
c1934721 | 14 | License: Apache v2.0 |
15 | Group: Networking/Daemons/Java | |
14a619da | 16 | Source0: http://www.apache.org/dist/tomcat/tomcat-5/v%{version}/src/apache-%{name}-%{version}-src.tar.gz |
f9d6e42f | 17 | # Source0-md5: eb3f196013550b9b1684e4ff18593a8e |
14a619da | 18 | Source1: apache-%{name}.init |
19 | Source2: apache-%{name}.sysconfig | |
20 | Source10: apache-%{name}-context-ROOT.xml | |
21 | Source11: apache-%{name}-context-balancer.xml | |
22 | Source12: apache-%{name}-context-jsp-examples.xml | |
23 | Source13: apache-%{name}-context-tomcat-docs.xml | |
24 | Source14: apache-%{name}-context-webdav.xml | |
25 | Patch0: apache-%{name}-skip-servletapi.patch | |
26 | Patch1: apache-%{name}-nsis.patch | |
27 | Patch2: apache-%{name}-native.patch | |
28 | Patch3: apache-%{name}-skip-jdt.patch | |
29 | Patch4: apache-%{name}-no-connectors.patch | |
30 | Patch5: apache-%{name}-dbcp.patch | |
14a619da | 31 | Patch6: apache-%{name}-struts.patch |
14a619da | 32 | Patch7: apache-%{name}-admin-struts.patch |
8527b367 | 33 | Patch8: apache-%{name}-no_links_to_examples.patch |
3eb3d75c | 34 | # Following patches are applied in tomcat svn. Remove them while updating to 5.5.28 |
35 | # See: http://tomcat.apache.org/security-5.html | |
36 | Patch100: tomcat-CVE-2008-5515.patch | |
37 | Patch101: tomcat-CVE-2009-0033.patch | |
38 | Patch102: tomcat-CVE-2009-0580.patch | |
39 | Patch103: tomcat-CVE-2009-0781.patch | |
40 | Patch104: tomcat-CVE-2009-0783.patch | |
aef723ef | 41 | URL: http://tomcat.apache.org/ |
51193398 | 42 | %if %{with java_sun} |
ac632beb | 43 | BuildRequires: java-sun >= 1.5 |
44 | BuildRequires: java-sun-jre >= 1.5 | |
45 | %else | |
45b8035c | 46 | BuildRequires: java-gcj-compat-devel |
ac632beb | 47 | %endif |
498e9275 | 48 | BuildRequires: ant >= 1.5.3 |
7ea1b4e7 ER |
49 | BuildRequires: ant-trax |
50 | BuildRequires: eclipse-jdt | |
6c0937ca | 51 | BuildRequires: jaas |
4a4e0571 | 52 | BuildRequires: java-regexp >= 0:1.3 |
5d4d27d1 | 53 | BuildRequires: java-commons-beanutils >= 1.7 |
73014acb | 54 | BuildRequires: java-commons-chain |
5d4d27d1 | 55 | BuildRequires: java-commons-collections >= 0:3.1 |
56 | BuildRequires: java-commons-collections-tomcat5 >= 0:3.1 | |
57 | BuildRequires: java-commons-daemon >= 1.0 | |
58 | BuildRequires: java-commons-dbcp >= 0:1.2.1 | |
59 | BuildRequires: java-commons-dbcp-tomcat5 >= 0:1.2.1 | |
60 | BuildRequires: java-commons-digester >= 0:1.7 | |
61 | BuildRequires: java-commons-el >= 0:1.0 | |
62 | BuildRequires: java-commons-fileupload >= 0:1.0 | |
a567480f | 63 | BuildRequires: java-commons-httpclient |
5d4d27d1 | 64 | BuildRequires: java-commons-io >= 1.4 |
65 | BuildRequires: java-commons-launcher >= 0:0.9 | |
66 | BuildRequires: java-commons-logging >= 0:1.0.4 | |
67 | BuildRequires: java-commons-modeler >= 2.0 | |
68 | BuildRequires: java-commons-pool >= 0:1.2 | |
69 | BuildRequires: java-commons-pool-tomcat5 >= 0:1.2 | |
5139e561 | 70 | BuildRequires: java-jdbc-mysql |
2547d651 | 71 | %{?with_jta:BuildRequires: java-jta >= 0:1.0.1} |
7d5d4854 | 72 | BuildRequires: java-log4j |
45b8035c | 73 | BuildRequires: java-mail >= 0:1.3.1 |
7d5d4854 | 74 | BuildRequires: java-puretls |
b3ca1c9e | 75 | BuildRequires: java-servletapi5 = %{version} |
a567480f | 76 | BuildRequires: java-struts >= 1.0.2 |
7d5d4854 | 77 | BuildRequires: java-xerces >= 0:2.7.1 |
78 | BuildRequires: java-xml-commons | |
ac4a959f ER |
79 | BuildRequires: jaxp_parser_impl >= 0:2.7.1 |
80 | BuildRequires: jdbc-stdext >= 0:2.0 | |
a97a4eb2 | 81 | BuildRequires: jmx |
ac4a959f | 82 | BuildRequires: jndi >= 0:1.2.1 |
7ea1b4e7 | 83 | BuildRequires: jpackage-utils |
f2271359 | 84 | BuildRequires: junit >= 0:3.8.1 |
7ea1b4e7 | 85 | BuildRequires: rpmbuild(macros) >= 1.300 |
8129909e ER |
86 | Requires(post,postun): /sbin/ldconfig |
87 | Requires(post,preun): /sbin/chkconfig | |
88 | Requires(postun): /usr/sbin/groupdel | |
89 | Requires(postun): /usr/sbin/userdel | |
90 | Requires(pre): /bin/id | |
91 | Requires(pre): /usr/bin/getgid | |
92 | Requires(pre): /usr/sbin/groupadd | |
93 | Requires(pre): /usr/sbin/useradd | |
55a9c77b | 94 | Requires: %{name}-jasper = %{version}-%{release} |
8129909e | 95 | Requires: jaas |
bf862eba | 96 | Requires: java-commons-beanutils |
97 | Requires: java-commons-collections | |
bf862eba | 98 | Requires: java-commons-digester |
5d4d27d1 | 99 | Requires: java-commons-el |
bf862eba | 100 | Requires: java-commons-logging |
101 | Requires: java-commons-modeler | |
058638f0 | 102 | Requires: java-commons-pool-tomcat5 |
88ebf4b2 | 103 | Requires: java-jdbc-mysql |
7d5d4854 | 104 | Requires: java-regexp |
fbf473d1 | 105 | Requires: java-servletapi5 = %{version} |
7d5d4854 | 106 | Requires: java-xml-commons |
8129909e ER |
107 | Requires: javamail >= 1.2 |
108 | Requires: jaxp_parser_impl | |
a0446376 | 109 | Requires: jdbc-stdext >= 2.0 |
a0446376 | 110 | Requires: jndi >= 1.2.1 |
8129909e | 111 | Requires: jre >= 1.2 |
a0446376 | 112 | Requires: jsse >= 1.0.2 |
2547d651 | 113 | %{?with_jta:Requires: jta >= 1.0.1} |
eca62e60 | 114 | Requires: rc-scripts |
fa20abb1 | 115 | Provides: group(servlet) |
201f6baa | 116 | Provides: group(tomcat) |
a567480f | 117 | Provides: java-servlet-container |
201f6baa | 118 | Provides: user(tomcat) |
26763826 | 119 | Obsoletes: apache-tomcat |
51bcbcd2 | 120 | Obsoletes: jakarta-tomcat |
623f0978 | 121 | BuildArch: noarch |
122 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
123 | ||
a97a4eb2 | 124 | %define _tomcatdir %{_datadir}/tomcat |
623f0978 | 125 | %define _logdir %{_var}/log |
a0446376 | 126 | %define _vardir %{_var}/lib/tomcat |
a97a4eb2 | 127 | %define _sysconfdir /etc/tomcat |
623f0978 | 128 | |
129 | %description | |
eca62e60 ER |
130 | Tomcat is the servlet container that is used in the official Reference |
131 | Implementation for the Java Servlet and JavaServer Pages technologies. | |
132 | The Java Servlet and JavaServer Pages specifications are developed by | |
133 | Sun under the Java Community Process. | |
623f0978 | 134 | |
eca62e60 ER |
135 | Tomcat is developed in an open and participatory environment and |
136 | released under the Apache Software License. Tomcat is intended to be a | |
137 | collaboration of the best-of-breed developers from around the world. | |
138 | We invite you to participate in this open development project. | |
139 | ||
f045ab88 JB |
140 | %description -l pl.UTF-8 |
141 | Tomcat to kontener serwletowy używany przez oficjalną implementację | |
142 | wzorcową technologii Java Servlet i JavaServer Pages. Specyfikacje | |
51bcbcd2 ER |
143 | Java Servlet i JavaServer Pages są rozwijane przez Suna zgodnie z Java |
144 | Community Process. | |
623f0978 | 145 | |
146 | %package doc | |
51bcbcd2 | 147 | Summary: The Apache Tomcat Servlet/JSP Container documentation |
152e6062 | 148 | Summary(pl.UTF-8): Dokumentacja do Tomcata - kontenera Servlet/JSP |
c1934721 | 149 | Group: Documentation |
26763826 | 150 | Obsoletes: apache-tomcat-doc |
51bcbcd2 | 151 | Obsoletes: jakarta-tomcat-doc |
623f0978 | 152 | |
153 | %description doc | |
e1f70dd8 JB |
154 | The Tomcat Servlet/JSP Container documentation. |
155 | ||
f045ab88 | 156 | %description doc -l pl.UTF-8 |
152e6062 | 157 | Dokumentacja do Tomcata - kontenera Servlet/JSP. |
623f0978 | 158 | |
804609f8 | 159 | %package admin |
afab8c93 | 160 | Summary: Apache Tomcat's Administration Web Application |
804609f8 | 161 | Summary(pl.UTF-8): Panel Administracyjny dla Apache Tomcat |
c1934721 | 162 | Group: Networking/Daemons/Java/Servlets |
45b8035c | 163 | Requires: %{name} = %{version}-%{release} |
bb78b380 | 164 | Requires: java-commons-chain |
737a84c7 | 165 | Obsoletes: apache-tomcat-admin |
804609f8 SP |
166 | |
167 | %description admin | |
168 | Administration Web Application for Apache Tomcat. | |
169 | ||
170 | %description admin -l pl.UTF-8 | |
171 | Panel Administracyjny dla Apache Tomcat. | |
172 | ||
d4ae229e | 173 | %package jasper |
55a9c77b | 174 | Summary: JSP compiler |
175 | Summary(pl.UTF-8): Kompilator JSP | |
d4ae229e | 176 | Group: Libraries/Java |
15b32f14 | 177 | Requires: jpackage-utils |
26763826 | 178 | Obsoletes: apache-tomcat-jasper |
d4ae229e SP |
179 | |
180 | %description jasper | |
55a9c77b | 181 | Jasper is Java ServerPages compiler used by Apache Tomcat servlet |
182 | container. | |
183 | ||
184 | %description jasper -l pl.UTF-8 | |
185 | Jasper jest kompilatorem Java ServerPages używanym przez kontener | |
186 | servletów Apache Tomcat. | |
d4ae229e | 187 | |
623f0978 | 188 | %prep |
14a619da | 189 | %setup -q -n apache-%{name}-%{version}-src |
7bfc9a0d ER |
190 | %patch0 -p1 |
191 | %patch1 -p1 | |
192 | %patch2 -p1 | |
193 | %patch3 -p1 | |
d61c5134 | 194 | %patch4 -p1 |
e40b89eb | 195 | %patch5 -p1 |
7cf40cc1 | 196 | %patch6 -p1 |
0c2410ce | 197 | %patch7 -p1 |
8527b367 | 198 | %patch8 -p1 |
7bfc9a0d | 199 | |
3eb3d75c | 200 | %patch100 -p0 |
201 | %patch101 -p0 | |
202 | %patch102 -p0 | |
203 | %patch103 -p0 | |
204 | %patch104 -p0 | |
205 | ||
9e6779ef | 206 | # we don't need those scripts |
035155d1 | 207 | rm -f container/catalina/src/bin/*.bat |
781df8b4 | 208 | rm -f container/catalina/src/bin/{startup,shutdown}.sh |
3bd96a5e | 209 | |
e2f6574d | 210 | # causes file(1) rpm to abort, and not really neccessary file |
e2f6574d ER |
211 | # file: Thumbs.db: ERROR: Cannot read short stream (Invalid argument) |
212 | # rpm: error: magic_file(ms, "Thumbs.db") failed: mode 37777700644 Cannot read short stream (Invalid argument) | |
9e6779ef | 213 | rm container/webapps/admin/images/Thumbs.db |
e2f6574d | 214 | |
9e6779ef | 215 | # servletapi built from java-servletapi5.spec |
7bfc9a0d | 216 | rm -rf servletapi |
eca62e60 ER |
217 | |
218 | # Remove pre-built jars | |
219 | find -name '*.jar' | xargs rm -fv | |
623f0978 | 220 | |
221 | %build | |
eca62e60 ER |
222 | TOPDIR=$(pwd) |
223 | ||
eca62e60 | 224 | # build tomcat 5.5 |
7bfc9a0d | 225 | cat > build.properties <<EOF |
a48f26fe | 226 | commons-beanutils.jar=$(find-jar commons-beanutils-core) |
4f9f35cf ER |
227 | commons-launcher.jar=$(find-jar commons-launcher) |
228 | commons-daemon.jar=$(find-jar commons-daemon) | |
229 | commons-digester.jar=$(find-jar commons-digester) | |
230 | commons-el.jar=$(find-jar commons-el) | |
231 | commons-logging-api.jar=$(find-jar commons-logging-api) | |
232 | commons-logging.jar=$(find-jar commons-logging) | |
233 | commons-modeler.jar=$(find-jar commons-modeler) | |
234 | xercesImpl.jar=$(find-jar jaxp_parser_impl) | |
235 | xml-apis.jar=$(find-jar xml-commons-apis) | |
236 | jdt.jar=$(find-jar org.eclipse.jdt.core) | |
c2e39bad | 237 | jasper-compiler-jdt.home=$TOPDIR/tomcat-deps |
4f9f35cf ER |
238 | commons-httpclient.jar=$(find-jar commons-httpclient) |
239 | commons-collections.jar=$(find-jar commons-collections) | |
240 | commons-fileupload.jar=$(find-jar commons-fileupload) | |
9e94226b | 241 | commons-io.jar=$(find-jar commons-io) |
4f9f35cf ER |
242 | jmx.jar=$(find-jar jmx) |
243 | jmx-tools.jar=$(find-jar jmx) | |
244 | junit.jar=$(find-jar junit) | |
a48f26fe | 245 | struts.jar=$(find-jar struts-core) |
246 | struts-core.jar=$(find-jar struts-core) | |
247 | struts-taglib.jar=$(find-jar struts-taglib) | |
4f9f35cf ER |
248 | jcert.jar=$(find-jar jcert) |
249 | jnet.jar=$(find-jar jnet) | |
250 | jsse.jar=$(find-jar jsse) | |
2547d651 | 251 | %{?with_jta:jta.jar=$(find-jar jta)} |
4f9f35cf ER |
252 | puretls.jar=$(find-jar puretls) |
253 | servlet-api.jar=$(find-jar servlet-api) | |
7bfc9a0d | 254 | servletapi.build.notrequired=true |
4f9f35cf | 255 | jsp-api.jar=$(find-jar jsp-api) |
7bfc9a0d | 256 | jspapi.build.notrequired=true |
4f9f35cf | 257 | log4j.jar=$(find-jar log4j) |
a48f26fe | 258 | tomcat-dbcp.jar=$(find-jar commons-dbcp-tomcat5) |
d4ae229e | 259 | struts.lib=%{_javadir}-struts |
eca62e60 ER |
260 | EOF |
261 | ||
3bd96a5e ER |
262 | if grep '=$' build.properties; then |
263 | : Some .jar could not be found | |
264 | exit 1 | |
265 | fi | |
266 | ||
d61c5134 ER |
267 | %ant \ |
268 | -Dcompile.source=1.4 | |
eca62e60 | 269 | |
623f0978 | 270 | %install |
271 | rm -rf $RPM_BUILD_ROOT | |
a97a4eb2 ER |
272 | cd build/build |
273 | TOMCATDIR=$RPM_BUILD_ROOT%{_tomcatdir} | |
274 | CATALINADIR=$RPM_BUILD_ROOT/var/lib/tomcat | |
623f0978 | 275 | |
a97a4eb2 | 276 | randpw=$(echo $RANDOM$$ | md5sum | cut -c 1-15) |
4f9f35cf | 277 | %{__sed} -i -e "s:SHUTDOWN:${randpw}:" conf/{server,server-minimal}.xml |
a97a4eb2 ER |
278 | |
279 | install -d $TOMCATDIR/bin \ | |
280 | $TOMCATDIR/common/{lib,classes,endorsed} \ | |
281 | $TOMCATDIR/server/{lib,classes} \ | |
282 | $TOMCATDIR/webapps \ | |
a0446376 | 283 | $RPM_BUILD_ROOT%{_logdir}/tomcat \ |
98133f85 | 284 | $RPM_BUILD_ROOT%{_vardir}/webapps \ |
a0446376 | 285 | $RPM_BUILD_ROOT%{_vardir}/work \ |
98133f85 | 286 | $RPM_BUILD_ROOT%{_vardir}/conf \ |
125df118 | 287 | $RPM_BUILD_ROOT/etc/sysconfig \ |
a0446376 | 288 | $RPM_BUILD_ROOT/etc/rc.d/init.d |
389e46b9 | 289 | |
a97a4eb2 | 290 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/tomcat |
f93b3a59 | 291 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/tomcat |
623f0978 | 292 | |
3bd96a5e | 293 | cp -a conf/* $CATALINADIR/conf |
3e2cdbf3 | 294 | install %{SOURCE10} $CATALINADIR/conf/Catalina/localhost/ROOT.xml |
295 | install %{SOURCE11} $CATALINADIR/conf/Catalina/localhost/balancer.xml | |
296 | install %{SOURCE12} $CATALINADIR/conf/Catalina/localhost/jsp-examples.xml | |
297 | install %{SOURCE13} $CATALINADIR/conf/Catalina/localhost/tomcat-docs.xml | |
298 | install %{SOURCE14} $CATALINADIR/conf/Catalina/localhost/webdav.xml | |
a97a4eb2 | 299 | cp -HR bin common server $TOMCATDIR |
eca62e60 | 300 | |
3bd96a5e ER |
301 | cp -a server/webapps $TOMCATDIR/server |
302 | cp -a webapps $TOMCATDIR | |
303 | cp -a shared $TOMCATDIR | |
304 | cp -a temp $CATALINADIR | |
a97a4eb2 | 305 | |
98133f85 | 306 | ln -sf %{_logdir}/tomcat $CATALINADIR/logs |
093ffc1c | 307 | ln -sf %{_logdir}/tomcat $TOMCATDIR/logs |
4f9f35cf | 308 | ln -sf %{_vardir}/work $TOMCATDIR/work |
98133f85 | 309 | ln -sf %{_vardir}/conf $TOMCATDIR/conf |
310 | ln -sf %{_vardir}/conf $RPM_BUILD_ROOT%{_sysconfdir} | |
a97a4eb2 ER |
311 | |
312 | # symlinks instead of copies | |
fddf8ded ER |
313 | jars="commons-daemon commons-logging-api" |
314 | for jar in $jars; do | |
315 | jar=$(find-jar $jar) | |
316 | ln -sf $jar $TOMCATDIR/bin | |
317 | done | |
318 | ||
88ebf4b2 | 319 | jars="commons-el commons-dbcp-tomcat5 commons-pool-tomcat5 servlet-api jsp-api commons-modeler jdbc-mysql" |
3bd96a5e ER |
320 | for jar in $jars; do |
321 | jar=$(find-jar $jar) | |
322 | ln -sf $jar $TOMCATDIR/common/lib | |
323 | done | |
324 | ||
325 | jars="jaxp_parser_impl xml-commons-apis" | |
326 | for jar in $jars; do | |
327 | jar=$(find-jar $jar) | |
328 | ln -sf $jar $TOMCATDIR/common/endorsed | |
329 | done | |
330 | ||
331 | jars="struts-core struts-taglib commons-collections commons-beanutils-core commons-digester commons-chain" | |
332 | for jar in $jars; do | |
333 | jar=$(find-jar $jar) | |
334 | ln -sf $jar $TOMCATDIR/server/webapps/admin/WEB-INF/lib | |
335 | done | |
6378940b | 336 | |
fddf8ded | 337 | jars="commons-modeler" |
3bd96a5e ER |
338 | for jar in $jars; do |
339 | jar=$(find-jar $jar) | |
340 | ln -sf $jar $TOMCATDIR/server/lib | |
341 | done | |
a0446376 | 342 | |
d4ae229e | 343 | install -d $RPM_BUILD_ROOT%{_javadir} |
3bd96a5e ER |
344 | mv $TOMCATDIR/common/lib/jasper*.jar $RPM_BUILD_ROOT%{_javadir} |
345 | ln -sf %{_javadir}/jasper-compiler-jdt.jar $TOMCATDIR/common/lib | |
346 | ln -sf %{_javadir}/jasper-compiler.jar $TOMCATDIR/common/lib | |
347 | ln -sf %{_javadir}/jasper-runtime.jar $TOMCATDIR/common/lib | |
d4ae229e | 348 | |
623f0978 | 349 | %clean |
350 | rm -rf $RPM_BUILD_ROOT | |
351 | ||
2b56d949 | 352 | %pre |
bc75997d | 353 | %groupadd -g 234 -r -f tomcat |
fa20abb1 | 354 | %groupadd -g 237 -r -f servlet |
355 | %useradd -u 234 -r -d /var/lib/tomcat -s /bin/false -c "Tomcat User" -g tomcat -G servlet tomcat | |
2b56d949 | 356 | |
357 | %post | |
358 | /sbin/chkconfig --add tomcat | |
6c0937ca | 359 | %service tomcat restart |
2b56d949 | 360 | |
361 | %preun | |
362 | if [ "$1" = "0" ]; then | |
6c0937ca | 363 | %service tomcat stop |
2b56d949 | 364 | /sbin/chkconfig --del tomcat |
365 | fi | |
366 | ||
367 | %postun | |
368 | if [ "$1" = "0" ]; then | |
201f6baa | 369 | %userremove tomcat |
370 | %groupremove tomcat | |
fa20abb1 | 371 | %groupremove servlet |
2b56d949 | 372 | fi |
373 | ||
623f0978 | 374 | %files |
375 | %defattr(644,root,root,755) | |
a97a4eb2 | 376 | %doc build/{RELEASE-NOTES,RUNNING.txt} |
a97a4eb2 | 377 | %attr(754,root,root) /etc/rc.d/init.d/tomcat |
ab574f59 | 378 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/tomcat |
98133f85 | 379 | %{_sysconfdir} |
a0446376 | 380 | %dir %{_tomcatdir} |
98133f85 | 381 | %dir %{_tomcatdir}/conf |
a0446376 | 382 | %dir %{_tomcatdir}/bin |
a97a4eb2 ER |
383 | %{_tomcatdir}/bin/catalina-tasks.xml |
384 | %{_tomcatdir}/bin/jkstatus-tasks.xml | |
385 | %{_tomcatdir}/bin/jmxaccessor-tasks.xml | |
389e46b9 | 386 | %attr(755,root,root) %{_tomcatdir}/bin/*.sh |
389e46b9 | 387 | %{_tomcatdir}/bin/*.jar |
a0446376 JB |
388 | %dir %{_tomcatdir}/common |
389 | %dir %{_tomcatdir}/common/classes | |
2b56d949 | 390 | %dir %{_tomcatdir}/common/endorsed |
a97a4eb2 | 391 | %dir %{_tomcatdir}/common/i18n |
f271c61b | 392 | %{_tomcatdir}/common/endorsed/*.jar |
a97a4eb2 ER |
393 | %{_tomcatdir}/common/i18n/tomcat-i18n-en.jar |
394 | %lang(es) %{_tomcatdir}/common/i18n/tomcat-i18n-es.jar | |
395 | %lang(fr) %{_tomcatdir}/common/i18n/tomcat-i18n-fr.jar | |
396 | %lang(ja) %{_tomcatdir}/common/i18n/tomcat-i18n-ja.jar | |
623f0978 | 397 | %{_tomcatdir}/common/lib |
a0446376 JB |
398 | %dir %{_tomcatdir}/server |
399 | %dir %{_tomcatdir}/server/classes | |
623f0978 | 400 | %{_tomcatdir}/server/lib |
3a6bcd11 | 401 | %dir %{_tomcatdir}/server/webapps |
3bf2e196 ER |
402 | |
403 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/host-manager.xml | |
804609f8 | 404 | %{_tomcatdir}/server/webapps/host-manager |
3bf2e196 ER |
405 | |
406 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/manager.xml | |
804609f8 | 407 | %{_tomcatdir}/server/webapps/manager |
3bf2e196 ER |
408 | |
409 | %dir %{_tomcatdir}/webapps | |
410 | ||
411 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/ROOT.xml | |
412 | %{_tomcatdir}/webapps/ROOT | |
413 | ||
414 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/balancer.xml | |
415 | %{_tomcatdir}/webapps/balancer | |
416 | ||
417 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/webdav.xml | |
418 | %{_tomcatdir}/webapps/webdav | |
419 | ||
50aa3a1c | 420 | %{_tomcatdir}/logs |
a0446376 | 421 | %{_tomcatdir}/work |
2b56d949 | 422 | %{_tomcatdir}/shared |
a0446376 | 423 | %dir %{_vardir} |
afab8c93 | 424 | # these directories have to be writeable because /admin needs to modify config files and create temporary files |
5835c616 | 425 | %dir %attr(775,root,tomcat) %{_vardir}/conf |
426 | %dir %attr(775,root,tomcat) %{_vardir}/conf/Catalina | |
49a8ad15 | 427 | %dir %{_vardir}/conf/Catalina/localhost |
3bf2e196 | 428 | # tomcat config has to be writeable because of tomcat-users.xml file and Catalina dir |
49a8ad15 ER |
429 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/MANIFEST.MF |
430 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/catalina.policy | |
431 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/*.properties* | |
432 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/*.manifest | |
433 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/*.xml | |
201f6baa | 434 | %dir %attr(1730,root,tomcat) %{_vardir}/work |
435 | %dir %attr(775,root,tomcat) %{_vardir}/webapps | |
436 | %dir %attr(775,root,tomcat) %{_vardir}/temp | |
437 | %dir %attr(775,root,tomcat) %{_logdir}/tomcat | |
9e1e98ce | 438 | %{_vardir}/logs |
623f0978 | 439 | |
440 | %files doc | |
ff740076 | 441 | %defattr(644,root,root,755) |
3bf2e196 ER |
442 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/tomcat-docs.xml |
443 | %{_tomcatdir}/webapps/tomcat-docs | |
d4ae229e | 444 | |
804609f8 SP |
445 | %files admin |
446 | %defattr(644,root,root,755) | |
49a8ad15 | 447 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/admin.xml |
804609f8 SP |
448 | %{_tomcatdir}/server/webapps/admin |
449 | ||
d4ae229e | 450 | %files jasper |
7e500426 | 451 | %defattr(644,root,root,755) |
d4ae229e SP |
452 | %{_javadir}/jasper-compiler-jdt.jar |
453 | %{_javadir}/jasper-compiler.jar | |
454 | %{_javadir}/jasper-runtime.jar |