Summary: XML-RPC C library - an implementation of the xmlrpc protocol Summary(pl.UTF-8): Biblioteka XML-RPC C - implementacja protokołu xmlrpc Name: xmlrpc-c Version: 1.39.13 Release: 1 License: XML-RPC for C License (BSD-like) Group: Libraries # for feature versions: # svn co http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced xmlrpc-c # Unfortunately, upstream does not tag versions so we must fetch from the branch # and check which version was used for it. # for "super stable" versions: Source0: https://downloads.sourceforge.net/xmlrpc-c/%{name}-%{version}.tgz # Source0-md5: 393d5450c74baffc94b36a2a0c838c3b Patch0: %{name}-fastdep.patch Patch1: %{name}-soname.patch Patch2: %{name}-cflags.patch Patch3: %{name}-format.patch # patches 10+ come from Fedora (cmake patch is updated from original version) Patch10: %{name}-cmake.patch Patch11: %{name}-printf-size_t.patch Patch12: %{name}-longlong.patch Patch13: %{name}-uninit-curl.patch Patch14: %{name}-30x-redirect.patch URL: http://xmlrpc-c.sourceforge.net/ BuildRequires: cmake >= 2.6 BuildRequires: curl-devel BuildRequires: libstdc++-devel BuildRequires: libxml2-devel >= 2.0 BuildRequires: ncurses-devel >= 5.7-21 BuildRequires: pkgconfig BuildRequires: readline-devel BuildRequires: rpmbuild(macros) >= 1.605 BuildRequires: tar >= 1:1.22 BuildRequires: w3c-libwww-devel >= 5.4.0-20 BuildRequires: xz BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %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. %description -l pl.UTF-8 XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez Internet. Przekształca wywołanie procedury na dokument XML, wysyła do zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML. Ta biblioteka udostepnia modularną implementacją XML-RPC dla języka C. %package devel Summary: C header files for xmlrpc-c base libraries Summary(pl.UTF-8): Pliki nagłówkowe C dla głównych bibliotek xmlrpc-c Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: curl-devel Requires: expat-devel Requires: libxml2-devel >= 2.0 Requires: w3c-libwww-devel %description devel C header files for xmlrpc-c base libraries. %description devel -l pl.UTF-8 Pliki nagłówkowe C dla głównych bibliotek xmlrpc-c. %package client Summary: C client library for xmlrpc-c Summary(pl.UTF-8): Biblioteka kliencka C xmlrpc-c Group: Libraries Requires: %{name} = %{version}-%{release} %description client 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 clients. %description client -l pl.UTF-8 XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez Internet. Przekształca wywołanie procedury na dokument XML, wysyła do zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML. Ta biblioteka udostepnia modularną implementacją XML-RPC dla klientów w języku C. %package client-devel Summary: C header files for xmlrpc-c client library Summary(pl.UTF-8): Pliki nagłówkowe C dla biblioteki klienckiej xmlrpc-c Group: Development/Libraries Requires: %{name}-client = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} %description client-devel C header files for xmlrpc-c client library. %description client-devel -l pl.UTF-8 Pliki nagłówkowe C dla biblioteki klienckiej xmlrpc-c. %package server Summary: C server libraries for xmlrpc-c Summary(pl.UTF-8): Biblioteki serwerowe C xmlrpc-c Group: Libraries Requires: %{name} = %{version}-%{release} %description server 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. These libraries provide a modular implementation of XML-RPC for C servers. %description server -l pl.UTF-8 XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez Internet. Przekształca wywołanie procedury na dokument XML, wysyła do zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML. Te biblioteki udostepniają modularną implementacją XML-RPC dla serwerów w języku C. %package server-devel Summary: C header files for xmlrpc-c server libraries Summary(pl.UTF-8): Pliki nagłówkowe C dla bibliotek serwerowych xmlrpc-c Group: Development/Libraries Requires: %{name}-server = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} %description server-devel C header files for xmlrpc-c server libraries. %description server-devel -l pl.UTF-8 Pliki nagłówkowe C dla bibliotek serwerowych xmlrpc-c. %package c++ Summary: C++ libraries for xmlrpc-c Summary(pl.UTF-8): Biblioteki C++ xmlrpc-c Group: Libraries Requires: %{name} = %{version}-%{release} %description c++ 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++. %description c++ -l pl.UTF-8 XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez Internet. Przekształca wywołanie procedury na dokument XML, wysyła do zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML. Ta biblioteka udostepnia modularną implementacją XML-RPC dla języka C++. %package c++-devel Summary: C++ header files for xmlrpc-c base libraries Summary(pl.UTF-8): Pliki nagłówkowe C++ głównych bibliotek xmlrpc-c Group: Development/Libraries Requires: %{name}-c++ = %{version}-%{release} Requires: %{name}-devel = %{version}-%{release} Requires: libstdc++-devel %description c++-devel C++ header files for xmlrpc-c base libraries. %description c++-devel -l pl.UTF-8 Pliki nagłówkowe C++ głównych bibliotek xmlrpc-c. %package client++ Summary: C++ client library for xmlrpc-c Summary(pl.UTF-8): Biblioteka kliencka C++ xmlrpc-c Group: Libraries Requires: %{name}-c++ = %{version}-%{release} Requires: %{name}-client = %{version}-%{release} %description client++ 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++ clients. %description client++ -l pl.UTF-8 XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez Internet. Przekształca wywołanie procedury na dokument XML, wysyła do zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML. Ta biblioteka udostepnia modularną implementacją XML-RPC dla klientów w języku C++. %package client++-devel Summary: C++ header files for xmlrpc-c client library Summary(pl.UTF-8): Pliki nagłówkowe C++ biblioteki klienckiej xmlrpc-c Group: Development/Libraries Requires: %{name}-c++-devel = %{version}-%{release} Requires: %{name}-client++ = %{version}-%{release} Requires: %{name}-client-devel = %{version}-%{release} %description client++-devel C++ header files for xmlrpc-c client library. %description client++-devel -l pl.UTF-8 Pliki nagłówkowe C++ biblioteki klienckiej xmlrpc-c. %package server++ Summary: C++ server libraries for xmlrpc-c Summary(pl.UTF-8): Biblioteki serwerowe C++ xmlrpc-c Group: Libraries Requires: %{name}-c++ = %{version}-%{release} Requires: %{name}-server = %{version}-%{release} %description server++ 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. These libraries provide a modular implementation of XML-RPC for C++ servers. %description server++ -l pl.UTF-8 XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez Internet. Przekształca wywołanie procedury na dokument XML, wysyła do zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML. Te biblioteki udostepniają modularną implementacją XML-RPC dla serwerów w języku C++. %package server++-devel Summary: C++ header files for xmlrpc-c server libraries Summary(pl.UTF-8): Pliki nagłówkowe C dla bibliotek serwerowych xmlrpc-c Group: Development/Libraries Requires: %{name}-c++-devel = %{version}-%{release} Requires: %{name}-server++ = %{version}-%{release} Requires: %{name}-server-devel = %{version}-%{release} %description server++-devel C++ header files for xmlrpc-c server libraries. %description server++-devel -l pl.UTF-8 Pliki nagłówkowe C++ dla bibliotek serwerowych xmlrpc-c. %package apps Summary: Sample XML-RPC applications Summary(pl.UTF-8): Przykładowe aplikacje XML-RPC Group: Applications/Networking Requires: %{name} = %{version}-%{release} Requires: %{name}-c++ = %{version}-%{release} Requires: %{name}-client = %{version}-%{release} Requires: %{name}-client++ = %{version}-%{release} %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. %description apps -l pl.UTF-8 XML-RPC to szybki i łatwy w użyciu sposób wywoływania procedur poprzez Internet. Przekształca wywołanie procedury na dokument XML, wysyła do zdalnego serwera poprzez HTTP i odbiera odpowiedź jako XML. Ten pakiet zawiera kilka podręcznych aplikacji demonstracyjnych XML-RPC. %prep %setup -q %patch0 -p1 %patch2 -p1 %patch10 -p1 %patch11 -p1 %patch12 -p1 %patch13 -p1 %patch14 -p1 %patch1 -p1 %patch3 -p1 %build mkdir -p build cd build %cmake .. \ -D_lib:STRING=%{_lib} \ -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \ -DMUST_BUILD_CURL_CLIENT:BOOL=ON \ -DMUST_BUILD_LIBWWW_CLIENT:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=ON \ -DENABLE_TOOLS:BOOL=ON %{__make} %install rm -rf $RPM_BUILD_ROOT %{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT \ chmod +x $RPM_BUILD_ROOT%{_libdir}/*.so* # Win32-specific %{__rm} $RPM_BUILD_ROOT%{_includedir}/xmlrpc_server_w32httpsys.h \ $RPM_BUILD_ROOT%{_includedir}/xmlrpc-c/server_w32httpsys.h %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post client -p /sbin/ldconfig %postun client -p /sbin/ldconfig %post server -p /sbin/ldconfig %postun server -p /sbin/ldconfig %post c++ -p /sbin/ldconfig %postun c++ -p /sbin/ldconfig %post client++ -p /sbin/ldconfig %postun client++ -p /sbin/ldconfig %post server++ -p /sbin/ldconfig %postun server++ -p /sbin/ldconfig %files %defattr(644,root,root,755) %doc README doc/{COPYING,CREDITS,HISTORY,SECURITY,TODO} %attr(755,root,root) %{_libdir}/libxmlrpc-c.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc-c.so.3 %attr(755,root,root) %{_libdir}/libxmlrpc_abyss.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_abyss.so.3 %attr(755,root,root) %{_libdir}/libxmlrpc_util.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_util.so.3 %files devel %defattr(644,root,root,755) %doc doc/{DEVELOPING,TESTING} %attr(755,root,root) %{_bindir}/xmlrpc-c-config %attr(755,root,root) %{_libdir}/libxmlrpc-c.so %attr(755,root,root) %{_libdir}/libxmlrpc_abyss.so %attr(755,root,root) %{_libdir}/libxmlrpc_util.so %dir %{_includedir}/xmlrpc-c %{_includedir}/xmlrpc-c/abyss*.h %{_includedir}/xmlrpc-c/base.h %{_includedir}/xmlrpc-c/c_util.h %{_includedir}/xmlrpc-c/config.h %{_includedir}/xmlrpc-c/inttypes.h %{_includedir}/xmlrpc-c/json.h %{_includedir}/xmlrpc-c/oldxmlrpc.h %{_includedir}/xmlrpc-c/transport.h %{_includedir}/xmlrpc-c/util.h %{_includedir}/xmlrpc.h %{_pkgconfigdir}/xmlrpc.pc %{_pkgconfigdir}/xmlrpc_abyss.pc %{_pkgconfigdir}/xmlrpc_util.pc %files client %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc_client.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_client.so.3 %files client-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc_client.so %{_includedir}/xmlrpc-c/client*.h %{_includedir}/xmlrpc_client.h %{_pkgconfigdir}/xmlrpc_client.pc %files server %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc_server.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server.so.3 %attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_abyss.so.3 %attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_cgi.so.3 %files server-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc_server.so %attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss.so %attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi.so %{_includedir}/xmlrpc-c/server.h %{_includedir}/xmlrpc-c/server_abyss.h %{_includedir}/xmlrpc-c/server_cgi.h %{_includedir}/xmlrpc_abyss.h %{_includedir}/xmlrpc_cgi.h %{_includedir}/xmlrpc_server.h %{_pkgconfigdir}/xmlrpc_server.pc %{_pkgconfigdir}/xmlrpc_server_abyss.pc %{_pkgconfigdir}/xmlrpc_server_cgi.pc %files c++ %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc++.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc++.so.8 %attr(755,root,root) %{_libdir}/libxmlrpc_abyss++.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_abyss++.so.8 %attr(755,root,root) %{_libdir}/libxmlrpc_cpp.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_cpp.so.8 %attr(755,root,root) %{_libdir}/libxmlrpc_packetsocket.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_packetsocket.so.8 %attr(755,root,root) %{_libdir}/libxmlrpc_util++.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_util++.so.8 %files c++-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc++.so %attr(755,root,root) %{_libdir}/libxmlrpc_abyss++.so %attr(755,root,root) %{_libdir}/libxmlrpc_cpp.so %attr(755,root,root) %{_libdir}/libxmlrpc_packetsocket.so %attr(755,root,root) %{_libdir}/libxmlrpc_util++.so %{_includedir}/xmlrpc-c/base.hpp %{_includedir}/xmlrpc-c/base64.hpp %{_includedir}/xmlrpc-c/girerr.hpp %{_includedir}/xmlrpc-c/girmem.hpp %{_includedir}/xmlrpc-c/oldcppwrapper.hpp %{_includedir}/xmlrpc-c/packetsocket.hpp %{_includedir}/xmlrpc-c/registry.hpp %{_includedir}/xmlrpc-c/timeout.hpp %{_includedir}/xmlrpc-c/xml.hpp %{_includedir}/XmlRpcCpp.h %{_pkgconfigdir}/xmlrpc++.pc %{_pkgconfigdir}/xmlrpc_abyss++.pc %{_pkgconfigdir}/xmlrpc_cpp.pc %{_pkgconfigdir}/xmlrpc_packetsocket.pc %{_pkgconfigdir}/xmlrpc_util++.pc %files client++ %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc_client++.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_client++.so.8 %files client++-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc_client++.so %{_includedir}/xmlrpc-c/client*.hpp %{_pkgconfigdir}/xmlrpc_client++.pc %files server++ %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc_server++.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server++.so.8 %attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss++.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_abyss++.so.8 %attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi++.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_cgi++.so.8 %attr(755,root,root) %{_libdir}/libxmlrpc_server_pstream++.so.*.* %attr(755,root,root) %ghost %{_libdir}/libxmlrpc_server_pstream++.so.8 %files server++-devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libxmlrpc_server++.so %attr(755,root,root) %{_libdir}/libxmlrpc_server_abyss++.so %attr(755,root,root) %{_libdir}/libxmlrpc_server_cgi++.so %attr(755,root,root) %{_libdir}/libxmlrpc_server_pstream++.so %{_includedir}/xmlrpc-c/server_abyss.hpp %{_includedir}/xmlrpc-c/server_pstream.hpp %{_pkgconfigdir}/xmlrpc_server++.pc %{_pkgconfigdir}/xmlrpc_server_abyss++.pc %{_pkgconfigdir}/xmlrpc_server_cgi++.pc %{_pkgconfigdir}/xmlrpc_server_pstream++.pc %files apps %defattr(644,root,root,755) %doc tools/xmlrpc_transport/xmlrpc_transport.html %attr(755,root,root) %{_bindir}/xmlrpc %attr(755,root,root) %{_bindir}/xmlrpc_parsecall %attr(755,root,root) %{_bindir}/xmlrpc_transport %attr(755,root,root) %{_bindir}/xml-rpc-api2cpp %attr(755,root,root) %{_bindir}/xml-rpc-api2txt %attr(755,root,root) %{_bindir}/xmlrpc_cpp_proxy %attr(755,root,root) %{_bindir}/xmlrpc_pstream %{_mandir}/man1/xml-rpc-api2cpp.1* %{_mandir}/man1/xml-rpc-api2txt.1*