2 # - servletapi5 is needed by axis-1.2.1-0.2jpp.1.noarch
3 # - castor is needed by axis-1.2.1-0.2jpp.1.noarch
4 %define archivever %(echo %{version} | tr . _)
5 Summary: A SOAP implementation in Java
6 Summary(pl): Implementacja SOAP w Javie
10 License: Apache Software License
11 Group: Development/Languages/Java
12 Source0: http://ws.apache.org/axis//dist/%{archivever}/%{name}-src-%{archivever}.tar.gz
13 # Source0-md5: 157ad070accf373565bce80de1204a4d
14 URL: http://ws.apache.org/axis/
15 #BuildRequires: ant-nodeps
16 BuildRequires: jakarta-ant >= 1.6
20 BuildRequires: jakarta-commons-discovery
21 BuildRequires: jakarta-commons-httpclient3
22 BuildRequires: jakarta-commons-logging
23 BuildRequires: jakarta-log4j
24 BuildRequires: javamail
25 BuildRequires: jaxp_parser_impl
26 BuildRequires: servletapi5
30 BuildRequires: httpunit
31 BuildRequires: jakarta-oro
36 #BuildRequires: xml-security
38 Requires: jakarta-commons-discovery
39 Requires: jakarta-commons-httpclient3
40 Requires: jakarta-commons-logging
43 Requires: jaxp_parser_impl
44 #Requires: jpackage-utils >= 0:1.5
48 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51 Apache AXIS is an implementation of the SOAP ("Simple Object Access
52 Protocol") submission to W3C.
54 From the draft W3C specification:
56 SOAP is a lightweight protocol for exchange of information in a
57 decentralized, distributed environment. It is an XML based protocol
58 that consists of three parts: an envelope that defines a framework for
59 describing what is in a message and how to process it, a set of
60 encoding rules for expressing instances of application-defined
61 datatypes, and a convention for representing remote procedure calls
64 This project is a follow-on to the Apache SOAP project.
67 Apache AXIS to implementacja SOAP ("Simple Object Access Protocol")
70 Z projektu specyfikacji W3C:
72 SOAP to lekki protokó³ do wymiany informacji w scentralizowanym,
73 rozproszonym ¶rodowisku. Jest to protokó³ oparty na XML-u, sk³adaj±cy
74 siê z trzech czê¶ci: koperty definiuj±cej szkielet do opisu zawarto¶ci
75 i sposobu przetwarzania komunikatu, zbioru regu³ kodowania do
76 wyra¿ania instancji typów danych zdefiniowanych w aplikacji oraz
77 konwencji reprezentowania zdalnych wywo³añ procedur i odpowiedzi.
79 Ten projekt jest nastêpc± projektu Apache SOAP.
82 Summary: Javadoc for %{name}
83 Summary(pl): Dokumentacja javadoc dla pakietu %{name}
84 Group: Development/Languages/Java
89 %description javadoc -l pl
90 Dokumentacja javadoc dla pakietu %{name}.
93 Summary: Manual for %{name}
94 Summary(pl): Podrêcznik do pakietu %{name}
95 Group: Development/Languages/Java
98 Documentation for %{name}.
100 %description manual -l pl
101 Podrêcznik do pakietu %{name}.
104 %setup -q -n %{name}-%{archivever}
106 # Remove provided binaries
107 find . -name "*.jar" -exec rm -f {} \;
108 find . -name "*.zip" -exec rm -f {} \;
109 find . -name "*.class" -exec rm -f {} \;
113 [ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
115 CLASSPATH=$(build-classpath wsdl4j jakarta-commons-discovery jakarta-commons-httpclient3 jakarta-commons-logging log4j jaf javamail/mailapi servletapi5)
116 export CLASSPATH=$CLASSPATH:$(build-classpath oro junit jimi xml-security jsse httpunit jms castor 2>/dev/null)
118 export OPT_JAR_LIST="ant/ant-nodeps"
121 -Dwsdl4j.jar=$(build-classpath wsdl4j) \
122 -Dcommons-discovery.jar=$(build-classpath jakarta-commons-discovery) \
123 -Dcommons-logging.jar=$(build-classpath jakarta-commons-logging) \
124 -Dcommons-httpclient.jar=$(build-classpath jakarta-commons-httpclient3) \
125 -Dlog4j-core.jar=$(build-classpath log4j) \
126 -Dactivation.jar=$(build-classpath jaf) \
127 -Dmailapi.jar=$(build-classpath javamail/mailapi) \
128 -Dxerces.jar=$(build-classpath jaxp_parser_impl) \
129 -Dservlet.jar=$(build-classpath servletapi5) \
130 -Dregexp.jar=$(build-classpath oro 2>/dev/null) \
131 -Djunit.jar=$(build-classpath junit 2>/dev/null) \
132 -Djimi.jar=$(build-classpath jimi 2>/dev/null) \
133 -Djsse.jar=$(build-classpath jsse/jsse 2>/dev/null) \
134 clean compile javadocs
137 rm -rf $RPM_BUILD_ROOT
140 install -d $RPM_BUILD_ROOT%{_javadir}/%{name}
143 install -m 644 axis.jar axis-ant.jar saaj.jar jaxrpc.jar \
144 $RPM_BUILD_ROOT%{_javadir}/%{name}
147 cd $RPM_BUILD_ROOT%{_javadir}/%{name}
148 for jar in *.jar ; do
149 vjar=$(echo $jar | sed s+.jar+-%{version}.jar+g)
157 install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
158 cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
162 ln -fs %{_javadocdir}/%{name} apiDocs
166 rm -rf $RPM_BUILD_ROOT
169 rm -f %{_javadocdir}/%{name}
170 ln -s %{name}-%{version} %{_javadocdir}/%{name}
173 if [ "$1" = "0" ]; then
174 rm -f %{_javadocdir}/%{name}
178 %defattr(644,root,root,755)
179 %doc LICENSE README release-notes.html changelog.html
180 %dir %{_javadir}/%{name}
181 %{_javadir}/%{name}/*.jar
184 %defattr(644,root,root,755)
185 %dir %{_javadocdir}/%{name}-%{version}
186 %{_javadocdir}/%{name}-%{version}/*
189 %defattr(644,root,root,755)