[xmlrpc-epi] Initial import (#1121358)
Shawn Starr
spstarr at fedoraproject.org
Fri Dec 12 00:11:53 UTC 2014
commit 8c4e93c33e298f8a91ddc74e2cc69ede74962065
Author: Shawn Starr <shawn.starr at rogers.com>
Date: Thu Dec 11 19:12:04 2014 -0500
Initial import (#1121358)
.gitignore | 1 +
0000-fix-printf-formatting-security.patch | 75 +++++++++++++++++++++++++++++
sources | 1 +
xmlrpc-epi.spec | 69 ++++++++++++++++++++++++++
4 files changed, 146 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 9d860c4..b181f20 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
xmlrpc-epi-0.54.1.tar.gz
+/xmlrpc-epi-0.54.2.tar.bz2
diff --git a/0000-fix-printf-formatting-security.patch b/0000-fix-printf-formatting-security.patch
new file mode 100644
index 0000000..4fba1b9
--- /dev/null
+++ b/0000-fix-printf-formatting-security.patch
@@ -0,0 +1,75 @@
+--- xmlrpc-epi-0.54.2/sample/client.c.format 2011-04-09 16:27:29.000000000 -0400
++++ xmlrpc-epi-0.54.2/sample/client.c 2014-07-19 14:59:57.644743219 -0400
+@@ -177,7 +177,7 @@ int main(int argc, char **argv)
+ char *outBuf = XMLRPC_REQUEST_ToXML(request, 0);
+
+ if(outBuf) {
+- printf(outBuf);
++ printf("%s", outBuf);
+ free(outBuf);
+ }
+ }
+--- xmlrpc-epi-0.54.2/sample/hello_client.c.format 2011-04-09 16:27:29.000000000 -0400
++++ xmlrpc-epi-0.54.2/sample/hello_client.c 2014-07-19 15:01:14.949072555 -0400
+@@ -43,7 +43,7 @@ int main(int argc, char **argv)
+ char *outBuf = XMLRPC_REQUEST_ToXML(request, 0);
+
+ if(outBuf) {
+- printf(outBuf);
++ printf("%s",outBuf);
+ free(outBuf);
+ }
+ }
+--- xmlrpc-epi-0.54.2/sample/hello_server.c.format 2011-04-09 16:27:29.000000000 -0400
++++ xmlrpc-epi-0.54.2/sample/hello_server.c 2014-07-19 15:01:45.284809373 -0400
+@@ -76,7 +76,7 @@ int main(int argc, char **argv)
+ char *outBuf = XMLRPC_REQUEST_ToXML(response, 0);
+
+ if(outBuf) {
+- printf(outBuf);
++ printf("%s", outBuf);
+ free(outBuf);
+ }
+ }
+--- xmlrpc-epi-0.54.2/sample/sample.c.format 2011-04-09 16:27:29.000000000 -0400
++++ xmlrpc-epi-0.54.2/sample/sample.c 2014-07-19 14:59:31.788967534 -0400
+@@ -450,7 +450,7 @@ int main(int argc, char **argv)
+ char *outBuf = XMLRPC_REQUEST_ToXML(request, 0);
+
+ if(outBuf) {
+- printf(outBuf);
++ printf("%s", outBuf);
+ free(outBuf);
+ }
+ }
+@@ -460,7 +460,7 @@ int main(int argc, char **argv)
+ char *outBuf = XMLRPC_REQUEST_ToXML(response, 0);
+
+ if(outBuf) {
+- printf(outBuf);
++ printf("%s", outBuf);
+ free(outBuf);
+ }
+ }
+--- xmlrpc-epi-0.54.2/sample/server.c.format 2011-04-09 16:27:29.000000000 -0400
++++ xmlrpc-epi-0.54.2/sample/server.c 2014-07-19 15:00:35.268416810 -0400
+@@ -374,7 +374,7 @@ int main(int argc, char **argv)
+ char *outBuf = XMLRPC_REQUEST_ToXML(response, 0);
+
+ if(outBuf) {
+- printf(outBuf);
++ printf("%s", outBuf);
+ free(outBuf);
+ }
+ }
+--- xmlrpc-epi-0.54.2/sample/server_compliance_test.c.format 2011-04-09 16:27:29.000000000 -0400
++++ xmlrpc-epi-0.54.2/sample/server_compliance_test.c 2014-07-19 15:00:58.637214071 -0400
+@@ -423,7 +423,7 @@ int main(int argc, char **argv)
+ char *outBuf = XMLRPC_REQUEST_ToXML(response, 0);
+
+ if(outBuf) {
+- printf(outBuf);
++ printf("%s", outBuf);
+ free(outBuf);
+ }
+ }
diff --git a/sources b/sources
new file mode 100644
index 0000000..9de05a0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+081e605491429cda17c5f021f211b8fd xmlrpc-epi-0.54.2.tar.bz2
diff --git a/xmlrpc-epi.spec b/xmlrpc-epi.spec
new file mode 100644
index 0000000..e0c3fd8
--- /dev/null
+++ b/xmlrpc-epi.spec
@@ -0,0 +1,69 @@
+Name: xmlrpc-epi
+Version: 0.54.2
+Release: 1%{?dist}
+Summary: An implementation of the XML-RPC protocol in C
+Group: System Environment/Libraries
+License: MIT
+URL: http://xmlrpc-epi.sourceforge.net/
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
+Patch0: 0000-fix-printf-formatting-security.patch
+BuildRequires: expat-devel
+
+%description
+An implementation of the XML-RPC protocol in C.
+
+%package devel
+Summary: Development files for xmlrpc-epi
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The xmlrpc-epi-devel package contains libraries and header files for
+developing applications that use xmlrpc-epi.
+
+%prep
+%setup -q
+
+%patch0 -p1 -b .fix-printf-formatting-security
+
+%build
+%configure --disable-static --includedir=%{_includedir}/xmlrpc-epi
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
+
+# Remove the sample test tools
+rm -r %{buildroot}%{_bindir}
+
+rm -f %{buildroot}%{_libdir}/*.la
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%doc AUTHORS COPYING NEWS README
+%{_libdir}/libxmlrpc-epi.so.0*
+
+%files devel
+%{_includedir}/xmlrpc-epi
+%{_libdir}/libxmlrpc-epi.so
+
+%changelog
+* Sat Jul 19 2014 Shawn Starr <shawn.starr at rogers.com> - 0.54.2-1
+- Un-orphan package, update to latest release, fix compile issues
+- Fix up spec from initial review
+
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.54.1-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Mon Feb 07 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.54.1-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Sat Feb 20 2010 Bryan O'Sullivan <bos at serpentine.com> 0.54.1-2
+- A few small changes requested during packaging review for bz 539388.
+
+* Thu Nov 19 2009 Bryan O'Sullivan <bos at serpentine.com> 0.54.1-1
+- Initial build of 0.54.1, based on Callum Lerwick's abandoned spec
+ file from a few years ago.
More information about the scm-commits
mailing list