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