2005-12-18 18:16:01 +00:00
|
|
|
%global _includedir %_includedir/%name
|
|
|
|
|
|
|
|
%{!?release_func:%global release_func() %1%{?dist}}
|
|
|
|
|
|
|
|
Summary: A lightweight RPC library based on XML and HTTP
|
|
|
|
Name: xmlrpc-c
|
2006-09-18 06:22:42 +00:00
|
|
|
Version: 1.06.04
|
|
|
|
Release: %release_func 2
|
2005-12-18 18:16:01 +00:00
|
|
|
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
|
2006-06-04 16:21:22 +00:00
|
|
|
Patch3: xmlrpc-c-1.05-typo.patch
|
2006-09-18 06:22:42 +00:00
|
|
|
Patch6: xmlrpc-c-1.06.04-sizet.patch
|
|
|
|
Patch100: http://ensc.de/xmlrpc-c/0003-make-cmake-transition.txt
|
|
|
|
Patch101: http://ensc.de/xmlrpc-c/0004-added-multilib-stuff.txt
|
|
|
|
Patch102: http://ensc.de/xmlrpc-c/0005-added-xmlrpc-c-config-wrapper.txt
|
|
|
|
Patch103: http://ensc.de/xmlrpc-c/0006-added-some-tools-directories.txt
|
|
|
|
Patch104: http://ensc.de/xmlrpc-c/0007-implemented-testsuite.txt
|
|
|
|
Patch105: http://ensc.de/xmlrpc-c/0008-use-a-macro-to-set-the-linker-flags-for-executables.txt
|
|
|
|
Patch106: http://ensc.de/xmlrpc-c/0009-Install-xmlrpc-c-config-and-man-pages-added-mandir-variable.txt
|
|
|
|
Patch107: http://ensc.de/xmlrpc-c/0010-install-libxmlrpc_util.so-and-set-version-information.txt
|
2005-12-18 18:16:01 +00:00
|
|
|
BuildRoot: %_tmppath/%name-%version-%release-root
|
|
|
|
#BuildRequires: w3c-libwww-devel
|
2006-09-18 06:34:09 +00:00
|
|
|
BuildRequires: cmake
|
2005-12-18 18:16:01 +00:00
|
|
|
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
|
2006-09-18 06:22:42 +00:00
|
|
|
Requires: pkgconfig
|
2005-12-18 18:16:01 +00:00
|
|
|
|
|
|
|
%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
|
2006-06-04 16:21:22 +00:00
|
|
|
%patch3 -p1 -b .typo
|
2006-09-18 06:22:42 +00:00
|
|
|
%patch6 -p1 -b .sizet
|
|
|
|
|
|
|
|
cat %PATCH100 %PATCH101 %PATCH102 %PATCH103 \
|
|
|
|
%PATCH104 %PATCH105 %PATCH106 %PATCH107 | patch -p1
|
|
|
|
|
|
|
|
sed -i -e '/\(chan\|init\.c\)/d' lib/abyss/src/CMakeLists.txt
|
|
|
|
sed -i -e 's!xmlrpc_decompose.c!xmlrpc_builddecomp.c!g;
|
|
|
|
s!xmlrpc_build.c!!g;' src/CMakeLists.txt
|
|
|
|
sed -i -e 's! abyss.c!!g;' src/test/CMakeLists.txt
|
2005-12-18 18:16:01 +00:00
|
|
|
|
|
|
|
## not needed...
|
|
|
|
rm doc/{INSTALL,configure_doc}
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2006-09-18 06:22:42 +00:00
|
|
|
mkdir fedora
|
|
|
|
cd fedora
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS"
|
|
|
|
cmake .. \
|
|
|
|
-D_lib:STRING=%_lib \
|
|
|
|
-DMUST_BUILD_CURL_CLIENT:BOOL=ON \
|
|
|
|
-DMUST_BUILD_LIBWWW_CLIENT:BOOL=OFF \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH=%_prefix \
|
|
|
|
-DBUILD_SHARED_LIBS:BOOL=ON \
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON
|
|
|
|
make VERBOSE=1 %{?_smp_mflags}
|
2005-12-18 18:16:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2006-09-18 06:22:42 +00:00
|
|
|
cd fedora
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
|
2005-12-18 18:16:01 +00:00
|
|
|
|
|
|
|
%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
|
2006-09-18 06:22:42 +00:00
|
|
|
%_libdir/pkgconfig/*.pc
|
2005-12-18 18:16:01 +00:00
|
|
|
%_libdir/*.so
|
|
|
|
|
|
|
|
|
|
|
|
%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
|
2006-09-18 06:22:42 +00:00
|
|
|
* Sat Sep 16 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.06.04-1
|
|
|
|
- updated to 1.06.04
|
|
|
|
- patched the broken buildsystem
|
|
|
|
- disabled libwww backend explicitely
|
|
|
|
|
2006-06-04 16:26:19 +00:00
|
|
|
* Sun Jun 4 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.05-1
|
2006-06-04 16:21:22 +00:00
|
|
|
- updated to 1.05
|
|
|
|
- updated patches
|
|
|
|
|
2006-02-18 11:56:06 +00:00
|
|
|
* Sat Feb 18 2006 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> - 1.04-2
|
|
|
|
- rebuilt for FC5
|
|
|
|
|
2005-12-18 18:16:01 +00:00
|
|
|
* 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.
|