Blame SPECS/xmlrpc.spec

fa5571
%global pkg_name xmlrpc
fa5571
%{?scl:%scl_package %{pkg_name}}
fa5571
%{?java_common_find_provides_and_requires}
fa5571
fa5571
Name:       %{?scl_prefix}%{pkg_name}
fa5571
Version:    3.1.3
fa5571
Release:    8.14%{?dist}
fa5571
Epoch:      1
fa5571
Summary:    Java XML-RPC implementation
fa5571
License:    ASL 2.0
fa5571
URL:        http://ws.apache.org/xmlrpc/
fa5571
Source0:    http://www.apache.org/dist/ws/xmlrpc/sources/apache-xmlrpc-%{version}-src.tar.bz2
fa5571
# Add OSGi MANIFEST information
fa5571
Patch0:     %{pkg_name}-client-addosgimanifest.patch
fa5571
Patch1:     %{pkg_name}-common-addosgimanifest.patch
fa5571
Patch2:     %{pkg_name}-javax-methods.patch
fa5571
fa5571
BuildRequires:  %{?scl_prefix}maven-local
fa5571
BuildRequires:  %{?scl_prefix_maven}maven-resources-plugin
fa5571
BuildRequires:  %{?scl_prefix_maven}maven-assembly-plugin
fa5571
BuildRequires:  %{?scl_prefix_maven}maven-source-plugin
fa5571
BuildRequires:  %{?scl_prefix_maven}maven-site-plugin
fa5571
BuildRequires:  %{?scl_prefix}ws-commons-util
fa5571
BuildRequires:  %{?scl_prefix}javapackages-tools
fa5571
BuildRequires:  %{?scl_prefix}tomcat-servlet-3.0-api
fa5571
BuildRequires:  %{?scl_prefix}junit
fa5571
BuildRequires:  %{?scl_prefix}jakarta-commons-httpclient
fa5571
BuildRequires:  %{?scl_prefix}apache-commons-logging
fa5571
fa5571
BuildArch:    noarch
fa5571
fa5571
%description
fa5571
Apache XML-RPC is a Java implementation of XML-RPC, a popular protocol
fa5571
that uses XML over HTTP to implement remote procedure calls.
fa5571
Apache XML-RPC was previously known as Helma XML-RPC. If you have code
fa5571
using the Helma library, all you should have to do is change the import
fa5571
statements in your code from helma.xmlrpc.* to org.apache.xmlrpc.*.
fa5571
fa5571
%package javadoc
fa5571
Summary:    Javadoc for %{pkg_name}
fa5571
fa5571
%description javadoc
fa5571
Javadoc for %{pkg_name}.
fa5571
fa5571
%package common
fa5571
Summary:    Common classes for XML-RPC client and server implementations
fa5571
# Provide xmlrpc is not here because it would be useless due to different jar names
fa5571
# in OSGI manifest
fa5571
Requires:   %{?scl_prefix}apache-commons-logging
fa5571
fa5571
%description common
fa5571
%{summary}.
fa5571
fa5571
%package client
fa5571
Summary:    XML-RPC client implementation
fa5571
# in OSGI manifest
fa5571
Requires:   %{?scl_prefix}jakarta-commons-httpclient
fa5571
fa5571
%description client
fa5571
%{summary}.
fa5571
fa5571
%package server
fa5571
Summary:    XML-RPC server implementation
fa5571
fa5571
%description server
fa5571
%{summary}.
fa5571
fa5571
%prep
fa5571
%setup -q -n apache-%{pkg_name}-%{version}-src
fa5571
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
fa5571
set -e -x
fa5571
%patch2 -b .sav
fa5571
pushd client
fa5571
%patch0 -b .sav
fa5571
popd
fa5571
pushd common
fa5571
%patch1 -b .sav
fa5571
popd
fa5571
fa5571
sed -i 's/\r//' LICENSE.txt
fa5571
fa5571
%pom_remove_dep jaxme:jaxmeapi
fa5571
fa5571
%pom_disable_module dist
fa5571
fa5571
%mvn_package :xmlrpc common
fa5571
%mvn_package :xmlrpc-{common} @1
fa5571
%mvn_package :xmlrpc-{client} @1
fa5571
%mvn_package :xmlrpc-{server} @1
fa5571
fa5571
%mvn_file :xmlrpc-{common} %{pkg_name}-@1 %{pkg_name}3-@1
fa5571
%mvn_file :xmlrpc-{client} %{pkg_name}-@1 %{pkg_name}3-@1
fa5571
%mvn_file :xmlrpc-{server} %{pkg_name}-@1 %{pkg_name}3-@1
fa5571
%{?scl:EOF}
fa5571
fa5571
%build
fa5571
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
fa5571
set -e -x
fa5571
# ignore test failure because server part needs network
fa5571
%mvn_build -f
fa5571
%{?scl:EOF}
fa5571
fa5571
%install
fa5571
%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"}
fa5571
set -e -x
fa5571
%mvn_install
fa5571
%{?scl:EOF}
fa5571
fa5571
%files common -f .mfiles-common
fa5571
%dir %{_mavenpomdir}/%{pkg_name}
fa5571
%doc LICENSE.txt NOTICE.txt
fa5571
fa5571
%files client -f .mfiles-client
fa5571
%files server -f .mfiles-server
fa5571
fa5571
%files javadoc -f .mfiles-javadoc
fa5571
%doc LICENSE.txt NOTICE.txt
fa5571
fa5571
fa5571
%changelog
fa5571
* Wed Jan 14 2015 Michal Srb <msrb@redhat.com> - 1:3.1.3-8.14
fa5571
- Fix directory ownership
fa5571
fa5571
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 1:3.1.3-8.13
fa5571
- Mass rebuild 2015-01-13
fa5571
fa5571
* Mon Jan 12 2015 Michael Simacek <msimacek@redhat.com> - 1:3.1.3-8.12
fa5571
- Rebuild to regenerate requires
fa5571
fa5571
* Fri Jan 09 2015 Michal Srb <msrb@redhat.com> - 1:3.1.3-8.11
fa5571
- Mass rebuild 2015-01-09
fa5571
fa5571
* Tue Dec 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.10
fa5571
- Migrate requires and build-requires to rh-java-common
fa5571
fa5571
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.9
fa5571
- Mass rebuild 2014-12-15
fa5571
fa5571
* Mon Dec 15 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.8
fa5571
- Rebuild for rh-java-common collection
fa5571
fa5571
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.7
fa5571
- Mass rebuild 2014-05-26
fa5571
fa5571
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.6
fa5571
- Mass rebuild 2014-02-19
fa5571
fa5571
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.5
fa5571
- Mass rebuild 2014-02-18
fa5571
fa5571
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.4
fa5571
- SCL-ize R on commons-httpclient
fa5571
fa5571
* Mon Feb 17 2014 Michal Srb <msrb@redhat.com> - 1:3.1.3-8.3
fa5571
- SCL-ize BR/R
fa5571
fa5571
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.2
fa5571
- Rebuild to regenerate auto-requires
fa5571
fa5571
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-8.1
fa5571
- First maven30 software collection build
fa5571
fa5571
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:3.1.3-8
fa5571
- Mass rebuild 2013-12-27
fa5571
fa5571
* Mon Aug 19 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1:3.1.3-7
fa5571
- Migrate away from mvn-rpmbuild (#997460)
fa5571
fa5571
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:3.1.3-6
fa5571
- Rebuild to regenerate API documentation
fa5571
- Resolves: CVE-2013-1571
fa5571
fa5571
* Fri May 17 2013 Alexander Kurtakov <akurtako@redhat.com> 1:3.1.3-5
fa5571
- Remove javax.xml.bind from osgi imports - it's part of the JVM now.
fa5571
- Drop the ws-jaxme dependency for the same reason.
fa5571
fa5571
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:3.1.3-4
fa5571
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fa5571
fa5571
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1:3.1.3-3
fa5571
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
fa5571
- Replace maven BuildRequires with maven-local
fa5571
fa5571
* Sat Oct 20 2012 Peter Robinson <pbrobinson@fedoraproject.org>	3.1.3-2
fa5571
- xmlrpc v2 had an Epoch so we need one here. Add it back
fa5571
fa5571
* Fri Sep 14 2012 Alexander Kurtakov <akurtako@redhat.com> 3.1.3-1
fa5571
- First release of version 3.x package