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
9 License: Apache Software License
10 Group: Development/Languages/Java
11 URL: http://ws.apache.org/axis/
12 Source0: %{url}/dist/%{archivever}/%{name}-src-%{archivever}.tar.gz
13 # Source0-md5: 157ad070accf373565bce80de1204a4d
14 #BuildRequires: ant-nodeps
15 BuildRequires: jakarta-ant >= 1.6
19 BuildRequires: jakarta-commons-discovery
20 BuildRequires: jakarta-commons-httpclient3
21 BuildRequires: jakarta-commons-logging
22 BuildRequires: jakarta-log4j
23 BuildRequires: javamail
24 BuildRequires: jaxp_parser_impl
25 BuildRequires: servletapi5
29 BuildRequires: httpunit
30 BuildRequires: jakarta-oro
35 #BuildRequires: xml-security
37 Requires: jakarta-commons-discovery
38 Requires: jakarta-commons-httpclient3
39 Requires: jakarta-commons-logging
42 Requires: jaxp_parser_impl
43 #Requires: jpackage-utils >= 0:1.5
47 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
50 Apache AXIS is an implementation of the SOAP ("Simple Object Access
51 Protocol") submission to W3C.
53 From the draft W3C specification:
55 SOAP is a lightweight protocol for exchange of information in a
56 decentralized, distributed environment. It is an XML based protocol
57 that consists of three parts: an envelope that defines a framework for
58 describing what is in a message and how to process it, a set of
59 encoding rules for expressing instances of application-defined
60 datatypes, and a convention for representing remote procedure calls
63 This project is a follow-on to the Apache SOAP project.
66 Summary: Javadoc for %{name}
67 Group: Development/Languages/Java
73 Summary: Manual for %{name}
74 Group: Development/Languages/Java
77 Documentation for %{name}.
80 %setup -q -n %{name}-%{archivever}
82 # Remove provided binaries
83 find . -name "*.jar" -exec rm -f {} \;
84 find . -name "*.zip" -exec rm -f {} \;
85 find . -name "*.class" -exec rm -f {} \;
89 [ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
91 CLASSPATH=$(build-classpath wsdl4j jakarta-commons-discovery jakarta-commons-httpclient3 jakarta-commons-logging log4j jaf javamail/mailapi servletapi5)
92 export CLASSPATH=$CLASSPATH:$(build-classpath oro junit jimi xml-security jsse httpunit jms castor 2>/dev/null)
94 export OPT_JAR_LIST="ant/ant-nodeps"
95 ant -Dcompile.ime=true \
96 -Dwsdl4j.jar=$(build-classpath wsdl4j) \
97 -Dcommons-discovery.jar=$(build-classpath jakarta-commons-discovery) \
98 -Dcommons-logging.jar=$(build-classpath jakarta-commons-logging) \
99 -Dcommons-httpclient.jar=$(build-classpath jakarta-commons-httpclient3) \
100 -Dlog4j-core.jar=$(build-classpath log4j) \
101 -Dactivation.jar=$(build-classpath jaf) \
102 -Dmailapi.jar=$(build-classpath javamail/mailapi) \
103 -Dxerces.jar=$(build-classpath jaxp_parser_impl) \
104 -Dservlet.jar=$(build-classpath servletapi5) \
105 -Dregexp.jar=$(build-classpath oro 2>/dev/null) \
106 -Djunit.jar=$(build-classpath junit 2>/dev/null) \
107 -Djimi.jar=$(build-classpath jimi 2>/dev/null) \
108 -Djsse.jar=$(build-classpath jsse/jsse 2>/dev/null) \
109 clean compile javadocs
113 rm -rf $RPM_BUILD_ROOT
116 install -d $RPM_BUILD_ROOT%{_javadir}/%{name}
119 install -m 644 axis.jar axis-ant.jar saaj.jar jaxrpc.jar \
120 $RPM_BUILD_ROOT%{_javadir}/%{name}
123 cd $RPM_BUILD_ROOT%{_javadir}/%{name}
124 for jar in *.jar ; do
125 vjar=$(echo $jar | sed s+.jar+-%{version}.jar+g)
133 install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
134 cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
138 ln -fs %{_javadocdir}/%{name} apiDocs
142 rm -rf $RPM_BUILD_ROOT
145 rm -f %{_javadocdir}/%{name}
146 ln -s %{name}-%{version} %{_javadocdir}/%{name}
149 if [ "$1" = "0" ]; then
150 rm -f %{_javadocdir}/%{name}
154 %defattr(644,root,root,755)
155 %doc LICENSE README release-notes.html changelog.html
156 %dir %{_javadir}/%{name}
157 %{_javadir}/%{name}/*.jar
160 %defattr(644,root,root,755)
161 %dir %{_javadocdir}/%{name}-%{version}
162 %{_javadocdir}/%{name}-%{version}/*
165 %defattr(644,root,root,755)