auto-import xmlrpc-c-1.04-1 on branch devel from xmlrpc-c-1.04-1.src.rpm
This commit is contained in:
parent
70b452d510
commit
f74bc62196
@ -0,0 +1 @@
|
|||||||
|
xmlrpc-c-1.04.tgz
|
43
xmlrpc-c-1.04-libxml2.patch
Normal file
43
xmlrpc-c-1.04-libxml2.patch
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
--- xmlrpc-c-1.04/src/xmlrpc_libxml2.c.builderr 2005-12-12 10:05:46.000000000 +0100
|
||||||
|
+++ xmlrpc-c-1.04/src/xmlrpc_libxml2.c 2005-12-12 10:11:57.000000000 +0100
|
||||||
|
@@ -147,7 +147,7 @@
|
||||||
|
** documentation on each function works.
|
||||||
|
*/
|
||||||
|
|
||||||
|
-char *xml_element_name (xml_element *elem)
|
||||||
|
+char const *xml_element_name (xml_element const * const elem)
|
||||||
|
{
|
||||||
|
XMLRPC_ASSERT_ELEM_OK(elem);
|
||||||
|
return elem->_name;
|
||||||
|
@@ -167,13 +167,13 @@
|
||||||
|
return XMLRPC_TYPED_MEM_BLOCK_CONTENTS(char, &elem->_cdata);
|
||||||
|
}
|
||||||
|
|
||||||
|
-size_t xml_element_children_size (xml_element *elem)
|
||||||
|
+size_t xml_element_children_size (xml_element const *elem)
|
||||||
|
{
|
||||||
|
XMLRPC_ASSERT_ELEM_OK(elem);
|
||||||
|
return XMLRPC_TYPED_MEM_BLOCK_SIZE(xml_element*, &elem->_children);
|
||||||
|
}
|
||||||
|
|
||||||
|
-xml_element **xml_element_children (xml_element *elem)
|
||||||
|
+xml_element **xml_element_children (xml_element const *elem)
|
||||||
|
{
|
||||||
|
XMLRPC_ASSERT_ELEM_OK(elem);
|
||||||
|
return XMLRPC_TYPED_MEM_BLOCK_CONTENTS(xml_element*, &elem->_children);
|
||||||
|
@@ -410,13 +410,13 @@
|
||||||
|
XMLRPC_ASSERT(context.root != NULL);
|
||||||
|
XMLRPC_ASSERT(context.current == NULL);
|
||||||
|
|
||||||
|
- *resultP = context.root;
|
||||||
|
+ *resultPP = context.root;
|
||||||
|
|
||||||
|
cleanup:
|
||||||
|
if (parser)
|
||||||
|
xmlFreeParserCtxt(parser);
|
||||||
|
|
||||||
|
- if (env->fault_occurred) {
|
||||||
|
+ if (envP->fault_occurred) {
|
||||||
|
if (context.root)
|
||||||
|
xml_element_free(context.root);
|
||||||
|
}
|
22
xmlrpc-c-1.04-namespace.patch
Normal file
22
xmlrpc-c-1.04-namespace.patch
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
--- xmlrpc-c-1.04/src/cpp/libwww.cpp.namespace 2005-11-10 03:24:26.000000000 +0100
|
||||||
|
+++ xmlrpc-c-1.04/src/cpp/libwww.cpp 2005-12-15 21:03:48.000000000 +0100
|
||||||
|
@@ -32,7 +32,7 @@
|
||||||
|
using namespace xmlrpc_c;
|
||||||
|
|
||||||
|
|
||||||
|
-namespace {
|
||||||
|
+namespace xmlrpc_c {
|
||||||
|
|
||||||
|
carriageParm_libwww0::carriageParm_libwww0(
|
||||||
|
string const serverUrl
|
||||||
|
--- xmlrpc-c-1.04/src/cpp/wininet.cpp.namespace 2005-11-10 03:24:26.000000000 +0100
|
||||||
|
+++ xmlrpc-c-1.04/src/cpp/wininet.cpp 2005-12-15 21:04:01.000000000 +0100
|
||||||
|
@@ -32,7 +32,7 @@
|
||||||
|
using namespace xmlrpc_c;
|
||||||
|
|
||||||
|
|
||||||
|
-namespace {
|
||||||
|
+namespace xmlrpc_c {
|
||||||
|
|
||||||
|
carriageParm_wininet0::carriageParm_wininet0(
|
||||||
|
string const serverUrl
|
143
xmlrpc-c.spec
Normal file
143
xmlrpc-c.spec
Normal file
@ -0,0 +1,143 @@
|
|||||||
|
%global _includedir %_includedir/%name
|
||||||
|
|
||||||
|
%{!?release_func:%global release_func() %1%{?dist}}
|
||||||
|
|
||||||
|
Summary: A lightweight RPC library based on XML and HTTP
|
||||||
|
Name: xmlrpc-c
|
||||||
|
Version: 1.04
|
||||||
|
Release: %release_func 1
|
||||||
|
License: BSD/PSF -- see COPYING
|
||||||
|
Group: System Environment/Libraries
|
||||||
|
URL: http://xmlrpc-c.sourceforge.net/
|
||||||
|
Source0: http://dl.sourceforge.net/sourceforge/xmlrpc-c/%name-%version.tgz
|
||||||
|
Patch0: xmlrpc-c-1.04-libxml2.patch
|
||||||
|
Patch1: xmlrpc-c-1.04-namespace.patch
|
||||||
|
BuildRoot: %_tmppath/%name-%version-%release-root
|
||||||
|
#BuildRequires: w3c-libwww-devel
|
||||||
|
BuildRequires: curl-devel libxml2-devel
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Development files for xmlrpc-c based programs
|
||||||
|
Group: Development/Libraries
|
||||||
|
Requires: %name = %version-%release
|
||||||
|
Requires: libxml2-devel curl-devel
|
||||||
|
|
||||||
|
%package apps
|
||||||
|
Summary: Sample XML-RPC applications
|
||||||
|
Group: Applications/Internet
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
XML-RPC is a quick-and-easy way to make procedure calls over the
|
||||||
|
Internet. It converts the procedure call into XML document, sends it
|
||||||
|
to a remote server using HTTP, and gets back the response as XML.
|
||||||
|
|
||||||
|
This library provides a modular implementation of XML-RPC for C and
|
||||||
|
C++.
|
||||||
|
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
Static libraries and header files for writing XML-RPC applications in
|
||||||
|
C and C++.
|
||||||
|
|
||||||
|
|
||||||
|
%description apps
|
||||||
|
XML-RPC is a quick-and-easy way to make procedure calls over the
|
||||||
|
Internet. It converts the procedure call into XML document, sends it
|
||||||
|
to a remote server using HTTP, and gets back the response as XML.
|
||||||
|
|
||||||
|
This package contains some handy XML-RPC demo applications.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%patch0 -p1 -b .libxml2
|
||||||
|
%patch1 -p1 -b .namespace
|
||||||
|
|
||||||
|
## workaround bugs in the buildsystem
|
||||||
|
rm -f src/cpp/srcdir transport_config.h
|
||||||
|
|
||||||
|
## not needed...
|
||||||
|
rm doc/{INSTALL,configure_doc}
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --enable-libxml2-backend --disable-libwww-client
|
||||||
|
|
||||||
|
sed -i -e 's!-L/usr/%_lib\s\s*!!g;
|
||||||
|
s!-L/usr/%_lib"!"!g;
|
||||||
|
s!\(the_\S*rpath=\)\"..*\"!\1!g' xmlrpc-c-config
|
||||||
|
|
||||||
|
%__make \
|
||||||
|
CFLAGS_COMMON="-DNDEBUG -fno-common $RPM_OPT_FLAGS" \
|
||||||
|
CXXFLAGS_COMMON="-DNDEBUG $RPM_OPT_FLAGS" \
|
||||||
|
#%{?_smp_mflags}
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
%__make DESTDIR="$RPM_BUILD_ROOT" install
|
||||||
|
|
||||||
|
%__install -d -m0755 $RPM_BUILD_ROOT%_mandir/man1
|
||||||
|
|
||||||
|
F=tools/xml-rpc-api2cpp/xml-rpc-api2cpp
|
||||||
|
./libtool --mode=install %__install -p -m755 $F $RPM_BUILD_ROOT/%_bindir/
|
||||||
|
%__install -p -m0644 $F.1 $RPM_BUILD_ROOT%_mandir/man1/
|
||||||
|
|
||||||
|
for i in $RPM_BUILD_ROOT%_libdir/*.a; do
|
||||||
|
test ! -e "${i%%.a}.so" || rm -f $i
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -f $RPM_BUILD_ROOT%_libdir/*.la
|
||||||
|
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc doc/*
|
||||||
|
%_libdir/*.so.*
|
||||||
|
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%_bindir/xmlrpc-c-config
|
||||||
|
%_includedir
|
||||||
|
%_libdir/*.so
|
||||||
|
%_libdir/*.a
|
||||||
|
|
||||||
|
|
||||||
|
%files apps
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%doc tools/xmlrpc/xmlrpc.html
|
||||||
|
%doc tools/xmlrpc_transport/xmlrpc_transport.html
|
||||||
|
%_mandir/man1/*
|
||||||
|
%_bindir/xmlrpc
|
||||||
|
%_bindir/xmlrpc_transport
|
||||||
|
%_bindir/xml-rpc-api2cpp
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sun Dec 18 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.04-1
|
||||||
|
- added libxml2-devel and openssl-devel Requires: for the -devel
|
||||||
|
subpackage
|
||||||
|
- ship doc/* instead of doc
|
||||||
|
- initial Fedora Extras package (review 175840)
|
||||||
|
|
||||||
|
* Thu Dec 15 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.04-0.1
|
||||||
|
- disabled w3c-libwww because it does not exist anymore in FC5 and
|
||||||
|
seems to be unmaintained upstream
|
||||||
|
- added missing libxml2-devel
|
||||||
|
- cleaned up list of %%doc files
|
||||||
|
- fixed gcc4.1 build issues
|
||||||
|
- removed static libraries when there exists a corresponding dynamic one
|
||||||
|
|
||||||
|
|
||||||
|
* Tue Aug 2 2005 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.03.02-1
|
||||||
|
- Initial build.
|
Loading…
Reference in New Issue
Block a user