SHA256
8
0
forked from pool/xmlrpc-c
Files
xmlrpc-c/xmlrpc-c.spec
Martin Pluskal dd615333f9 Accepting request 828486 from home:dirkmueller:branches:devel:libraries:c_c++
- update to 1.51.06:
  * Build: fix bug: won't compile with --enable-libxml2, introduced with Release 1.44 (December 2015).
  * Remove trace statements accidentally added in Release 1.51.00. (Released December 2017, promoted to Super Stable March 2019).
  * Build: fix bug: ignores LDFLAGS_FOR_BUILD, LDFLAGS_PERSONAL, and LDFLAGS_PTHREAD when building the build tool Gennmtab.
  * Fix tiny memory leak in virtually impossible low memory situation.
  * Fix bug: 'toValue' won't compile for vector of vectors or map of vectors. Thanks Yang Bo .
  * Build: fix missing xmlrpc-c/config.h include file in separate build tree build. Thanks Philip Belemezov <philip@belemezov.net>.
  * Build: Add --disable-abyss-openssl for build environments that appear to have Openssl but don't really. (A Pkg-config design flaw makes that happen sometimes - you can't control what directories it searches for .pc files).
  * Windows build: add Visual Studio 2017 project files, fix various things broken for Windows in recent updates. Thanks to Maksym Veremeyenko .
  * Disable 10M restriction on document size in Libxml2 XML parser.
  * Build: Recognize additional Linux "host OS" environments. E.g. "linux-uclibc".
  * Build: replace BUILDTOOL_CC and BUILDTOOL_CCLD with more conventional CC_FOR_BUILD. Add CFLAGS_FOR_BUILD, LDFLAGS_FOR_BUILD.
  * Build: Don't attempt to build C++ internal utility module cmdline_parser_cpp if we aren't building the C++ libraries. In that case, 1) it isn't needed, and 2) the environment probably is incapable of compiling C++.
  * Build: Use AC_CHECK_TOOL to determine 'ar' command and AC_PROG_RANLIB to determine 'ranlib' command to use.
  * Build: fix compile failure in build for a system that does not have Unicode wide characters (wchar_t).
  * Packet stream client: Add option to throw a BrokenConnEx exception when transport fails because the server hung up or network broke, instead of throwing error.
  * Add ServerAbyss::getListenName method, ChanSwitchUnixGetListeName: ability to find out on what port your server is listening.
  * Packet stream server ('serverPstreamConn'): fix bug: runOnce() fails with indication that it was interrupted when the server hangs up. Always broken (interruptible RunOnce() was new in Xmlrpc-c 1.14 (March 2008).
  * Fix compile failure with old OpenSSL that doesn't have SSL_ERROR_WANT_ACCEPT. Introduced in Xmlrpc-c 1.45.
  * Add SSL/TLS capability via OpenSSL to Abyss server.
  * Fix xmlrpc_mem_block accidentally made private in 1.44.
  * Build: Remove example and test program usage of XML parser facility (<xmlrpc-c/xmlparser.h>), which was made private in 1.44, so the examples and tools no longer build.
  * C++: Add 'toValue' and 'fromValue' for 64-bit integer (xmlrpc_c::value_i8).
  * Memory block utility: Remove xmlrpc_mem_block_init and xmlrpc_mem_block_clean. These complicate forward compatibility and probably were never used. xmlrpc_mem_block_new and xmlrpc_mem_block_free remain to fulfill the same purpose.
  * Remove XML parser (<xmlrpc-c/xmlparser.h>) from external API. This is not specific to XML-RPC, so has no business being a service of Xmlrpc-c. It is just an abstraction to allow us to use various XML parsing libraries (to wit, Expat and Libxml2). We don't think it was ever used externally.
  * Add xmlrpc_value_new(): deep copy of xmlrpc_value.
  * Abyss C++: Add 'terminate' and 'resetTerminate' methods, analogous to C Abyss 'ServerTerminate' and 'ServerResetTerminate'.
  * Fix bug: infinite recursion if you try to format a floating point value that was created from something other than a finite number. Creation of a floating point XML-RPC value from something other than a number now fails. Introduced in Xmlrpc-c 1.15 (June 2008).
  * Curl client: fix garbage in message where explanation from Curl library belongs. Always there, with some Curl libraries.
  * Curl client: fix instantaneous timeout with some Curl libraries. Introduced in Xmlrpc-c 1.41 (March 2015).

OBS-URL: https://build.opensuse.org/request/show/828486
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xmlrpc-c?expand=0&rev=82
2020-08-21 12:33:26 +00:00

324 lines
12 KiB
RPMSpec

#
# spec file for package xmlrpc-c
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define soname 3
%define soname_cpp 8
Name: xmlrpc-c
Version: 1.51.06
Release: 0
Summary: Library implementing XML-based Remote Procedure Calls
License: BSD-3-Clause AND MIT
Group: Development/Libraries/C and C++
URL: http://xmlrpc-c.sourceforge.net/
Source: https://sourceforge.net/projects/xmlrpc-c/files/Xmlrpc-c%20Super%20Stable/%{version}/xmlrpc-c-%{version}.tgz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: makeinfo
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libxml-2.0)
%description
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package devel
Summary: Development package for xmlrpc-c
Group: Development/Libraries/C and C++
Requires: libxmlrpc%{soname} = %{version}
Requires: libxmlrpc++%{soname_cpp} = %{version}
Requires: libxmlrpc_abyss%{soname} = %{version}
Requires: libxmlrpc_abyss++%{soname_cpp} = %{version}
Requires: libxmlrpc_client%{soname} = %{version}
Requires: libxmlrpc_client++%{soname_cpp} = %{version}
Requires: libxmlrpc_cpp%{soname_cpp} = %{version}
Requires: libxmlrpc_packetsocket%{soname_cpp} = %{version}
Requires: libxmlrpc_server%{soname} = %{version}
Requires: libxmlrpc_server++%{soname_cpp} = %{version}
Requires: libxmlrpc_server_abyss%{soname} = %{version}
Requires: libxmlrpc_server_abyss++%{soname_cpp} = %{version}
Requires: libxmlrpc_server_cgi%{soname} = %{version}
Requires: libxmlrpc_server_cgi++%{soname_cpp} = %{version}
Requires: libxmlrpc_server_pstream++%{soname_cpp} = %{version}
Requires: libxmlrpc_util++%{soname_cpp} = %{version}
Requires: libxmlrpc_util4 = %{version}
Requires: pkgconfig(libxml-2.0)
%description devel
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
This subpackage contains libraries and header files for developing
applications that want to make use of xmlrpc-c.
%package -n libxmlrpc%{soname}
Summary: A library implementing XML-based remote procedure calls
Group: System/Libraries
%description -n libxmlrpc%{soname}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc++%{soname_cpp}
Summary: A library implementing XML-based remote procedure calls
Group: System/Libraries
%description -n libxmlrpc++%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_abyss%{soname}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_abyss%{soname}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_abyss++%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_abyss++%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_client%{soname}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_client%{soname}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_client++%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_client++%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_cpp%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_cpp%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_packetsocket%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_packetsocket%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_server%{soname}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_server%{soname}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_server++%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_server++%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_server_abyss%{soname}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_server_abyss%{soname}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_server_abyss++%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_server_abyss++%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_server_cgi%{soname}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_server_cgi%{soname}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_server_cgi++%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_server_cgi++%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_server_pstream++%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_server_pstream++%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_util4
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_util4
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%package -n libxmlrpc_util++%{soname_cpp}
Summary: Library implementing XML-based Remote Procedure Calls
Group: System/Libraries
%description -n libxmlrpc_util++%{soname_cpp}
XML-RPC is a lightweight RPC protocol based on XML and HTTP. This
package is used by XML-RPC clients and servers written in C and C++.
%prep
%setup -q
%build
export CFLAGS_PERSONAL="%{optflags}"
%configure \
--enable-libxml2-backend
%make_build CADD="-fPIC -DPIC" AR=ar RANLIB=ranlib --jobs 1
%check
%make_build check CADD="-fPIC -DPIC" AR=ar RANLIB=ranlib --jobs 1
%install
%make_install AR=ar RANLIB=ranlib
# Remove static libraries
rm -f %{buildroot}%{_libdir}/*.a
make -C examples clean
make -C examples/cpp clean
%post -n libxmlrpc%{soname} -p /sbin/ldconfig
%post -n libxmlrpc++%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_abyss%{soname} -p /sbin/ldconfig
%post -n libxmlrpc_abyss++%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_client%{soname} -p /sbin/ldconfig
%post -n libxmlrpc_client++%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_cpp%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_packetsocket%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_server%{soname} -p /sbin/ldconfig
%post -n libxmlrpc_server++%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_server_abyss%{soname} -p /sbin/ldconfig
%post -n libxmlrpc_server_abyss++%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_server_cgi%{soname} -p /sbin/ldconfig
%post -n libxmlrpc_server_cgi++%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_server_pstream++%{soname_cpp} -p /sbin/ldconfig
%post -n libxmlrpc_util4 -p /sbin/ldconfig
%post -n libxmlrpc_util++%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc%{soname} -p /sbin/ldconfig
%postun -n libxmlrpc++%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_abyss%{soname} -p /sbin/ldconfig
%postun -n libxmlrpc_abyss++%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_client%{soname} -p /sbin/ldconfig
%postun -n libxmlrpc_client++%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_cpp%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_packetsocket%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_server%{soname} -p /sbin/ldconfig
%postun -n libxmlrpc_server++%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_server_abyss%{soname} -p /sbin/ldconfig
%postun -n libxmlrpc_server_abyss++%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_server_cgi%{soname} -p /sbin/ldconfig
%postun -n libxmlrpc_server_cgi++%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_server_pstream++%{soname_cpp} -p /sbin/ldconfig
%postun -n libxmlrpc_util4 -p /sbin/ldconfig
%postun -n libxmlrpc_util++%{soname_cpp} -p /sbin/ldconfig
%files devel
%doc examples/
%{_bindir}/xmlrpc-c-config
%{_libdir}/*.so
%{_includedir}/XmlRpcCpp.h
%{_includedir}/xmlrpc*
%{_libdir}/pkgconfig/xmlrpc*pc
%files -n libxmlrpc%{soname}
%{_libdir}/libxmlrpc.so.%{soname}*
%files -n libxmlrpc++%{soname_cpp}
%{_libdir}/libxmlrpc++.so.%{soname_cpp}*
%files -n libxmlrpc_abyss%{soname}
%{_libdir}/libxmlrpc_abyss.so.%{soname}*
%files -n libxmlrpc_abyss++%{soname_cpp}
%{_libdir}/libxmlrpc_abyss++.so.%{soname_cpp}*
%files -n libxmlrpc_client%{soname}
%{_libdir}/libxmlrpc_client.so.%{soname}*
%files -n libxmlrpc_client++%{soname_cpp}
%{_libdir}/libxmlrpc_client++.so.%{soname_cpp}*
%files -n libxmlrpc_cpp%{soname_cpp}
%{_libdir}/libxmlrpc_cpp.so.%{soname_cpp}*
%files -n libxmlrpc_packetsocket%{soname_cpp}
%{_libdir}/libxmlrpc_packetsocket.so.%{soname_cpp}*
%files -n libxmlrpc_server%{soname}
%{_libdir}/libxmlrpc_server.so.%{soname}*
%files -n libxmlrpc_server++%{soname_cpp}
%{_libdir}/libxmlrpc_server++.so.%{soname_cpp}*
%files -n libxmlrpc_server_abyss%{soname}
%{_libdir}/libxmlrpc_server_abyss.so.%{soname}*
%files -n libxmlrpc_server_abyss++%{soname_cpp}
%{_libdir}/libxmlrpc_server_abyss++.so.%{soname_cpp}*
%files -n libxmlrpc_server_cgi%{soname}
%{_libdir}/libxmlrpc_server_cgi.so.%{soname}*
%files -n libxmlrpc_server_cgi++%{soname_cpp}
%{_libdir}/libxmlrpc_server_cgi++.so.%{soname_cpp}*
%files -n libxmlrpc_server_pstream++%{soname_cpp}
%{_libdir}/libxmlrpc_server_pstream++.so.%{soname_cpp}*
%files -n libxmlrpc_util4
%{_libdir}/libxmlrpc_util.so.4*
%files -n libxmlrpc_util++%{soname_cpp}
%{_libdir}/libxmlrpc_util++.so.%{soname_cpp}*
%changelog