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