]>
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 |
51bcbcd2 | 11 | Name: apache-tomcat |
f9d6e42f | 12 | Version: 5.5.27 |
a9b6042d | 13 | Release: 0.3 |
c1934721 | 14 | License: Apache v2.0 |
15 | Group: Networking/Daemons/Java | |
51bcbcd2 | 16 | Source0: http://www.apache.org/dist/tomcat/tomcat-5/v%{version}/src/%{name}-%{version}-src.tar.gz |
f9d6e42f | 17 | # Source0-md5: eb3f196013550b9b1684e4ff18593a8e |
9ba83a1b | 18 | Source1: %{name}.init |
f93b3a59 | 19 | Source2: %{name}.sysconfig |
3e2cdbf3 | 20 | Source10: %{name}-context-ROOT.xml |
21 | Source11: %{name}-context-balancer.xml | |
22 | Source12: %{name}-context-jsp-examples.xml | |
23 | Source13: %{name}-context-tomcat-docs.xml | |
24 | Source14: %{name}-context-webdav.xml | |
51bcbcd2 ER |
25 | Patch0: %{name}-skip-servletapi.patch |
26 | Patch1: %{name}-nsis.patch | |
27 | Patch2: %{name}-native.patch | |
28 | Patch3: %{name}-skip-jdt.patch | |
d61c5134 | 29 | Patch4: %{name}-no-connectors.patch |
f9d6e42f | 30 | Patch5: %{name}-dbcp.patch |
7cf40cc1 | 31 | # this patch is needed for struts >= 1.3 |
32 | Patch6: %{name}-struts.patch | |
73014acb | 33 | # WTF? Why is it needed? Is it related to struts version? |
34 | Patch7: %{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 | |
40 | BuildRequires: java-gcj-compat-devel | |
19bbcbf6 | 41 | # BuildRequires: jsse >= 0:1.0.3 |
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 |
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 | |
e9d9d15e | 74 | BuildRequires: java-mail >= 0:1.3.1 |
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 |
bb78b380 | 159 | Requires: java-commons-chain |
804609f8 SP |
160 | |
161 | %description admin | |
162 | Administration Web Application for Apache Tomcat. | |
163 | ||
164 | %description admin -l pl.UTF-8 | |
165 | Panel Administracyjny dla Apache Tomcat. | |
166 | ||
d4ae229e | 167 | %package jasper |
55a9c77b | 168 | Summary: JSP compiler |
169 | Summary(pl.UTF-8): Kompilator JSP | |
d4ae229e | 170 | Group: Libraries/Java |
15b32f14 | 171 | Requires: jpackage-utils |
d4ae229e SP |
172 | |
173 | %description jasper | |
55a9c77b | 174 | Jasper is Java ServerPages compiler used by Apache Tomcat servlet |
175 | container. | |
176 | ||
177 | %description jasper -l pl.UTF-8 | |
178 | Jasper jest kompilatorem Java ServerPages używanym przez kontener | |
179 | servletów Apache Tomcat. | |
d4ae229e | 180 | |
623f0978 | 181 | %prep |
51bcbcd2 | 182 | %setup -q -n %{name}-%{version}-src |
7bfc9a0d ER |
183 | %patch0 -p1 |
184 | %patch1 -p1 | |
185 | %patch2 -p1 | |
186 | %patch3 -p1 | |
d61c5134 | 187 | %patch4 -p1 |
e40b89eb | 188 | %patch5 -p1 |
7cf40cc1 | 189 | %patch6 -p1 |
7bfc9a0d | 190 | |
3bd96a5e ER |
191 | # we don't need dos scripts |
192 | rm -f bin/*.bat | |
193 | ||
d61c5134 | 194 | # servletapi built from jakarta-servletapi5.spec |
7bfc9a0d | 195 | rm -rf servletapi |
eca62e60 ER |
196 | |
197 | # Remove pre-built jars | |
198 | find -name '*.jar' | xargs rm -fv | |
623f0978 | 199 | |
200 | %build | |
eca62e60 ER |
201 | TOPDIR=$(pwd) |
202 | ||
eca62e60 | 203 | # build tomcat 5.5 |
7bfc9a0d | 204 | cat > build.properties <<EOF |
a48f26fe | 205 | commons-beanutils.jar=$(find-jar commons-beanutils-core) |
4f9f35cf ER |
206 | commons-launcher.jar=$(find-jar commons-launcher) |
207 | commons-daemon.jar=$(find-jar commons-daemon) | |
208 | commons-digester.jar=$(find-jar commons-digester) | |
209 | commons-el.jar=$(find-jar commons-el) | |
210 | commons-logging-api.jar=$(find-jar commons-logging-api) | |
211 | commons-logging.jar=$(find-jar commons-logging) | |
212 | commons-modeler.jar=$(find-jar commons-modeler) | |
213 | xercesImpl.jar=$(find-jar jaxp_parser_impl) | |
214 | xml-apis.jar=$(find-jar xml-commons-apis) | |
215 | jdt.jar=$(find-jar org.eclipse.jdt.core) | |
c2e39bad | 216 | jasper-compiler-jdt.home=$TOPDIR/tomcat-deps |
4f9f35cf ER |
217 | commons-httpclient.jar=$(find-jar commons-httpclient) |
218 | commons-collections.jar=$(find-jar commons-collections) | |
219 | commons-fileupload.jar=$(find-jar commons-fileupload) | |
9e94226b | 220 | commons-io.jar=$(find-jar commons-io) |
4f9f35cf ER |
221 | jmx.jar=$(find-jar jmx) |
222 | jmx-tools.jar=$(find-jar jmx) | |
223 | junit.jar=$(find-jar junit) | |
a48f26fe | 224 | struts.jar=$(find-jar struts-core) |
225 | struts-core.jar=$(find-jar struts-core) | |
226 | struts-taglib.jar=$(find-jar struts-taglib) | |
4f9f35cf ER |
227 | jcert.jar=$(find-jar jcert) |
228 | jnet.jar=$(find-jar jnet) | |
229 | jsse.jar=$(find-jar jsse) | |
2547d651 | 230 | %{?with_jta:jta.jar=$(find-jar jta)} |
4f9f35cf ER |
231 | puretls.jar=$(find-jar puretls) |
232 | servlet-api.jar=$(find-jar servlet-api) | |
7bfc9a0d | 233 | servletapi.build.notrequired=true |
4f9f35cf | 234 | jsp-api.jar=$(find-jar jsp-api) |
7bfc9a0d | 235 | jspapi.build.notrequired=true |
4f9f35cf | 236 | log4j.jar=$(find-jar log4j) |
a48f26fe | 237 | tomcat-dbcp.jar=$(find-jar commons-dbcp-tomcat5) |
d4ae229e | 238 | struts.lib=%{_javadir}-struts |
eca62e60 ER |
239 | EOF |
240 | ||
3bd96a5e ER |
241 | if grep '=$' build.properties; then |
242 | : Some .jar could not be found | |
243 | exit 1 | |
244 | fi | |
245 | ||
d61c5134 ER |
246 | %ant \ |
247 | -Dcompile.source=1.4 | |
eca62e60 | 248 | |
623f0978 | 249 | %install |
250 | rm -rf $RPM_BUILD_ROOT | |
a97a4eb2 ER |
251 | cd build/build |
252 | TOMCATDIR=$RPM_BUILD_ROOT%{_tomcatdir} | |
253 | CATALINADIR=$RPM_BUILD_ROOT/var/lib/tomcat | |
623f0978 | 254 | |
a97a4eb2 | 255 | randpw=$(echo $RANDOM$$ | md5sum | cut -c 1-15) |
4f9f35cf | 256 | %{__sed} -i -e "s:SHUTDOWN:${randpw}:" conf/{server,server-minimal}.xml |
a97a4eb2 ER |
257 | |
258 | install -d $TOMCATDIR/bin \ | |
259 | $TOMCATDIR/common/{lib,classes,endorsed} \ | |
260 | $TOMCATDIR/server/{lib,classes} \ | |
261 | $TOMCATDIR/webapps \ | |
a0446376 | 262 | $RPM_BUILD_ROOT%{_logdir}/tomcat \ |
98133f85 | 263 | $RPM_BUILD_ROOT%{_vardir}/webapps \ |
a0446376 | 264 | $RPM_BUILD_ROOT%{_vardir}/work \ |
98133f85 | 265 | $RPM_BUILD_ROOT%{_vardir}/conf \ |
125df118 | 266 | $RPM_BUILD_ROOT/etc/sysconfig \ |
a0446376 | 267 | $RPM_BUILD_ROOT/etc/rc.d/init.d |
389e46b9 | 268 | |
a97a4eb2 | 269 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/tomcat |
f93b3a59 | 270 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/tomcat |
623f0978 | 271 | |
3bd96a5e | 272 | cp -a conf/* $CATALINADIR/conf |
3e2cdbf3 | 273 | install %{SOURCE10} $CATALINADIR/conf/Catalina/localhost/ROOT.xml |
274 | install %{SOURCE11} $CATALINADIR/conf/Catalina/localhost/balancer.xml | |
275 | install %{SOURCE12} $CATALINADIR/conf/Catalina/localhost/jsp-examples.xml | |
276 | install %{SOURCE13} $CATALINADIR/conf/Catalina/localhost/tomcat-docs.xml | |
277 | install %{SOURCE14} $CATALINADIR/conf/Catalina/localhost/webdav.xml | |
a97a4eb2 | 278 | cp -HR bin common server $TOMCATDIR |
eca62e60 | 279 | |
3bd96a5e ER |
280 | cp -a server/webapps $TOMCATDIR/server |
281 | cp -a webapps $TOMCATDIR | |
282 | cp -a shared $TOMCATDIR | |
283 | cp -a temp $CATALINADIR | |
a97a4eb2 | 284 | |
98133f85 | 285 | ln -sf %{_logdir}/tomcat $CATALINADIR/logs |
4f9f35cf | 286 | ln -sf %{_vardir}/work $TOMCATDIR/work |
98133f85 | 287 | ln -sf %{_vardir}/conf $TOMCATDIR/conf |
288 | ln -sf %{_vardir}/conf $RPM_BUILD_ROOT%{_sysconfdir} | |
a97a4eb2 ER |
289 | |
290 | # symlinks instead of copies | |
3ab5bd71 | 291 | jars="commons-el commons-dbcp-tomcat5 servlet-api jsp-api commons-modeler" |
3bd96a5e ER |
292 | for jar in $jars; do |
293 | jar=$(find-jar $jar) | |
294 | ln -sf $jar $TOMCATDIR/common/lib | |
295 | done | |
296 | ||
297 | jars="jaxp_parser_impl xml-commons-apis" | |
298 | for jar in $jars; do | |
299 | jar=$(find-jar $jar) | |
300 | ln -sf $jar $TOMCATDIR/common/endorsed | |
301 | done | |
302 | ||
303 | jars="struts-core struts-taglib commons-collections commons-beanutils-core commons-digester commons-chain" | |
304 | for jar in $jars; do | |
305 | jar=$(find-jar $jar) | |
306 | ln -sf $jar $TOMCATDIR/server/webapps/admin/WEB-INF/lib | |
307 | done | |
6378940b | 308 | |
4f9f35cf ER |
309 | %if 0 |
310 | # do not make these symlinks as ant didn't do | |
3bd96a5e ER |
311 | jars="commons-daemon" |
312 | for jar in $jars; do | |
313 | jar=$(find-jar $jar) | |
314 | ln -sf $jar $TOMCATDIR/bin | |
315 | done | |
316 | ||
317 | jars="activation ant commons-dbcp commons-logging-api commons-pool servlet jdbc-stdext | |
318 | jmxri jndi %{?with_jta:jta} mail jsse junit mailapi pop3" | |
319 | for jar in $jars; do | |
320 | jar=$(find-jar $jar) | |
321 | ln -sf $jar $TOMCATDIR/common/lib | |
322 | done | |
323 | ||
324 | ln -sf servlet.jar $TOMCATDIR/common/lib/servletapi4.jar | |
4f9f35cf ER |
325 | ln -sf jdbc-stdext.jar $TOMCATDIR/common/lib/jdbc2_0-stdext.jar |
326 | ln -sf jdbc-stdext.jar $TOMCATDIR/common/lib/jdbc-stdext-2.0.jar | |
4f9f35cf | 327 | ln -sf pop3.jar $TOMCATDIR/common/lib/pop.jar |
4f9f35cf | 328 | |
3bd96a5e ER |
329 | jars="commons-beanutils commons-digester commons-fileupload commons-logging jaas regexp" |
330 | for jar in $jars; do | |
331 | jar=$(find-jar $jar) | |
332 | ln -sf $jar $TOMCATDIR/server/lib | |
333 | done | |
334 | ln -sf regexp.jar $TOMCATDIR/server/lib/jakarta-regexp-1.2.jar | |
335 | ln -sf regexp.jar $TOMCATDIR/server/lib/regexp-1.2.jar | |
336 | %endif | |
a0446376 | 337 | |
d4ae229e | 338 | install -d $RPM_BUILD_ROOT%{_javadir} |
3bd96a5e ER |
339 | mv $TOMCATDIR/common/lib/jasper*.jar $RPM_BUILD_ROOT%{_javadir} |
340 | ln -sf %{_javadir}/jasper-compiler-jdt.jar $TOMCATDIR/common/lib | |
341 | ln -sf %{_javadir}/jasper-compiler.jar $TOMCATDIR/common/lib | |
342 | ln -sf %{_javadir}/jasper-runtime.jar $TOMCATDIR/common/lib | |
d4ae229e | 343 | |
623f0978 | 344 | %clean |
345 | rm -rf $RPM_BUILD_ROOT | |
346 | ||
2b56d949 | 347 | %pre |
bc75997d | 348 | %groupadd -g 234 -r -f tomcat |
349 | %useradd -u 234 -r -d /var/lib/tomcat -s /bin/false -c "Tomcat User" -g tomcat tomcat | |
2b56d949 | 350 | |
351 | %post | |
352 | /sbin/chkconfig --add tomcat | |
6c0937ca | 353 | %service tomcat restart |
2b56d949 | 354 | |
355 | %preun | |
356 | if [ "$1" = "0" ]; then | |
6c0937ca | 357 | %service tomcat stop |
2b56d949 | 358 | /sbin/chkconfig --del tomcat |
359 | fi | |
360 | ||
361 | %postun | |
362 | if [ "$1" = "0" ]; then | |
201f6baa | 363 | %userremove tomcat |
364 | %groupremove tomcat | |
2b56d949 | 365 | fi |
366 | ||
623f0978 | 367 | %files |
368 | %defattr(644,root,root,755) | |
a97a4eb2 | 369 | %doc build/{RELEASE-NOTES,RUNNING.txt} |
a97a4eb2 | 370 | %attr(754,root,root) /etc/rc.d/init.d/tomcat |
ab574f59 | 371 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/tomcat |
98133f85 | 372 | %{_sysconfdir} |
a0446376 | 373 | %dir %{_tomcatdir} |
98133f85 | 374 | %dir %{_tomcatdir}/conf |
a0446376 | 375 | %dir %{_tomcatdir}/bin |
a97a4eb2 ER |
376 | %{_tomcatdir}/bin/catalina-tasks.xml |
377 | %{_tomcatdir}/bin/jkstatus-tasks.xml | |
378 | %{_tomcatdir}/bin/jmxaccessor-tasks.xml | |
389e46b9 | 379 | %attr(755,root,root) %{_tomcatdir}/bin/*.sh |
389e46b9 | 380 | %{_tomcatdir}/bin/*.jar |
a0446376 JB |
381 | %dir %{_tomcatdir}/common |
382 | %dir %{_tomcatdir}/common/classes | |
2b56d949 | 383 | %dir %{_tomcatdir}/common/endorsed |
a97a4eb2 | 384 | %dir %{_tomcatdir}/common/i18n |
f271c61b | 385 | %{_tomcatdir}/common/endorsed/*.jar |
a97a4eb2 ER |
386 | %{_tomcatdir}/common/i18n/tomcat-i18n-en.jar |
387 | %lang(es) %{_tomcatdir}/common/i18n/tomcat-i18n-es.jar | |
388 | %lang(fr) %{_tomcatdir}/common/i18n/tomcat-i18n-fr.jar | |
389 | %lang(ja) %{_tomcatdir}/common/i18n/tomcat-i18n-ja.jar | |
623f0978 | 390 | %{_tomcatdir}/common/lib |
a0446376 JB |
391 | %dir %{_tomcatdir}/server |
392 | %dir %{_tomcatdir}/server/classes | |
623f0978 | 393 | %{_tomcatdir}/server/lib |
3a6bcd11 | 394 | %dir %{_tomcatdir}/server/webapps |
804609f8 SP |
395 | %{_tomcatdir}/server/webapps/host-manager |
396 | %{_tomcatdir}/server/webapps/manager | |
a0446376 JB |
397 | %{_tomcatdir}/webapps |
398 | %{_tomcatdir}/work | |
2b56d949 | 399 | %{_tomcatdir}/shared |
a0446376 | 400 | %dir %{_vardir} |
3a6bcd11 | 401 | %dir %{_vardir}/conf |
49a8ad15 ER |
402 | %dir %{_vardir}/conf/Catalina |
403 | %dir %{_vardir}/conf/Catalina/localhost | |
404 | # tomcat config has to be writeable because of tomacta-users.xml file and Catalina dir | |
405 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/MANIFEST.MF | |
406 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/catalina.policy | |
407 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/*.properties* | |
408 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/*.manifest | |
409 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/*.xml | |
410 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/balancer.xml | |
411 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/host-manager.xml | |
412 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/jsp-examples.xml | |
413 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/manager.xml | |
414 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/ROOT.xml | |
415 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/tomcat-docs.xml | |
416 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/webdav.xml | |
201f6baa | 417 | %dir %attr(1730,root,tomcat) %{_vardir}/work |
418 | %dir %attr(775,root,tomcat) %{_vardir}/webapps | |
419 | %dir %attr(775,root,tomcat) %{_vardir}/temp | |
420 | %dir %attr(775,root,tomcat) %{_logdir}/tomcat | |
9e1e98ce | 421 | %{_vardir}/logs |
623f0978 | 422 | |
a97a4eb2 | 423 | %if 0 |
623f0978 | 424 | %files doc |
ff740076 | 425 | %defattr(644,root,root,755) |
623f0978 | 426 | %doc catalina/docs/* |
a97a4eb2 | 427 | %endif |
d4ae229e | 428 | |
804609f8 SP |
429 | %files admin |
430 | %defattr(644,root,root,755) | |
49a8ad15 | 431 | %config(noreplace) %attr(664,root,tomcat) %verify(not md5 mtime size) %{_vardir}/conf/Catalina/localhost/admin.xml |
804609f8 SP |
432 | %{_tomcatdir}/server/webapps/admin |
433 | ||
d4ae229e | 434 | %files jasper |
7e500426 | 435 | %defattr(644,root,root,755) |
d4ae229e SP |
436 | %{_javadir}/jasper-compiler-jdt.jar |
437 | %{_javadir}/jasper-compiler.jar | |
438 | %{_javadir}/jasper-runtime.jar |