SHA256
1
0
forked from pool/axis
axis/axis.spec

156 lines
4.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package axis
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# icecream 0
%define name axis
%define version 1.4
%define archivever 1_4
%define release 2jpp
%define section free
Name: axis
Version: 1.4
Release: 275
Summary: Apache implementation of the SOAP
License: Apache-2.0
Group: Development/Languages/Java
Url: http://ws.apache.org/axis/
Source0: %{name}-src-%{archivever}.tar.bz2
Patch0: unimplemented-dom3-methods.patch
Patch1: axis-1.4-gcc44_build.patch
# Mandatory requires
# optional requires
BuildRequires: ant
BuildRequires: ant-jdepend
BuildRequires: antlr
BuildRequires: classpath
BuildRequires: classpathx-mail
BuildRequires: gnu-jaf
BuildRequires: jakarta-commons-discovery
BuildRequires: jakarta-commons-httpclient3
BuildRequires: jakarta-commons-logging
BuildRequires: jpackage-utils
BuildRequires: junit
BuildRequires: log4j-mini
BuildRequires: servletapi5
BuildRequires: unzip
BuildRequires: wsdl4j
BuildRequires: xerces-j2
BuildRequires: java-devel
Requires: java
Requires: jpackage-utils >= 1.5
Requires: jaf
Requires: jakarta-commons-discovery
Requires: jakarta-commons-logging
Requires: jakarta-commons-httpclient3
Requires: javamail
Requires: jaxp_parser_impl
Requires: log4j
Requires: wsdl4j
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Apache Axis is an implementation of the SOAP ("Simple Object Access
Protocol") submission to W3C.
%package javadoc
License: Apache-2.0
PreReq: coreutils
Summary: Api documentation for axis
Group: Documentation/Other
%description javadoc
Api documentation for axis
%package manual
License: Apache-2.0
Summary: Manual for axis
Group: Documentation/Other
%description manual
Manual for axis
%prep
%setup -q -n %{name}-%{archivever}
%patch0 -p1
%patch1 -p1 -b gcc44-build
# Remove provided binaries
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.zip" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;
%build
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
CLASSPATH=$(build-classpath wsdl4j jakarta-commons-discovery jakarta-commons-httpclient3 jakarta-commons-logging log4j activation javamail servletapi5)
export CLASSPATH=$CLASSPATH:$(build-classpath oro junit jdepend jimi xml-security jsse httpunit jms castor 2>/dev/null)
export OPT_JAR_LIST="ant/ant-nodeps"
export LC_ALL="en_US.UTF-8" # necessary for javadoc
ant -Dcompile.ime=true \
-Dwsdl4j.jar=$(build-classpath wsdl4j) \
-Dcommons-discovery.jar=$(build-classpath jakarta-commons-discovery) \
-Dcommons-logging.jar=$(build-classpath jakarta-commons-logging) \
-Dcommons-httpclient.jar=$(build-classpath jakarta-commons-httpclient3) \
-Dlog4j-core.jar=$(build-classpath log4j) \
-Dactivation.jar=$(build-classpath jaf) \
-Dmailapi.jar=$(build-classpath javamail/mailapi) \
-Dxerces.jar=$(build-classpath jaxp_parser_impl) \
-Dservlet.jar=$(build-classpath servletapi5) \
-Dregexp.jar=$(build-classpath oro 2>/dev/null) \
-Djunit.jar=$(build-classpath junit 2>/dev/null) \
-Djimi.jar=$(build-classpath jimi 2>/dev/null) \
-Djsse.jar=$(build-classpath jsse/jsse 2>/dev/null) \
-Dant.build.javac.source=1.4 \
-Dant.build.javac.target=1.4 \
clean compile javadocs
%install
### Jar files
install -d -m 755 %{buildroot}%{_javadir}/%{name}
pushd build/lib
install -m 644 axis.jar axis-ant.jar saaj.jar jaxrpc.jar \
%{buildroot}%{_javadir}/%{name}
popd
pushd %{buildroot}%{_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 %{buildroot}%{_javadocdir}/%{name}
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
%files
%defattr(0644,root,root,0755)
%doc LICENSE README release-notes.html changelog.html
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar
%files javadoc
%defattr(0644,root,root,0755)
%dir %{_javadocdir}/%{name}
%{_javadocdir}/%{name}/*
%files manual
%defattr(0644,root,root,0755)
%doc docs/*
%changelog