From fa5571e3b7c32af9d4cd56c48ecdafd441cb318e Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Apr 23 2015 08:19:35 +0000 Subject: import rh-java-common-xmlrpc-3.1.3-8.14.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..90c8acf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/apache-xmlrpc-3.1.3-src.tar.bz2 diff --git a/.rh-java-common-xmlrpc.metadata b/.rh-java-common-xmlrpc.metadata new file mode 100644 index 0000000..309f012 --- /dev/null +++ b/.rh-java-common-xmlrpc.metadata @@ -0,0 +1 @@ +43b99531366c6e1ce5275e13930bafc62aacd5ae SOURCES/apache-xmlrpc-3.1.3-src.tar.bz2 diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SOURCES/xmlrpc-client-addosgimanifest.patch b/SOURCES/xmlrpc-client-addosgimanifest.patch new file mode 100644 index 0000000..1b39a19 --- /dev/null +++ b/SOURCES/xmlrpc-client-addosgimanifest.patch @@ -0,0 +1,20 @@ +--- pom.xml.sav 2010-02-06 17:44:57.000000000 +0200 ++++ pom.xml 2010-09-29 09:27:06.194857352 +0300 +@@ -48,6 +48,17 @@ + org.apache + Apache Software Foundation + ${project.version} ++ 2 ++ %Bundle-Name ++ plugin ++ org.apache.xmlrpc ++ ${project.version} ++ org.apache.xmlrpc.common ++ org.apache.xmlrpc.client, org.apache.xmlrpc.client.util ++ javax.xml.namespace, javax.xml.parsers, org.apache.commons.httpclient, org.apache.commons.httpclient.auth, org.apache.commons.httpclient.methods, org.apache.commons.httpclient.params, org.apache.commons.logging, org.apache.ws.commons.serialize, org.apache.ws.commons.util, org.w3c.dom, org.xml.sax, org.xml.sax.helpers ++ J2SE-1.4, CDC-1.0/Foundation-1.0, J2SE-1.3 ++ dependent ++ %Bundle-Vendor.0 + + + diff --git a/SOURCES/xmlrpc-common-addosgimanifest.patch b/SOURCES/xmlrpc-common-addosgimanifest.patch new file mode 100644 index 0000000..4d4aeca --- /dev/null +++ b/SOURCES/xmlrpc-common-addosgimanifest.patch @@ -0,0 +1,19 @@ +--- pom.xml.sav 2010-02-06 17:44:50.000000000 +0200 ++++ pom.xml 2010-09-29 09:30:38.857857644 +0300 +@@ -48,6 +48,16 @@ + org.apache + Apache Software Foundation + ${project.version} ++ 2 ++ %Bundle-Name ++ plugin ++ org.apache.xmlrpc.common ++ ${project.version} ++ org.apache.xmlrpc, org.apache.xmlrpc.common, org.apache.xmlrpc.jaxb, org.apache.xmlrpc.parser, org.apache.xmlrpc.serializer, org.apache.xmlrpc.util ++ javax.xml.namespace, javax.xml.parsers, org.apache.commons.httpclient, org.apache.commons.httpclient.auth, org.apache.commons.httpclient.methods, org.apache.commons.httpclient.params, org.apache.commons.logging, org.apache.ws.commons.serialize, org.apache.ws.commons.util, org.w3c.dom, org.xml.sax, org.xml.sax.helpers ++ J2SE-1.4, CDC-1.0/Foundation-1.0, J2SE-1.3 ++ dependent ++ %Bundle-Vendor.0 + + + diff --git a/SOURCES/xmlrpc-javax-methods.patch b/SOURCES/xmlrpc-javax-methods.patch new file mode 100644 index 0000000..2a99d9f --- /dev/null +++ b/SOURCES/xmlrpc-javax-methods.patch @@ -0,0 +1,128 @@ +diff -up ./server/src/main/java/org/apache/xmlrpc/webserver/HttpServletRequestImpl.java.fix ./server/src/main/java/org/apache/xmlrpc/webserver/HttpServletRequestImpl.java +--- ./server/src/main/java/org/apache/xmlrpc/webserver/HttpServletRequestImpl.java.fix 2012-07-24 14:49:54.000000000 -0400 ++++ ./server/src/main/java/org/apache/xmlrpc/webserver/HttpServletRequestImpl.java 2012-07-24 18:20:17.000000000 -0400 +@@ -31,6 +31,7 @@ import java.net.URLDecoder; + import java.security.Principal; + import java.util.ArrayList; + import java.util.Collections; ++import java.util.Collection; + import java.util.Enumeration; + import java.util.HashMap; + import java.util.Iterator; +@@ -41,8 +42,15 @@ import java.util.StringTokenizer; + + import javax.servlet.RequestDispatcher; + import javax.servlet.ServletInputStream; ++import javax.servlet.DispatcherType; ++import javax.servlet.AsyncContext; ++import javax.servlet.ServletContext; ++import javax.servlet.ServletRequest; ++import javax.servlet.ServletResponse; + import javax.servlet.http.Cookie; ++import javax.servlet.http.Part; + import javax.servlet.http.HttpServletRequest; ++import javax.servlet.http.HttpServletResponse; + import javax.servlet.http.HttpSession; + + import org.apache.xmlrpc.common.XmlRpcStreamConfig; +@@ -66,6 +74,7 @@ public class HttpServletRequestImpl impl + private String queryString; + private String httpVersion; + private final Map headers = new HashMap(); ++ private final Map parts = new HashMap(); + private final Map attributes = new HashMap(); + private Map parameters; + private String characterEncoding; +@@ -227,6 +236,12 @@ public class HttpServletRequestImpl impl + return Collections.enumeration(list); + } + ++ public Part getPart(String name) { throw new IllegalStateException("Not implemented"); } ++ ++ public Collection getParts() { throw new IllegalStateException("Not implemented"); } ++ ++ public boolean authenticate (HttpServletResponse response) { throw new IllegalStateException("Not implemented"); } ++ + public int getIntHeader(String pHeader) { + String s = getHeader(pHeader); + return s == null ? -1 : Integer.parseInt(s); +@@ -242,6 +257,10 @@ public class HttpServletRequestImpl impl + + public String getRemoteUser() { throw new IllegalStateException("Not implemented"); } + ++ public void login(String username, String password) { throw new IllegalStateException("Not implemented"); } ++ ++ public void logout() { throw new IllegalStateException("Not implemented"); } ++ + public String getRequestURI() { return uri; } + + public StringBuffer getRequestURL() { +@@ -280,6 +299,20 @@ public class HttpServletRequestImpl impl + return sb; + } + ++ public AsyncContext getAsyncContext() { throw new IllegalStateException("Not implemented"); } ++ ++ public boolean isAsyncSupported() { return false; } ++ ++ public boolean isAsyncStarted() { return false; } ++ ++ public ServletContext getServletContext() { throw new IllegalStateException("Not implemented"); } ++ ++ public AsyncContext startAsync(ServletRequest req, ServletResponse resp) { throw new IllegalStateException("Not implemented"); } ++ ++ public AsyncContext startAsync() { throw new IllegalStateException("Not implemented"); } ++ ++ public DispatcherType getDispatcherType() { throw new IllegalStateException("Not implemented"); } ++ + public String getRequestedSessionId() { throw new IllegalStateException("Not implemented"); } + + public String getServletPath() { return uri; } +diff -up ./server/src/main/java/org/apache/xmlrpc/webserver/HttpServletResponseImpl.java.fix ./server/src/main/java/org/apache/xmlrpc/webserver/HttpServletResponseImpl.java +--- ./server/src/main/java/org/apache/xmlrpc/webserver/HttpServletResponseImpl.java.fix 2012-07-24 14:49:46.000000000 -0400 ++++ ./server/src/main/java/org/apache/xmlrpc/webserver/HttpServletResponseImpl.java 2012-07-24 15:22:31.000000000 -0400 +@@ -29,6 +29,8 @@ import java.util.Iterator; + import java.util.List; + import java.util.Locale; + import java.util.Map; ++import java.util.Collection; ++import java.util.Collections; + import java.util.StringTokenizer; + + import javax.servlet.ServletOutputStream; +@@ -84,7 +86,7 @@ public class HttpServletResponseImpl imp + } + } + +- private String getHeader(String pHeader) { ++ public String getHeader(String pHeader) { + String key = pHeader.toLowerCase(); + Object o = headers.get(key); + if (o == null) { +@@ -101,6 +103,26 @@ public class HttpServletResponseImpl imp + } + } + ++ public Collection getHeaderNames() { ++ return headers.keySet(); ++ } ++ ++ public Collection getHeaders(String pHeader) { ++ String key = pHeader.toLowerCase(); ++ Object o = headers.get(key); ++ List list; ++ if (o instanceof List) { ++ list = (List) o; ++ } else { ++ list = Collections.singletonList(o); ++ } ++ return list; ++ } ++ ++ public int getStatus() { ++ return status; ++ } ++ + public void addIntHeader(String pHeader, int pValue) { + addHeader(pHeader, Integer.toString(pValue)); + } diff --git a/SPECS/xmlrpc.spec b/SPECS/xmlrpc.spec new file mode 100644 index 0000000..bc113f4 --- /dev/null +++ b/SPECS/xmlrpc.spec @@ -0,0 +1,188 @@ +%global pkg_name xmlrpc +%{?scl:%scl_package %{pkg_name}} +%{?java_common_find_provides_and_requires} + +Name: %{?scl_prefix}%{pkg_name} +Version: 3.1.3 +Release: 8.14%{?dist} +Epoch: 1 +Summary: Java XML-RPC implementation +License: ASL 2.0 +URL: http://ws.apache.org/xmlrpc/ +Source0: http://www.apache.org/dist/ws/xmlrpc/sources/apache-xmlrpc-%{version}-src.tar.bz2 +# Add OSGi MANIFEST information +Patch0: %{pkg_name}-client-addosgimanifest.patch +Patch1: %{pkg_name}-common-addosgimanifest.patch +Patch2: %{pkg_name}-javax-methods.patch + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix_maven}maven-resources-plugin +BuildRequires: %{?scl_prefix_maven}maven-assembly-plugin +BuildRequires: %{?scl_prefix_maven}maven-source-plugin +BuildRequires: %{?scl_prefix_maven}maven-site-plugin +BuildRequires: %{?scl_prefix}ws-commons-util +BuildRequires: %{?scl_prefix}javapackages-tools +BuildRequires: %{?scl_prefix}tomcat-servlet-3.0-api +BuildRequires: %{?scl_prefix}junit +BuildRequires: %{?scl_prefix}jakarta-commons-httpclient +BuildRequires: %{?scl_prefix}apache-commons-logging + +BuildArch: noarch + +%description +Apache XML-RPC is a Java implementation of XML-RPC, a popular protocol +that uses XML over HTTP to implement remote procedure calls. +Apache XML-RPC was previously known as Helma XML-RPC. If you have code +using the Helma library, all you should have to do is change the import +statements in your code from helma.xmlrpc.* to org.apache.xmlrpc.*. + +%package javadoc +Summary: Javadoc for %{pkg_name} + +%description javadoc +Javadoc for %{pkg_name}. + +%package common +Summary: Common classes for XML-RPC client and server implementations +# Provide xmlrpc is not here because it would be useless due to different jar names +# in OSGI manifest +Requires: %{?scl_prefix}apache-commons-logging + +%description common +%{summary}. + +%package client +Summary: XML-RPC client implementation +# in OSGI manifest +Requires: %{?scl_prefix}jakarta-commons-httpclient + +%description client +%{summary}. + +%package server +Summary: XML-RPC server implementation + +%description server +%{summary}. + +%prep +%setup -q -n apache-%{pkg_name}-%{version}-src +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%patch2 -b .sav +pushd client +%patch0 -b .sav +popd +pushd common +%patch1 -b .sav +popd + +sed -i 's/\r//' LICENSE.txt + +%pom_remove_dep jaxme:jaxmeapi + +%pom_disable_module dist + +%mvn_package :xmlrpc common +%mvn_package :xmlrpc-{common} @1 +%mvn_package :xmlrpc-{client} @1 +%mvn_package :xmlrpc-{server} @1 + +%mvn_file :xmlrpc-{common} %{pkg_name}-@1 %{pkg_name}3-@1 +%mvn_file :xmlrpc-{client} %{pkg_name}-@1 %{pkg_name}3-@1 +%mvn_file :xmlrpc-{server} %{pkg_name}-@1 %{pkg_name}3-@1 +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +# ignore test failure because server part needs network +%mvn_build -f +%{?scl:EOF} + +%install +%{?scl:scl enable %{scl_maven} %{scl} - <<"EOF"} +set -e -x +%mvn_install +%{?scl:EOF} + +%files common -f .mfiles-common +%dir %{_mavenpomdir}/%{pkg_name} +%doc LICENSE.txt NOTICE.txt + +%files client -f .mfiles-client +%files server -f .mfiles-server + +%files javadoc -f .mfiles-javadoc +%doc LICENSE.txt NOTICE.txt + + +%changelog +* Wed Jan 14 2015 Michal Srb - 1:3.1.3-8.14 +- Fix directory ownership + +* Tue Jan 13 2015 Michael Simacek - 1:3.1.3-8.13 +- Mass rebuild 2015-01-13 + +* Mon Jan 12 2015 Michael Simacek - 1:3.1.3-8.12 +- Rebuild to regenerate requires + +* Fri Jan 09 2015 Michal Srb - 1:3.1.3-8.11 +- Mass rebuild 2015-01-09 + +* Tue Dec 16 2014 Mikolaj Izdebski - 1:3.1.3-8.10 +- Migrate requires and build-requires to rh-java-common + +* Mon Dec 15 2014 Mikolaj Izdebski - 1:3.1.3-8.9 +- Mass rebuild 2014-12-15 + +* Mon Dec 15 2014 Mikolaj Izdebski - 1:3.1.3-8.8 +- Rebuild for rh-java-common collection + +* Mon May 26 2014 Mikolaj Izdebski - 1:3.1.3-8.7 +- Mass rebuild 2014-05-26 + +* Wed Feb 19 2014 Mikolaj Izdebski - 1:3.1.3-8.6 +- Mass rebuild 2014-02-19 + +* Tue Feb 18 2014 Mikolaj Izdebski - 1:3.1.3-8.5 +- Mass rebuild 2014-02-18 + +* Mon Feb 17 2014 Mikolaj Izdebski - 1:3.1.3-8.4 +- SCL-ize R on commons-httpclient + +* Mon Feb 17 2014 Michal Srb - 1:3.1.3-8.3 +- SCL-ize BR/R + +* Thu Feb 13 2014 Mikolaj Izdebski - 1:3.1.3-8.2 +- Rebuild to regenerate auto-requires + +* Tue Feb 11 2014 Mikolaj Izdebski - 1:3.1.3-8.1 +- First maven30 software collection build + +* Fri Dec 27 2013 Daniel Mach - 1:3.1.3-8 +- Mass rebuild 2013-12-27 + +* Mon Aug 19 2013 Stanislav Ochotnicky - 1:3.1.3-7 +- Migrate away from mvn-rpmbuild (#997460) + +* Fri Jun 28 2013 Mikolaj Izdebski - 1:3.1.3-6 +- Rebuild to regenerate API documentation +- Resolves: CVE-2013-1571 + +* Fri May 17 2013 Alexander Kurtakov 1:3.1.3-5 +- Remove javax.xml.bind from osgi imports - it's part of the JVM now. +- Drop the ws-jaxme dependency for the same reason. + +* Fri Feb 15 2013 Fedora Release Engineering - 1:3.1.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 1:3.1.3-3 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Sat Oct 20 2012 Peter Robinson 3.1.3-2 +- xmlrpc v2 had an Epoch so we need one here. Add it back + +* Fri Sep 14 2012 Alexander Kurtakov 3.1.3-1 +- First release of version 3.x package