]>
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 | |
952ffbef ER |
7 | %define archivever %(echo %{version} | tr . _) |
8 | Summary: A SOAP implementation in Java | |
d7049fd1 | 9 | Summary(pl.UTF-8): Implementacja SOAP w Javie |
952ffbef ER |
10 | Name: axis |
11 | Version: 1.2.1 | |
f105c4a1 | 12 | Release: 0.3 |
952ffbef ER |
13 | License: Apache Software License |
14 | Group: Development/Languages/Java | |
21fcb34a | 15 | Source0: http://ws.apache.org/axis//dist/%{archivever}/%{name}-src-%{archivever}.tar.gz |
952ffbef | 16 | # Source0-md5: 157ad070accf373565bce80de1204a4d |
21fcb34a | 17 | URL: http://ws.apache.org/axis/ |
2bbdba56 | 18 | BuildRequires: ant >= 1.6 |
d57efde4 | 19 | #BuildRequires: ant-nodeps |
952ffbef ER |
20 | BuildRequires: jdk |
21 | # Mandatory requires | |
22 | BuildRequires: jaf | |
23 | BuildRequires: jakarta-commons-discovery | |
340429f1 | 24 | BuildRequires: jakarta-commons-httpclient |
952ffbef | 25 | BuildRequires: jakarta-commons-logging |
952ffbef ER |
26 | BuildRequires: javamail |
27 | BuildRequires: jaxp_parser_impl | |
d57efde4 ER |
28 | BuildRequires: jpackage-utils |
29 | BuildRequires: logging-log4j | |
30 | BuildRequires: rpmbuild(macros) >= 1.300 | |
952ffbef ER |
31 | BuildRequires: servletapi5 |
32 | BuildRequires: wsdl4j | |
33 | # optional requires | |
34 | BuildRequires: castor | |
35 | BuildRequires: httpunit | |
36 | BuildRequires: jakarta-oro | |
37 | BuildRequires: jimi | |
38 | BuildRequires: jms | |
39 | BuildRequires: jsse | |
40 | BuildRequires: junit | |
952ffbef ER |
41 | Requires: jaf |
42 | Requires: jakarta-commons-discovery | |
340429f1 | 43 | Requires: jakarta-commons-httpclient |
952ffbef ER |
44 | Requires: jakarta-commons-logging |
45 | Requires: java | |
46 | Requires: javamail | |
47 | Requires: jaxp_parser_impl | |
56506b98 | 48 | Requires: logging-log4j |
d57efde4 | 49 | Requires: jpackage-utils |
952ffbef ER |
50 | Requires: log4j |
51 | Requires: wsdl4j | |
52 | BuildArch: noarch | |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | Apache AXIS is an implementation of the SOAP ("Simple Object Access | |
57 | Protocol") submission to W3C. | |
58 | ||
59 | From the draft W3C specification: | |
60 | ||
61 | SOAP is a lightweight protocol for exchange of information in a | |
62 | decentralized, distributed environment. It is an XML based protocol | |
63 | that consists of three parts: an envelope that defines a framework for | |
64 | describing what is in a message and how to process it, a set of | |
65 | encoding rules for expressing instances of application-defined | |
66 | datatypes, and a convention for representing remote procedure calls | |
67 | and responses. | |
68 | ||
69 | This project is a follow-on to the Apache SOAP project. | |
70 | ||
cd04c4e5 | 71 | %description -l pl.UTF-8 |
21fcb34a JB |
72 | Apache AXIS to implementacja SOAP ("Simple Object Access Protocol") |
73 | przekazanego do W3C. | |
74 | ||
75 | Z projektu specyfikacji W3C: | |
76 | ||
cd04c4e5 JR |
77 | SOAP to lekki protokół do wymiany informacji w scentralizowanym, |
78 | rozproszonym środowisku. Jest to protokół oparty na XML-u, składający | |
79 | się z trzech części: koperty definiującej szkielet do opisu zawartości | |
80 | i sposobu przetwarzania komunikatu, zbioru reguł kodowania do | |
81 | wyrażania instancji typów danych zdefiniowanych w aplikacji oraz | |
82 | konwencji reprezentowania zdalnych wywołań procedur i odpowiedzi. | |
21fcb34a | 83 | |
cd04c4e5 | 84 | Ten projekt jest następcą projektu Apache SOAP. |
21fcb34a | 85 | |
952ffbef ER |
86 | %package javadoc |
87 | Summary: Javadoc for %{name} | |
d7049fd1 | 88 | Summary(pl.UTF-8): Dokumentacja javadoc dla pakietu %{name} |
d57efde4 ER |
89 | Group: Documentation |
90 | Requires: jpackage-utils | |
952ffbef ER |
91 | |
92 | %description javadoc | |
93 | Javadoc for %{name}. | |
94 | ||
cd04c4e5 | 95 | %description javadoc -l pl.UTF-8 |
21fcb34a JB |
96 | Dokumentacja javadoc dla pakietu %{name}. |
97 | ||
952ffbef ER |
98 | %package manual |
99 | Summary: Manual for %{name} | |
d7049fd1 | 100 | Summary(pl.UTF-8): Podręcznik do pakietu %{name} |
952ffbef ER |
101 | Group: Development/Languages/Java |
102 | ||
103 | %description manual | |
104 | Documentation for %{name}. | |
105 | ||
cd04c4e5 JR |
106 | %description manual -l pl.UTF-8 |
107 | Podręcznik do pakietu %{name}. | |
21fcb34a | 108 | |
952ffbef ER |
109 | %prep |
110 | %setup -q -n %{name}-%{archivever} | |
111 | ||
112 | # Remove provided binaries | |
d57efde4 ER |
113 | find -name '*.jar' | xargs rm -v |
114 | find -name '*.zip' | xargs rm -v | |
115 | find -name '*.class' | xargs rm -v | |
952ffbef ER |
116 | |
117 | %build | |
d57efde4 | 118 | export JAVA_HOME=%{java_home} |
952ffbef | 119 | |
340429f1 | 120 | CLASSPATH=$(build-classpath wsdl4j jakarta-commons-discovery jakarta-commons-httpclient jakarta-commons-logging log4j jaf javamail/mailapi servletapi5) |
952ffbef ER |
121 | export CLASSPATH=$CLASSPATH:$(build-classpath oro junit jimi xml-security jsse httpunit jms castor 2>/dev/null) |
122 | ||
123 | export OPT_JAR_LIST="ant/ant-nodeps" | |
d57efde4 | 124 | %ant \ |
21fcb34a | 125 | -Dcompile.ime=true \ |
d57efde4 ER |
126 | -Dwsdl4j.jar=$(find-jar wsdl4j) \ |
127 | -Dcommons-discovery.jar=$(find-jar jakarta-commons-discovery) \ | |
128 | -Dcommons-logging.jar=$(find-jar jakarta-commons-logging) \ | |
340429f1 | 129 | -Dcommons-httpclient.jar=$(find-jar jakarta-commons-httpclient) \ |
d57efde4 ER |
130 | -Dlog4j-core.jar=$(find-jar log4j) \ |
131 | -Dactivation.jar=$(find-jar jaf) \ | |
132 | -Dmailapi.jar=$(find-jar javamail/mailapi) \ | |
133 | -Dxerces.jar=$(find-jar jaxp_parser_impl) \ | |
134 | -Dservlet.jar=$(find-jar servletapi5) \ | |
135 | -Dregexp.jar=$(find-jar oro) \ | |
136 | -Djunit.jar=$(find-jar junit) \ | |
137 | -Djimi.jar=$(find-jar jimi) \ | |
138 | -Djsse.jar=$(find-jar jsse/jsse) \ | |
952ffbef ER |
139 | clean compile javadocs |
140 | ||
141 | %install | |
952ffbef ER |
142 | rm -rf $RPM_BUILD_ROOT |
143 | ### Jar files | |
952ffbef ER |
144 | install -d $RPM_BUILD_ROOT%{_javadir}/%{name} |
145 | ||
146 | cd build/lib | |
d57efde4 | 147 | install axis.jar axis-ant.jar saaj.jar jaxrpc.jar \ |
21fcb34a | 148 | $RPM_BUILD_ROOT%{_javadir}/%{name} |
952ffbef ER |
149 | cd - |
150 | ||
151 | cd $RPM_BUILD_ROOT%{_javadir}/%{name} | |
21fcb34a JB |
152 | for jar in *.jar ; do |
153 | vjar=$(echo $jar | sed s+.jar+-%{version}.jar+g) | |
154 | mv $jar $vjar | |
155 | ln -fs $vjar $jar | |
156 | done | |
952ffbef ER |
157 | cd - |
158 | ||
159 | ### Javadoc | |
952ffbef | 160 | install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} |
d57efde4 ER |
161 | cp -a build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} |
162 | ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink | |
952ffbef ER |
163 | |
164 | %clean | |
165 | rm -rf $RPM_BUILD_ROOT | |
166 | ||
167 | %post javadoc | |
d57efde4 | 168 | ln -nfs %{name}-%{version} %{_javadocdir}/%{name} |
952ffbef ER |
169 | |
170 | %files | |
171 | %defattr(644,root,root,755) | |
172 | %doc LICENSE README release-notes.html changelog.html | |
173 | %dir %{_javadir}/%{name} | |
174 | %{_javadir}/%{name}/*.jar | |
175 | ||
176 | %files javadoc | |
177 | %defattr(644,root,root,755) | |
d57efde4 ER |
178 | %{_javadocdir}/%{name}-%{version} |
179 | %ghost %{_javadocdir}/%{name} | |
952ffbef ER |
180 | |
181 | %files manual | |
182 | %defattr(644,root,root,755) | |
183 | %doc docs/* |