Group :: Sistema/Bibliotecas
RPM: xmlrpc-c
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define libname libxmlrpc
%def_disable cplusplus
Name: xmlrpc-c
Version: 1.12.00
Release: alt8
Summary: XML-RPC C library - an implementation of the xmlrpc protocol
License: BSD-style
Group: System/Libraries
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Url: http://xmlrpc-c.sourceforge.net/
Source: %name-%version.tar.bz2
Patch0: %name-1.12.00-alt-link-fixes.patch
Patch1: %name-1.12.00-alt-configure-fixes.patch
Patch2: %name-1.06.09-gentoo-curl-compile-fix.patch
Patch3: %name-1.12.00-alt-gnueabi.patch
BuildPreReq: libcurl-devel libxml2-devel w3c-libwww-devel
%if_enabled cplusplus
BuildPreReq: gcc-c++
%endif
%description
XML-RPC for C/C++ is programming libraries and related tools to help you
write an XML-RPC server or client in C or C++.
%package -n %libname
Summary: XML-RPC C library - an implementation of the xmlrpc protocol
Group: System/Libraries
%description -n %libname
XML-RPC for C/C++ is programming libraries and related tools to help you
write an XML-RPC server or client in C or C++.
%package -n %libname-devel
Summary: Files for developing applications that use %libname
Requires: %libname = %version
Requires: libcurl-devel libexpat-devel libssl-devel w3c-libwww-devel libxml2-devel
Group: Development/C
%description -n %libname-devel
The header file for developing applications that use
%name.
%package -n %libname++
Summary: XML-RPC C++ library - an implementation of the xmlrpc protocol
Group: System/Libraries
Requires: %libname = %version
%description -n %libname++
XML-RPC for C/C++ is programming libraries and related tools to help you
write an XML-RPC server or client in C or C++.
This package contains C++ bindings for %libname.
%package -n %libname++-devel
Summary: Files for developing applications that use %libname++
Requires: %libname++ = %version
Requires: %libname-devel = %version
Group: Development/C++
%description -n %libname++-devel
The header file for developing applications that use
%libname++.
%prep
%setup
%patch0 -p1 -b .orig
%patch1 -p1
%patch2 -p1
%patch3 -p2
%__subst '/AM_INIT_AUTOMAKE/d' configure.in
%autoreconf
#%%__subst '\,^SUBDIRS,s,tools examples,,' GNUmakefile
#%%__subst 's,^TARGET_STATIC_LIBRARIES.*,TARGET_STATIC_LIBRARIES=,' src/cpp/Makefile
%build
#%%add_optflags %optflags_shared
%configure \
--disable-static \
--disable-abyss-server \
--disable-cgi-server \
%{subst_enable cplusplus} \
--enable-libxml2-backend
# non-SMP
%make CFLAGS_COMMON="%optflags -DNDEBUG" CXXFLAGS_COMMON="%optflags -DNDEBUG" LIBINST_DIR="%_libdir"
%install
%makeinstall DESTDIR=%buildroot LIBINST_DIR="%_libdir"
#rm -f %buildroot%_includedir/
rm -f %buildroot%_libdir/*.a
rm -f %buildroot%_includedir/{XmlRpcCpp,xmlrpc_cgi}.h
%files -n %libname
%_libdir/libxmlrpc.so.*
#%%_libdir/libxmlrpc_abyss.so.*
%_libdir/libxmlrpc_client.so.*
%_libdir/libxmlrpc_server.so.*
#%%_libdir/libxmlrpc_server_abyss.so.*
#%%_libdir/libxmlrpc_server_cgi.so.*
%_libdir/libxmlrpc_util.so.*
%doc README doc/*
%files -n %libname-devel
%_bindir/%name-config
%_libdir/libxmlrpc.so
#%%_libdir/libxmlrpc_abyss.so
%_libdir/libxmlrpc_client.so
%_libdir/libxmlrpc_server.so
#%%_libdir/libxmlrpc_server_abyss.so
#%%_libdir/libxmlrpc_server_cgi.so
%_libdir/libxmlrpc_util.so
%_includedir/*
%if_enabled cplusplus
%files -n %libname++
%_libdir/libxmlrpc++.so.*
%_libdir/libxmlrpc_client++.so.*
%_libdir/libxmlrpc_cpp.so.*
%_libdir/libxmlrpc_server++.so.*
%_libdir/libxmlrpc_server_abyss++.so.*
%files -n %libname++-devel
%_libdir/libxmlrpc++.so
%_libdir/libxmlrpc_client++.so
%_libdir/libxmlrpc_cpp.so
%_libdir/libxmlrpc_server++.so
%_libdir/libxmlrpc_server_abyss++.so
%endif
%changelog
…
Todas as alterações você pod ver aqui
%def_disable cplusplus
Name: xmlrpc-c
Version: 1.12.00
Release: alt8
Summary: XML-RPC C library - an implementation of the xmlrpc protocol
License: BSD-style
Group: System/Libraries
Packager: Andrey Rahmatullin <wrar at altlinux.ru>
Url: http://xmlrpc-c.sourceforge.net/
Source: %name-%version.tar.bz2
Patch0: %name-1.12.00-alt-link-fixes.patch
Patch1: %name-1.12.00-alt-configure-fixes.patch
Patch2: %name-1.06.09-gentoo-curl-compile-fix.patch
Patch3: %name-1.12.00-alt-gnueabi.patch
BuildPreReq: libcurl-devel libxml2-devel w3c-libwww-devel
%if_enabled cplusplus
BuildPreReq: gcc-c++
%endif
%description
XML-RPC for C/C++ is programming libraries and related tools to help you
write an XML-RPC server or client in C or C++.
%package -n %libname
Summary: XML-RPC C library - an implementation of the xmlrpc protocol
Group: System/Libraries
%description -n %libname
XML-RPC for C/C++ is programming libraries and related tools to help you
write an XML-RPC server or client in C or C++.
%package -n %libname-devel
Summary: Files for developing applications that use %libname
Requires: %libname = %version
Requires: libcurl-devel libexpat-devel libssl-devel w3c-libwww-devel libxml2-devel
Group: Development/C
%description -n %libname-devel
The header file for developing applications that use
%name.
%package -n %libname++
Summary: XML-RPC C++ library - an implementation of the xmlrpc protocol
Group: System/Libraries
Requires: %libname = %version
%description -n %libname++
XML-RPC for C/C++ is programming libraries and related tools to help you
write an XML-RPC server or client in C or C++.
This package contains C++ bindings for %libname.
%package -n %libname++-devel
Summary: Files for developing applications that use %libname++
Requires: %libname++ = %version
Requires: %libname-devel = %version
Group: Development/C++
%description -n %libname++-devel
The header file for developing applications that use
%libname++.
%prep
%setup
%patch0 -p1 -b .orig
%patch1 -p1
%patch2 -p1
%patch3 -p2
%__subst '/AM_INIT_AUTOMAKE/d' configure.in
%autoreconf
#%%__subst '\,^SUBDIRS,s,tools examples,,' GNUmakefile
#%%__subst 's,^TARGET_STATIC_LIBRARIES.*,TARGET_STATIC_LIBRARIES=,' src/cpp/Makefile
%build
#%%add_optflags %optflags_shared
%configure \
--disable-static \
--disable-abyss-server \
--disable-cgi-server \
%{subst_enable cplusplus} \
--enable-libxml2-backend
# non-SMP
%make CFLAGS_COMMON="%optflags -DNDEBUG" CXXFLAGS_COMMON="%optflags -DNDEBUG" LIBINST_DIR="%_libdir"
%install
%makeinstall DESTDIR=%buildroot LIBINST_DIR="%_libdir"
#rm -f %buildroot%_includedir/
rm -f %buildroot%_libdir/*.a
rm -f %buildroot%_includedir/{XmlRpcCpp,xmlrpc_cgi}.h
%files -n %libname
%_libdir/libxmlrpc.so.*
#%%_libdir/libxmlrpc_abyss.so.*
%_libdir/libxmlrpc_client.so.*
%_libdir/libxmlrpc_server.so.*
#%%_libdir/libxmlrpc_server_abyss.so.*
#%%_libdir/libxmlrpc_server_cgi.so.*
%_libdir/libxmlrpc_util.so.*
%doc README doc/*
%files -n %libname-devel
%_bindir/%name-config
%_libdir/libxmlrpc.so
#%%_libdir/libxmlrpc_abyss.so
%_libdir/libxmlrpc_client.so
%_libdir/libxmlrpc_server.so
#%%_libdir/libxmlrpc_server_abyss.so
#%%_libdir/libxmlrpc_server_cgi.so
%_libdir/libxmlrpc_util.so
%_includedir/*
%if_enabled cplusplus
%files -n %libname++
%_libdir/libxmlrpc++.so.*
%_libdir/libxmlrpc_client++.so.*
%_libdir/libxmlrpc_cpp.so.*
%_libdir/libxmlrpc_server++.so.*
%_libdir/libxmlrpc_server_abyss++.so.*
%files -n %libname++-devel
%_libdir/libxmlrpc++.so
%_libdir/libxmlrpc_client++.so
%_libdir/libxmlrpc_cpp.so
%_libdir/libxmlrpc_server++.so
%_libdir/libxmlrpc_server_abyss++.so
%endif
%changelog
…
Todas as alterações você pod ver aqui