9e33b5
Name:       xmlrpc
9e33b5
Version:    3.1.3
9e33b5
Release:    9%{?dist}
9e33b5
Epoch:      1
9e33b5
Summary:    Java XML-RPC implementation
9e33b5
License:    ASL 2.0
9e33b5
URL:        http://ws.apache.org/xmlrpc/
9e33b5
Source0:    http://www.apache.org/dist/ws/xmlrpc/sources/apache-xmlrpc-%{version}-src.tar.bz2
9e33b5
# Add OSGi MANIFEST information
9e33b5
Patch0:     %{name}-client-addosgimanifest.patch
9e33b5
Patch1:     %{name}-common-addosgimanifest.patch
9e33b5
Patch2:     %{name}-javax-methods.patch
9e33b5
Patch3:     %{name}-disallow-deserialization-of-ex-serializable-tags.patch
9e33b5
9e33b5
BuildRequires:  maven-local
9e33b5
BuildRequires:  maven-resources-plugin
9e33b5
BuildRequires:  maven-assembly-plugin
9e33b5
BuildRequires:  maven-source-plugin
9e33b5
BuildRequires:  maven-site-plugin
9e33b5
BuildRequires:  ws-commons-util
9e33b5
BuildRequires:  jpackage-utils >= 0:1.6
9e33b5
BuildRequires:  tomcat-servlet-3.0-api
9e33b5
BuildRequires:  junit
9e33b5
BuildRequires:  jakarta-commons-httpclient
9e33b5
BuildRequires:  apache-commons-logging
9e33b5
9e33b5
BuildArch:    noarch
9e33b5
9e33b5
%description
9e33b5
Apache XML-RPC is a Java implementation of XML-RPC, a popular protocol
9e33b5
that uses XML over HTTP to implement remote procedure calls.
9e33b5
Apache XML-RPC was previously known as Helma XML-RPC. If you have code
9e33b5
using the Helma library, all you should have to do is change the import
9e33b5
statements in your code from helma.xmlrpc.* to org.apache.xmlrpc.*.
9e33b5
9e33b5
%package javadoc
9e33b5
Summary:    Javadoc for %{name}
9e33b5
9e33b5
%description javadoc
9e33b5
Javadoc for %{name}.
9e33b5
9e33b5
%package common
9e33b5
Summary:    Common classes for XML-RPC client and server implementations
9e33b5
# Provide xmlrpc is not here because it would be useless due to different jar names
9e33b5
Obsoletes:  %{name} < 3.1.3
9e33b5
Obsoletes:  %{name}3-common < 3.1.3-13
9e33b5
Provides:   %{name}3-common = 3.1.3-13
9e33b5
# in OSGI manifest
9e33b5
Requires:   apache-commons-logging
9e33b5
9e33b5
%description common
9e33b5
%{summary}.
9e33b5
9e33b5
%package client
9e33b5
Summary:    XML-RPC client implementation
9e33b5
Obsoletes:  %{name}3-client < 3.1.3-13
9e33b5
Provides:  %{name}3-client = 3.1.3-13
9e33b5
# in OSGI manifest
9e33b5
Requires:   jakarta-commons-httpclient
9e33b5
9e33b5
%description client
9e33b5
%{summary}.
9e33b5
9e33b5
%package server
9e33b5
Summary:    XML-RPC server implementation
9e33b5
Obsoletes:  %{name}3-server < 3.1.3-13
9e33b5
Provides:  %{name}3-server = 3.1.3-13
9e33b5
9e33b5
%description server
9e33b5
%{summary}.
9e33b5
9e33b5
%prep
9e33b5
%setup -q -n apache-%{name}-%{version}-src
9e33b5
%patch2 -b .sav
9e33b5
pushd client
9e33b5
%patch0 -b .sav
9e33b5
popd
9e33b5
pushd common
9e33b5
%patch1 -b .sav
9e33b5
popd
9e33b5
%patch3 -p1
9e33b5
9e33b5
sed -i 's/\r//' LICENSE.txt
9e33b5
9e33b5
%pom_remove_dep jaxme:jaxmeapi
9e33b5
9e33b5
%pom_disable_module dist
9e33b5
9e33b5
%mvn_package :xmlrpc common
9e33b5
%mvn_package :xmlrpc-{common} @1
9e33b5
%mvn_package :xmlrpc-{client} @1
9e33b5
%mvn_package :xmlrpc-{server} @1
9e33b5
9e33b5
%mvn_file :xmlrpc-{common} %{name}-@1 %{name}3-@1
9e33b5
%mvn_file :xmlrpc-{client} %{name}-@1 %{name}3-@1
9e33b5
%mvn_file :xmlrpc-{server} %{name}-@1 %{name}3-@1
9e33b5
9e33b5
%build
9e33b5
# ignore test failure because server part needs network
9e33b5
%mvn_build -f
9e33b5
9e33b5
%install
9e33b5
%mvn_install
9e33b5
9e33b5
%files common -f .mfiles-common
9e33b5
%doc LICENSE.txt NOTICE.txt
9e33b5
9e33b5
%files client -f .mfiles-client
9e33b5
%files server -f .mfiles-server
9e33b5
9e33b5
%files javadoc -f .mfiles-javadoc
9e33b5
%doc LICENSE.txt NOTICE.txt
9e33b5
9e33b5
9e33b5
%changelog
9e33b5
* Wed May 23 2018 Michael Simacek <msimacek@redhat.com> - 1:3.1.3-9
9e33b5
- Disallow deserialization of <ex:serializable> tags by default
9e33b5
- Resolves: CVE-2016-5003
9e33b5
9e33b5
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:3.1.3-8
9e33b5
- Mass rebuild 2013-12-27
9e33b5
9e33b5
* Mon Aug 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:3.1.3-7
9e33b5
- Migrate away from mvn-rpmbuild (#997460)
9e33b5
9e33b5
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-6
9e33b5
- Rebuild to regenerate API documentation
9e33b5
- Resolves: CVE-2013-1571
9e33b5
9e33b5
* Fri May 17 2013 Alexander Kurtakov <akurtako@redhat.com> 1:3.1.3-5
9e33b5
- Remove javax.xml.bind from osgi imports - it's part of the JVM now.
9e33b5
- Drop the ws-jaxme dependency for the same reason.
9e33b5
9e33b5
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.1.3-4
9e33b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
9e33b5
9e33b5
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1:3.1.3-3
9e33b5
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
9e33b5
- Replace maven BuildRequires with maven-local
9e33b5
9e33b5
* Sat Oct 20 2012 Peter Robinson <pbrobinson@fedoraproject.org>	3.1.3-2
9e33b5
- xmlrpc v2 had an Epoch so we need one here. Add it back
9e33b5
9e33b5
* Fri Sep 14 2012 Alexander Kurtakov <akurtako@redhat.com> 3.1.3-1
9e33b5
- First release of version 3.x package