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