Репозитории ALT
5.1: | 1.4-alt2_4jpp5 |
4.1: | 1.4-alt2_2jpp1.7 |
4.0: | 1.4-alt2_2jpp1.7 |
3.0: | 1.2.1-alt1 |
Группа :: Разработка/Java
Пакет: axis
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
BuildRequires: /proc
BuildRequires: jpackage-1.5-compat
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
# 3. Neither the name of the JPackage Project nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
Name: axis
Version: 1.4
Release: alt2_2jpp1.7
Epoch: 0
Summary: A SOAP implementation in Java
License: Apache Software License
Group: Development/Java
Url: http://ws.apache.org/%{name}/
Source0: axis-1.4-src.tar.gz
# svn export http://svn.apache.org/repos/asf/webservices/axis/branches/AXIS_1_4_FINAL/
# Build only
BuildRequires: jpackage-utils >= 0:1.6
BuildRequires: ant >= 0:1.6
BuildRequires: ant-nodeps
BuildRequires: ant-junit
BuildRequires: httpunit
BuildRequires: junit
BuildRequires: xmlunit
# Main requires
BuildRequires: bea-stax-api
BuildRequires: bsf
BuildRequires: castor
BuildRequires: classpathx-mail
BuildRequires: classpathx-jaf
BuildRequires: geronimo-j2ee-1.4-apis
BuildRequires: geronimo-servlet-2.4-api
BuildRequires: jakarta-commons-discovery
BuildRequires: jakarta-commons-httpclient >= 1:3.0
BuildRequires: jakarta-commons-logging
BuildRequires: jakarta-commons-net
BuildRequires: oro
BuildRequires: regexp
BuildRequires: log4j
BuildRequires: wsdl4j
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildRequires: xml-commons-jaxp-1.2-apis
BuildRequires: xmlbeans
BuildRequires: xml-security
# optional requires
#BuildRequires: jimi
BuildRequires: jetty5
Requires: jpackage-utils >= 0:1.6
Requires: jaf
Requires: jakarta-commons-discovery
Requires: jakarta-commons-logging
Requires: jakarta-commons-httpclient >= 1:3.0
Requires: javamail
Requires: jaxp_parser_impl
Requires: log4j
Requires: wsdl4j
BuildArch: noarch
%description
Apache AXIS is an implementation of the SOAP ("Simple Object Access Protocol")
submission to W3C.
From the draft W3C specification:
SOAP is a lightweight protocol for exchange of information in a decentralized,
distributed environment. It is an XML based protocol that consists of three
parts: an envelope that defines a framework for describing what is in a message
and how to process it, a set of encoding rules for expressing instances of
application-defined datatypes, and a convention for representing remote
procedure calls and responses.
This project is a follow-on to the Apache SOAP project.
%package javadoc
Summary: Javadoc for %{name}
Group: Development/Java
%description javadoc
Javadoc for %{name}.
%package manual
Summary: Manual for %{name}
Group: Development/Java
%description manual
Documentation for %{name}.
%prep
%setup -q -n %{name}-%{version}-src
# Remove provided binaries
#find . -name "*.jar" -exec rm -f {} \;
for f in $(find . -name "*.jar"); do mv $f $f.no; done
#find . -name "*.zip" -exec rm -f {} \;
for f in $(find . -name "*.zip"); do mv $f $f.no; done
#find . -name "*.class" -exec rm -f {} \;
for f in $(find . -name "*.class"); do mv $f $f.no; done
%build
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
pushd lib
ln -sf $(build-classpath bea-stax-api) .
ln -sf $(build-classpath bsf) .
ln -sf $(build-classpath castor) .
ln -sf $(build-classpath commons-discovery) .
ln -sf $(build-classpath commons-httpclient) .
ln -sf $(build-classpath commons-logging) .
ln -sf $(build-classpath commons-net) .
ln -sf $(build-classpath httpunit) .
ln -sf $(build-classpath jetty5/jetty5) .
ln -sf $(build-classpath log4j) .
ln -sf $(build-classpath oro) .
ln -sf $(build-classpath xml-security) .
ln -sf $(build-classpath xmlbeans/xbean) .
ln -sf $(build-classpath wsdl4j) .
pushd endorsed
ln -sf $(build-classpath xerces-j2) .
ln -sf $(build-classpath xml-commons-jaxp-1.2-apis) .
popd
ln -sf $(build-classpath javamail/mailapi) .
ln -sf $(build-classpath javamail/providers) .
popd
export OPT_JAR_LIST="ant/ant-nodeps ant/ant-junit junit"
ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 \
-Dtest.functional.fail=no \
-Dcommons-discovery.jar=$(build-classpath commons-discovery) \
-Dcommons-httpclient.jar=$(build-classpath commons-httpclient) \
-Dcommons-logging.jar=$(build-classpath commons-logging) \
-Dlog4j-core.jar=$(build-classpath log4j) \
-Dwsdl4j.jar=$(build-classpath wsdl4j) \
-DxercesImpl.jar=$(build-classpath xerces-j2) \
-DxmlParserAPIs.jar=$(build-classpath xml-commons-jaxp-1.2-apis) \
-Dxalan.jar=$(build-classpath xalan-j2) \
-Dxml-apis.jar=$(build-classpath xml-commons-jaxp-1.2-apis) \
-Dxerces.jar=$(build-classpath xerces-j2) \
-Dregexp.jar=$(build-classpath regexp) \
-Dxmlunit.jar=$(build-classpath xmlunit) \
-Djsse.jar=$(build-classpath jsse/jsse) \
-Dtools.jar=%{_jvmdir}/java/lib/tools.jar \
-Dj2ee.jar=$(build-classpath geronimo-j2ee-1.4-apis) \
-Dactivation.jar=$(build-classpath activation) \
-Dmailapi.jar=$(build-classpath javamail/mailapi) \
-Djunit.jar=$(build-classpath junit) \
-Dservlet.jar=$(build-classpath geronimo-servlet-2.4-api) \
-Dbsf.jar=$(build-classpath bsf) \
-Dcastor.jar=$(build-classpath castor) \
-Dcommons-net.jar=$(build-classpath commons-net) \
-Djetty.jar=$(build-classpath jetty5) \
-Dsecurity.jar=$(build-classpath xml-security) \
-Dxmlbeans.jar=$(build-classpath xmlbeans) \
-Dhttpunit.jar=$(build-classpath httpunit) \
clean compile javadocs junit war
# -Djimi.jar=$(build-classpath jimi) \
%install
### Jar files
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
pushd build/lib
install -m 644 axis.jar axis-ant.jar axis-schema.jar saaj.jar jaxrpc.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}
popd
pushd $RPM_BUILD_ROOT%{_javadir}/%{name}
for jar in *.jar ; do
vjar=$(echo $jar | sed s+.jar+-%{version}.jar+g)
mv $jar $vjar
ln -fs $vjar $jar
done
popd
### Javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
pushd docs
rm -fr apiDocs
ln -fs %{_javadocdir}/%{name} apiDocs
popd
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/webapps
install -m 644 build/axis.war \
$RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/webapps
%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ "$1" = "0" ]; then
rm -f %{_javadocdir}/%{name}
fi
%files
%doc LICENSE README release-notes.html changelog.html
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar
%{_datadir}/%{name}-%{version}
%files javadoc
%dir %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}-%{version}/*
%files manual
%doc --no-dereference docs/*
%changelog
…
Полный changelog можно просмотреть здесь
BuildRequires: jpackage-1.5-compat
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the
# distribution.
# 3. Neither the name of the JPackage Project nor the names of its
# contributors may be used to endorse or promote products derived
# from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
Name: axis
Version: 1.4
Release: alt2_2jpp1.7
Epoch: 0
Summary: A SOAP implementation in Java
License: Apache Software License
Group: Development/Java
Url: http://ws.apache.org/%{name}/
Source0: axis-1.4-src.tar.gz
# svn export http://svn.apache.org/repos/asf/webservices/axis/branches/AXIS_1_4_FINAL/
# Build only
BuildRequires: jpackage-utils >= 0:1.6
BuildRequires: ant >= 0:1.6
BuildRequires: ant-nodeps
BuildRequires: ant-junit
BuildRequires: httpunit
BuildRequires: junit
BuildRequires: xmlunit
# Main requires
BuildRequires: bea-stax-api
BuildRequires: bsf
BuildRequires: castor
BuildRequires: classpathx-mail
BuildRequires: classpathx-jaf
BuildRequires: geronimo-j2ee-1.4-apis
BuildRequires: geronimo-servlet-2.4-api
BuildRequires: jakarta-commons-discovery
BuildRequires: jakarta-commons-httpclient >= 1:3.0
BuildRequires: jakarta-commons-logging
BuildRequires: jakarta-commons-net
BuildRequires: oro
BuildRequires: regexp
BuildRequires: log4j
BuildRequires: wsdl4j
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildRequires: xml-commons-jaxp-1.2-apis
BuildRequires: xmlbeans
BuildRequires: xml-security
# optional requires
#BuildRequires: jimi
BuildRequires: jetty5
Requires: jpackage-utils >= 0:1.6
Requires: jaf
Requires: jakarta-commons-discovery
Requires: jakarta-commons-logging
Requires: jakarta-commons-httpclient >= 1:3.0
Requires: javamail
Requires: jaxp_parser_impl
Requires: log4j
Requires: wsdl4j
BuildArch: noarch
%description
Apache AXIS is an implementation of the SOAP ("Simple Object Access Protocol")
submission to W3C.
From the draft W3C specification:
SOAP is a lightweight protocol for exchange of information in a decentralized,
distributed environment. It is an XML based protocol that consists of three
parts: an envelope that defines a framework for describing what is in a message
and how to process it, a set of encoding rules for expressing instances of
application-defined datatypes, and a convention for representing remote
procedure calls and responses.
This project is a follow-on to the Apache SOAP project.
%package javadoc
Summary: Javadoc for %{name}
Group: Development/Java
%description javadoc
Javadoc for %{name}.
%package manual
Summary: Manual for %{name}
Group: Development/Java
%description manual
Documentation for %{name}.
%prep
%setup -q -n %{name}-%{version}-src
# Remove provided binaries
#find . -name "*.jar" -exec rm -f {} \;
for f in $(find . -name "*.jar"); do mv $f $f.no; done
#find . -name "*.zip" -exec rm -f {} \;
for f in $(find . -name "*.zip"); do mv $f $f.no; done
#find . -name "*.class" -exec rm -f {} \;
for f in $(find . -name "*.class"); do mv $f $f.no; done
%build
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
pushd lib
ln -sf $(build-classpath bea-stax-api) .
ln -sf $(build-classpath bsf) .
ln -sf $(build-classpath castor) .
ln -sf $(build-classpath commons-discovery) .
ln -sf $(build-classpath commons-httpclient) .
ln -sf $(build-classpath commons-logging) .
ln -sf $(build-classpath commons-net) .
ln -sf $(build-classpath httpunit) .
ln -sf $(build-classpath jetty5/jetty5) .
ln -sf $(build-classpath log4j) .
ln -sf $(build-classpath oro) .
ln -sf $(build-classpath xml-security) .
ln -sf $(build-classpath xmlbeans/xbean) .
ln -sf $(build-classpath wsdl4j) .
pushd endorsed
ln -sf $(build-classpath xerces-j2) .
ln -sf $(build-classpath xml-commons-jaxp-1.2-apis) .
popd
ln -sf $(build-classpath javamail/mailapi) .
ln -sf $(build-classpath javamail/providers) .
popd
export OPT_JAR_LIST="ant/ant-nodeps ant/ant-junit junit"
ant -Dant.build.javac.source=1.4 -Dant.build.javac.target=1.4 \
-Dtest.functional.fail=no \
-Dcommons-discovery.jar=$(build-classpath commons-discovery) \
-Dcommons-httpclient.jar=$(build-classpath commons-httpclient) \
-Dcommons-logging.jar=$(build-classpath commons-logging) \
-Dlog4j-core.jar=$(build-classpath log4j) \
-Dwsdl4j.jar=$(build-classpath wsdl4j) \
-DxercesImpl.jar=$(build-classpath xerces-j2) \
-DxmlParserAPIs.jar=$(build-classpath xml-commons-jaxp-1.2-apis) \
-Dxalan.jar=$(build-classpath xalan-j2) \
-Dxml-apis.jar=$(build-classpath xml-commons-jaxp-1.2-apis) \
-Dxerces.jar=$(build-classpath xerces-j2) \
-Dregexp.jar=$(build-classpath regexp) \
-Dxmlunit.jar=$(build-classpath xmlunit) \
-Djsse.jar=$(build-classpath jsse/jsse) \
-Dtools.jar=%{_jvmdir}/java/lib/tools.jar \
-Dj2ee.jar=$(build-classpath geronimo-j2ee-1.4-apis) \
-Dactivation.jar=$(build-classpath activation) \
-Dmailapi.jar=$(build-classpath javamail/mailapi) \
-Djunit.jar=$(build-classpath junit) \
-Dservlet.jar=$(build-classpath geronimo-servlet-2.4-api) \
-Dbsf.jar=$(build-classpath bsf) \
-Dcastor.jar=$(build-classpath castor) \
-Dcommons-net.jar=$(build-classpath commons-net) \
-Djetty.jar=$(build-classpath jetty5) \
-Dsecurity.jar=$(build-classpath xml-security) \
-Dxmlbeans.jar=$(build-classpath xmlbeans) \
-Dhttpunit.jar=$(build-classpath httpunit) \
clean compile javadocs junit war
# -Djimi.jar=$(build-classpath jimi) \
%install
### Jar files
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
pushd build/lib
install -m 644 axis.jar axis-ant.jar axis-schema.jar saaj.jar jaxrpc.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}
popd
pushd $RPM_BUILD_ROOT%{_javadir}/%{name}
for jar in *.jar ; do
vjar=$(echo $jar | sed s+.jar+-%{version}.jar+g)
mv $jar $vjar
ln -fs $vjar $jar
done
popd
### Javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
pushd docs
rm -fr apiDocs
ln -fs %{_javadocdir}/%{name} apiDocs
popd
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/webapps
install -m 644 build/axis.war \
$RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}/webapps
%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ "$1" = "0" ]; then
rm -f %{_javadocdir}/%{name}
fi
%files
%doc LICENSE README release-notes.html changelog.html
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar
%{_datadir}/%{name}-%{version}
%files javadoc
%dir %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}-%{version}/*
%files manual
%doc --no-dereference docs/*
%changelog
…
Полный changelog можно просмотреть здесь