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