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