3 %define xalanver 1_2_D02
6 Summary: The servlet XML transformation system
11 Group: Networking/Utilities
12 Group(de): Netzwerkwesen/Werkzeuge
13 Group(es): Red/Utilitarios
14 Group(pl): Sieciowe/Narzêdzia
15 Group(pt_BR): Rede/Utilitários
16 Source0: http://xml.apache.org/cocoon/dist/Cocoon-%{version}.tar.gz
17 Source1: %{name}-web.xml
18 Source2: %{name}-webapp.conf
19 Patch0: %{name}-paths.patch
20 URL: http://xml.apache.org/cocoon/
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Cocoon is a 100% pure Java publishing framework that relies on new W3C
27 technologies (such as XML and XSL) to provide web content.
30 Group: Networking/Utilities
31 Group(de): Netzwerkwesen/Werkzeuge
32 Group(es): Red/Utilitarios
33 Group(pl): Sieciowe/Narzêdzia
34 Group(pt_BR): Rede/Utilitários
35 Summary: Online manual for Cocoon
38 Documentation for Cocoon, viewable through your web server, too.
41 Group: Networking/Utilities
42 Group(de): Netzwerkwesen/Werkzeuge
43 Group(es): Red/Utilitarios
44 Group(pl): Sieciowe/Narzêdzia
45 Group(pt_BR): Rede/Utilitários
46 Requires: cocoon = %{version}
47 Summary: Optional jars for cocoon
50 Additional functionality for Cocoon:
51 - bsfengines - Bean Scripting Framework (Xalan existion)
52 - bsf - Bean Scripting Framework (Xalan existion functions)
53 - fop - converts xsl:fo into PDF output
56 Group: Networking/Utilities
57 Group(de): Netzwerkwesen/Werkzeuge
58 Group(es): Red/Utilitarios
59 Group(pl): Sieciowe/Narzêdzia
60 Group(pt_BR): Rede/Utilitários
61 Requires: cocoon = %{version}
62 Summary: Fixes error reporting bug
64 %description sax-bugfix
65 Note The sax-bugfix.jar is an optional, unofficial bugfix - which must
66 be ahead of xerces in the CLASSPATH to work - to allow you to see line
67 numbers and column numbers in XML parsing error messages, and is only
68 needed on some virtual machines. If you get "sealing violations", try
69 removing it from your CLASSPATH.
72 Group: Networking/Utilities
73 Group(de): Netzwerkwesen/Werkzeuge
74 Group(es): Red/Utilitarios
75 Group(pl): Sieciowe/Narzêdzia
76 Group(pt_BR): Rede/Utilitários
77 Requires: cocoon = %{version}
78 Summary: Samples for cocoon
81 This directory contains samples to show you the power of the Cocoon Publishing
82 Framework. Each subdirectory contains examples of possible uses that should
83 give you insights on Cocoon capabilities as well as real-life suggestions on
84 how to XML-ize your web-serving environment.
87 Group: Networking/Utilities
88 Group(de): Netzwerkwesen/Werkzeuge
89 Group(es): Red/Utilitarios
90 Group(pl): Sieciowe/Narzêdzia
91 Group(pt_BR): Rede/Utilitários
92 Requires: cocoon = %{version}
93 Summary: Documentation for cocoon in XML
96 Documentation for cocoon in XML
105 rm -rf $RPM_BUILD_ROOT
106 install -d $RPM_BUILD_ROOT%{_datadir}/%{name} \
107 $RPM_BUILD_ROOT%{_datadir}/%{name}/{lib,conf} \
108 $RPM_BUILD_ROOT/home/httpd/%{name}/WEB-INF \
109 $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}/repository
112 lib/{turbine-pool,w3c,xalan_%{xalanver},xerces_%{xercesver}}.jar \
113 $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
114 cp lib/{bsfengines,bsf,fop_%{fopver}}.jar \
115 $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
116 cp lib/sax-bugfix.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
118 cp index.html $RPM_BUILD_ROOT/home/httpd/%{name}
120 cp %{SOURCE1} $RPM_BUILD_ROOT/home/httpd/%{name}/WEB-INF/web.xml
121 cp conf/cocoon.properties $RPM_BUILD_ROOT%{_datadir}/%{name}/conf
122 cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/%{name}/conf/webapp.conf
124 cp -R samples $RPM_BUILD_ROOT/home/httpd/%{name}
126 mv {todo,changes}.xml xdocs
127 cp -R xdocs $RPM_BUILD_ROOT/home/httpd/%{name}
129 gzip -9nf LICENSE README
132 rm -rf $RPM_BUILD_ROOT
135 ln -sf %{_datadir}/%{name}/{lib,conf/cocoon.properties} /home/httpd/%{name}/WEB-INF
138 rm -rf /home/httpd/%{name}/WEB-INF/{lib,cocoon.properties}
141 ln -sf %{_defaultdocdir}/%{name}-doc-%{version}/docs /home/httpd/%{name}
144 rm -rf /home/httpd/%{name}/docs
147 %defattr(644,root,root,755)
148 %attr(0640,root,http) %config(noreplace) %verify(not size mtime md5) %{_datadir}/%{name}/conf/cocoon.properties
149 %attr(0640,root,http) %config(noreplace) %verify(not size mtime md5) %{_datadir}/%{name}/conf/webapp.conf
150 %attr(0640,root,http) %config(noreplace) %verify(not size mtime md5) /home/httpd/%{name}/WEB-INF/web.xml
151 %attr(0750,root,http) %dir %{_localstatedir}/lib/%{name}/repository
152 /home/httpd/%{name}/index.html
153 %{_datadir}/%{name}/lib/cocoon.jar
154 %{_datadir}/%{name}/lib/turbine-pool.jar
155 %{_datadir}/%{name}/lib/w3c.jar
156 %{_datadir}/%{name}/lib/xalan_%{xalanver}.jar
157 %{_datadir}/%{name}/lib/xerces_%{xercesver}.jar
158 %doc LICENSE.gz README.gz
161 %defattr(644,root,root,755)
165 %defattr(644,root,root,755)
166 %{_datadir}/%{name}/lib/bsfengines.jar
167 %{_datadir}/%{name}/lib/bsf.jar
168 %{_datadir}/%{name}/lib/fop_%{fopver}.jar
171 %defattr(644,root,root,755)
172 %{_datadir}/%{name}/lib/sax-bugfix.jar
175 %defattr(644,root,root,755)
176 /home/httpd/%{name}/samples
179 %defattr(644,root,root,755)
180 /home/httpd/%{name}/xdocs