]>
Commit | Line | Data |
---|---|---|
952ffbef | 1 | # TODO |
952ffbef | 2 | # - castor is needed by axis-1.2.1-0.2jpp.1.noarch |
87cd0875 | 3 | # - package axis2, axis is obsolete. see NOTE below. |
4 | # NOTE | |
5 | # - it won't compile with java 1.6. see: | |
6 | # https://fcp.surfsite.org/modules/newbb/viewtopic.php?topic_id=55862&viewmode=flat&order=ASC&start=20 | |
1c16c204 | 7 | |
8 | %bcond_with java_sun | |
952ffbef ER |
9 | %define archivever %(echo %{version} | tr . _) |
10 | Summary: A SOAP implementation in Java | |
d7049fd1 | 11 | Summary(pl.UTF-8): Implementacja SOAP w Javie |
952ffbef | 12 | Name: axis |
3a5f3841 | 13 | Version: 1.4 |
fc8003da | 14 | Release: 0.1 |
952ffbef ER |
15 | License: Apache Software License |
16 | Group: Development/Languages/Java | |
071c13c6 | 17 | Source0: http://ws.apache.org/axis/dist/%{archivever}/%{name}-src-%{archivever}.tar.gz |
3a5f3841 | 18 | # Source0-md5: 3dcce3cbd37f52d70ebeb858f90608dc |
e43ec4b9 | 19 | Source1: axis-build.xml |
3a5f3841 | 20 | Patch0: axis-classpath.patch |
93768a76 | 21 | Patch1: axis-missing_xsd.patch |
21fcb34a | 22 | URL: http://ws.apache.org/axis/ |
2bbdba56 | 23 | BuildRequires: ant >= 1.6 |
3a5f3841 | 24 | BuildRequires: ant-nodeps |
1c16c204 | 25 | %{!?with_java_sun:BuildRequires: java-gcj-compat-devel} |
26 | %{?with_java_sun:BuildRequires: java-sun <= 1.5} | |
952ffbef | 27 | # Mandatory requires |
1c16c204 | 28 | BuildRequires: jaf |
29 | BuildRequires: java-commons-discovery | |
30 | BuildRequires: java-commons-httpclient | |
31 | BuildRequires: java-commons-logging | |
32 | BuildRequires: java-xmlbeans | |
33 | BuildRequires: javamail | |
34 | BuildRequires: jaxp_parser_impl | |
35 | BuildRequires: jpackage-utils | |
36 | BuildRequires: logging-log4j | |
37 | BuildRequires: rpmbuild(macros) >= 1.300 | |
38 | BuildRequires: servletapi5 | |
39 | BuildRequires: wsdl4j | |
40 | # optional requires | |
41 | BuildRequires: castor | |
42 | BuildRequires: httpunit | |
43 | BuildRequires: jakarta-oro | |
44 | # BuildRequires: jimi | |
45 | # BuildRequires: jms | |
46 | BuildRequires: jsse | |
47 | BuildRequires: junit | |
952ffbef ER |
48 | Requires: jaf |
49 | Requires: jakarta-commons-discovery | |
340429f1 | 50 | Requires: jakarta-commons-httpclient |
952ffbef | 51 | Requires: jakarta-commons-logging |
1c16c204 | 52 | Requires: java |
952ffbef ER |
53 | Requires: javamail |
54 | Requires: jaxp_parser_impl | |
56506b98 | 55 | Requires: logging-log4j |
d57efde4 | 56 | Requires: jpackage-utils |
952ffbef ER |
57 | Requires: log4j |
58 | Requires: wsdl4j | |
59 | BuildArch: noarch | |
60 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
61 | ||
62 | %description | |
63 | Apache AXIS is an implementation of the SOAP ("Simple Object Access | |
64 | Protocol") submission to W3C. | |
65 | ||
66 | From the draft W3C specification: | |
67 | ||
68 | SOAP is a lightweight protocol for exchange of information in a | |
69 | decentralized, distributed environment. It is an XML based protocol | |
70 | that consists of three parts: an envelope that defines a framework for | |
71 | describing what is in a message and how to process it, a set of | |
72 | encoding rules for expressing instances of application-defined | |
73 | datatypes, and a convention for representing remote procedure calls | |
74 | and responses. | |
75 | ||
76 | This project is a follow-on to the Apache SOAP project. | |
77 | ||
cd04c4e5 | 78 | %description -l pl.UTF-8 |
21fcb34a JB |
79 | Apache AXIS to implementacja SOAP ("Simple Object Access Protocol") |
80 | przekazanego do W3C. | |
81 | ||
82 | Z projektu specyfikacji W3C: | |
83 | ||
cd04c4e5 JR |
84 | SOAP to lekki protokół do wymiany informacji w scentralizowanym, |
85 | rozproszonym środowisku. Jest to protokół oparty na XML-u, składający | |
86 | się z trzech części: koperty definiującej szkielet do opisu zawartości | |
87 | i sposobu przetwarzania komunikatu, zbioru reguł kodowania do | |
88 | wyrażania instancji typów danych zdefiniowanych w aplikacji oraz | |
89 | konwencji reprezentowania zdalnych wywołań procedur i odpowiedzi. | |
21fcb34a | 90 | |
cd04c4e5 | 91 | Ten projekt jest następcą projektu Apache SOAP. |
21fcb34a | 92 | |
952ffbef ER |
93 | %package javadoc |
94 | Summary: Javadoc for %{name} | |
d7049fd1 | 95 | Summary(pl.UTF-8): Dokumentacja javadoc dla pakietu %{name} |
d57efde4 ER |
96 | Group: Documentation |
97 | Requires: jpackage-utils | |
952ffbef ER |
98 | |
99 | %description javadoc | |
100 | Javadoc for %{name}. | |
101 | ||
cd04c4e5 | 102 | %description javadoc -l pl.UTF-8 |
21fcb34a JB |
103 | Dokumentacja javadoc dla pakietu %{name}. |
104 | ||
952ffbef ER |
105 | %package manual |
106 | Summary: Manual for %{name} | |
d7049fd1 | 107 | Summary(pl.UTF-8): Podręcznik do pakietu %{name} |
952ffbef ER |
108 | Group: Development/Languages/Java |
109 | ||
110 | %description manual | |
111 | Documentation for %{name}. | |
112 | ||
cd04c4e5 JR |
113 | %description manual -l pl.UTF-8 |
114 | Podręcznik do pakietu %{name}. | |
21fcb34a | 115 | |
952ffbef ER |
116 | %prep |
117 | %setup -q -n %{name}-%{archivever} | |
118 | ||
119 | # Remove provided binaries | |
1c16c204 | 120 | find -name '*.jar' | xargs rm -v |
d57efde4 | 121 | find -name '*.class' | xargs rm -v |
952ffbef | 122 | |
3a5f3841 | 123 | %patch0 -p1 |
93768a76 | 124 | %patch1 -p1 |
3a5f3841 | 125 | |
e43ec4b9 | 126 | cp %{SOURCE1} build.xml |
952ffbef | 127 | |
1c16c204 | 128 | %build |
129 | export JAVA_HOME=%{java_home} | |
130 | echo $JAVA_HOME | |
131 | ||
132 | activation_jar=$(find-jar activation) | |
133 | commons_logging_jar=$(find-jar commons-logging) | |
134 | commons_discovery_jar=$(find-jar commons-discovery) | |
135 | commons_httpclient_jar=$(find-jar commons-httpclient) | |
136 | commons_net_jar=$(find-jar commons-net) | |
137 | log4j_core_jar=$(find-jar log4j) | |
138 | jsse_jar=$(find-jar jsse) | |
139 | junit_jar=$(find-jar junit) | |
140 | mailapi_jar=$(find-jar mail) | |
141 | regexp_jar=$(find-jar oro) | |
142 | servlet_jar=$(find-jar servletapi5) | |
143 | tools_jar=$(find-jar tools) | |
144 | wsdl4j_jar=$(find-jar wsdl4j) | |
145 | xalan_jar=$(find-jar xalan) | |
146 | xerces_jar=$(find-jar xerces-j2) | |
147 | xercesImpl_jar=$(find-jar xercesImpl) | |
148 | xml_apis_jar=$(find-jar xml-commons-apis) | |
149 | xmlParsersAPIs_jar=$(find-jar xerces-j2) | |
150 | xmlbeans_jar=$(find-jar xmlbeans) | |
151 | libgcj_jar=$(find-jar libgcj) | |
152 | ||
153 | #httpunit_jar=$(find-jar httpunit) | |
154 | #xmlunit_jar=$(find-jar xmlunit) | |
155 | #jimi_jar=$(find-jar jimi) | |
156 | ||
157 | CLASSPATH=$wsdl4j_jar:$commons_logging_jar:$commons_discovery_jar | |
158 | %{!?with_java_sun:CLASSPATH=$CLASSPATH:$(build-classpath ecj tools)} | |
3a5f3841 | 159 | export CLASSPATH |
1c16c204 | 160 | |
161 | %ant dist \ | |
162 | -Dactivation.jar=$activation_jar \ | |
163 | -Dcommons-logging.jar=$commons_logging_jar \ | |
164 | -Dcommons-discovery.jar=$commons_discovery_jar \ | |
165 | -Dcommons-httpclient.jar=$commons_httpclient_jar \ | |
166 | -Dcommons-net.jar=$commons_net_jar \ | |
167 | -Dlog4j-core.jar=$log4j_core_jar \ | |
168 | -Djsse.jar=$jsse_jar \ | |
169 | -Djunit.jar=$junit_jar \ | |
170 | -Dmailapi.jar=$mailapi_jar \ | |
171 | -Dregexp.jar=$regexp_jar \ | |
172 | -Dservlet.jar=$servlet_jar \ | |
173 | -Dtools.jar=$tools_jar \ | |
174 | -Dwsdl4j.jar=$wsdl4j_jar \ | |
175 | -Dxalan.jar=$xalan_jar \ | |
176 | -Dxerces.jar=$xerces_jar \ | |
177 | -DxercesImpl.jar=$xercesImpl_jar \ | |
178 | -Dxml-apis.jar=$xml_apis_jar \ | |
179 | -DxmlParsersAPIs.jar=$xmlParsersAPIs_jar \ | |
180 | -Dxmlbeans.jar=$xmlbeans_jar \ | |
181 | -Dsun.boot.class.path="$libgcj_jar:[-org.w3c.dom/*]" | |
952ffbef ER |
182 | |
183 | %install | |
952ffbef | 184 | rm -rf $RPM_BUILD_ROOT |
1c16c204 | 185 | |
186 | install -d $RPM_BUILD_ROOT%{_javadir}/%{name} | |
952ffbef ER |
187 | |
188 | cd build/lib | |
d57efde4 | 189 | install axis.jar axis-ant.jar saaj.jar jaxrpc.jar \ |
21fcb34a | 190 | $RPM_BUILD_ROOT%{_javadir}/%{name} |
952ffbef ER |
191 | cd - |
192 | ||
193 | cd $RPM_BUILD_ROOT%{_javadir}/%{name} | |
21fcb34a JB |
194 | for jar in *.jar ; do |
195 | vjar=$(echo $jar | sed s+.jar+-%{version}.jar+g) | |
196 | mv $jar $vjar | |
197 | ln -fs $vjar $jar | |
198 | done | |
952ffbef ER |
199 | cd - |
200 | ||
201 | ### Javadoc | |
952ffbef | 202 | install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} |
d57efde4 ER |
203 | cp -a build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} |
204 | ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink | |
952ffbef ER |
205 | |
206 | %clean | |
207 | rm -rf $RPM_BUILD_ROOT | |
208 | ||
209 | %post javadoc | |
d57efde4 | 210 | ln -nfs %{name}-%{version} %{_javadocdir}/%{name} |
952ffbef ER |
211 | |
212 | %files | |
213 | %defattr(644,root,root,755) | |
214 | %doc LICENSE README release-notes.html changelog.html | |
215 | %dir %{_javadir}/%{name} | |
216 | %{_javadir}/%{name}/*.jar | |
217 | ||
218 | %files javadoc | |
219 | %defattr(644,root,root,755) | |
d57efde4 ER |
220 | %{_javadocdir}/%{name}-%{version} |
221 | %ghost %{_javadocdir}/%{name} | |
952ffbef ER |
222 | |
223 | %files manual | |
224 | %defattr(644,root,root,755) | |
225 | %doc docs/* |