File xmlrpc-c.spec of Package xmlrpc-c

Summary: A lightweight RPC library based on XML and HTTP
Name: xmlrpc-c
Version: 1.16.38
Release: 1
License: GPL
Group: Development/Libraries/Other
Url: http://xmlrpc-c.sourceforge.net/
Requires:	curl
BuildRequires:	gcc-c++
BuildRequires:	curl-devel
Source0: xmlrpc-c-1.16.38.tar.bz2

%description
XML-RPC is a quick-and-easy way to make procedure calls over the Internet. It converts the procedure call into an 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++.
The library also provides limited facilities for the common variation on XML-RPC that uses HTTPS (SSL encryption).
The library also provides a variation on XML-RPC that works better in some cases (but is not standard): packet stream XML-RPC.
XML-RPC For C and C++ is designed for Unix and is most tested on unix. As far as we know, it works on any reasonably standard unix.
There is also lots of code to make it work on Windows, but the fact is that it probably won't work out-of-the-box on your Windows system. Here is the Windows story.
[ Downloading | Example Code | Performance | Alternatives | XML-RPC protocol ]
There is a Perl module to interface to XML-RPC for C and C++. Look in CPAN for RPC::Xmlrpc_c.
For information on using XML-RPC with other languages, see the XML-RPC Web site and the Linux XML-RPC Howto.

%changelog
* Thu Nov 21 2011 - Package created
- creating package

%package devel
Requires: xmlrpc-c = 1.16.38
Summary: A lightweight RPC library based on XML and HTTP. Development files
Group: Development/Libraries/Other

%description devel
XML-RPC is a quick-and-easy way to make procedure calls over the Internet. It converts the procedure call into an 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++.
The library also provides limited facilities for the common variation on XML-RPC that uses HTTPS (SSL encryption).
The library also provides a variation on XML-RPC that works better in some cases (but is not standard): packet stream XML-RPC.
XML-RPC For C and C++ is designed for Unix and is most tested on unix. As far as we know, it works on any reasonably standard unix.
There is also lots of code to make it work on Windows, but the fact is that it probably won't work out-of-the-box on your Windows system. Here is the Windows story.
[ Downloading | Example Code | Performance | Alternatives | XML-RPC protocol ]
There is a Perl module to interface to XML-RPC for C and C++. Look in CPAN for RPC::Xmlrpc_c.
For information on using XML-RPC with other languages, see the XML-RPC Web site and the Linux XML-RPC Howto.


%changelog devel
* Thu Nov 21 2011 - Package created
- creating package

%prep
%setup -q -a 0

%build
%configure 
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
mv $RPM_BUILD_ROOT/usr/lib $RPM_BUILD_ROOT/usr/lib1
mv $RPM_BUILD_ROOT/usr/lib1 $RPM_BUILD_ROOT%{_libdir}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%{_libdir}/libxmlrpc++.so.4
%{_libdir}/libxmlrpc++.so.4.16
%{_libdir}/libxmlrpc.so.3
%{_libdir}/libxmlrpc.so.3.16
%{_libdir}/libxmlrpc_abyss.so.3
%{_libdir}/libxmlrpc_abyss.so.3.16
%{_libdir}/libxmlrpc_cpp.so.4
%{_libdir}/libxmlrpc_cpp.so.4.16
%{_libdir}/libxmlrpc_packetsocket.so.4
%{_libdir}/libxmlrpc_packetsocket.so.4.16
%{_libdir}/libxmlrpc_server++.so.4
%{_libdir}/libxmlrpc_server++.so.4.16
%{_libdir}/libxmlrpc_server.so.3
%{_libdir}/libxmlrpc_server.so.3.16
%{_libdir}/libxmlrpc_server_abyss++.so.4
%{_libdir}/libxmlrpc_server_abyss++.so.4.16
%{_libdir}/libxmlrpc_server_abyss.so.3
%{_libdir}/libxmlrpc_server_abyss.so.3.16
%{_libdir}/libxmlrpc_server_cgi++.so.4
%{_libdir}/libxmlrpc_server_cgi++.so.4.16
%{_libdir}/libxmlrpc_server_cgi.so.3
%{_libdir}/libxmlrpc_server_cgi.so.3.16
%{_libdir}/libxmlrpc_server_pstream++.so.4
%{_libdir}/libxmlrpc_server_pstream++.so.4.16
%{_libdir}/libxmlrpc_util.so.3
%{_libdir}/libxmlrpc_util.so.3.16
%{_libdir}/libxmlrpc_xmlparse.so.3
%{_libdir}/libxmlrpc_xmlparse.so.3.16
%{_libdir}/libxmlrpc_xmltok.so.3
%{_libdir}/libxmlrpc_xmltok.so.3.16
%{_libdir}/libxmlrpc_client++.so.4
%{_libdir}/libxmlrpc_client++.so.4.16
%{_libdir}/libxmlrpc_client.so.3
%{_libdir}/libxmlrpc_client.so.3.16
   
%files devel
%defattr(-,root,root)
%{_libdir}/libxmlrpc++.so
%{_libdir}/libxmlrpc.so
%{_libdir}/libxmlrpc_cpp.so
%{_libdir}/libxmlrpc_abyss.so
%{_libdir}/libxmlrpc_packetsocket.so
%{_libdir}/libxmlrpc_server++.so
%{_libdir}/libxmlrpc_server.so
%{_libdir}/libxmlrpc_server_abyss++.so
%{_libdir}/libxmlrpc_server_abyss.so
%{_libdir}/libxmlrpc_server_cgi++.so
%{_libdir}/libxmlrpc_server_cgi.so
%{_libdir}/libxmlrpc_server_pstream++.so
%{_libdir}/libxmlrpc_util.so
%{_libdir}/libxmlrpc_xmlparse.so
%{_libdir}/libxmlrpc_xmltok.so
%{_libdir}/libxmlrpc_client++.so
%{_libdir}/libxmlrpc_client.so
%{_libdir}/libxmlrpc++.a
%{_libdir}/libxmlrpc.a
%{_libdir}/libxmlrpc_cpp.a
%{_libdir}/libxmlrpc_abyss.a
%{_libdir}/libxmlrpc_packetsocket.a
%{_libdir}/libxmlrpc_server++.a
%{_libdir}/libxmlrpc_server.a
%{_libdir}/libxmlrpc_server_abyss++.a
%{_libdir}/libxmlrpc_server_abyss.a
%{_libdir}/libxmlrpc_server_cgi++.a
%{_libdir}/libxmlrpc_server_cgi.a
%{_libdir}/libxmlrpc_server_pstream++.a
%{_libdir}/libxmlrpc_util.a
%{_libdir}/libxmlrpc_xmlparse.a
%{_libdir}/libxmlrpc_xmltok.a
%{_libdir}/libxmlrpc_client++.a
%{_libdir}/libxmlrpc_client.a
%{_bindir}/xmlrpc-c-config
/usr/include/XmlRpcCpp.h
/usr/include/xmlrpc_client.h
/usr/include/xmlrpc-c
/usr/include/xmlrpc.h
/usr/include/xmlrpc_abyss.h
/usr/include/xmlrpc_cgi.h
/usr/include/xmlrpc_server.h
/usr/include/xmlrpc_server_w32httpsys.h