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