Here is an optional spec file for the older libxml++1.0.5 with a small
patch file. We use this since it has fewer dependencies than version
2 (glibmm, etc)
Source location:
http://ftp.gnome.org/pub/GNOME/sources/libxml++/1.0/
http://ftp.gnome.org/pub/GNOME/sources/libxml++/1.0/libxml++-1.0.5.tar.gz
diff --exclude CVS -uNr libxml++-1.0.5/libxml++/parsers/parser.cc libxml++-1.0.5.modified/libxml++/parsers/parser.cc
--- libxml++-1.0.5/libxml++/parsers/parser.cc 2004-08-13 17:08:43.000000000 -0400
+++ libxml++-1.0.5.modified/libxml++/parsers/parser.cc 2010-03-08 21:22:33.000000000 -0500
@@ -9,6 +9,7 @@
#include <libxml/parser.h>
#include <cstdarg> //For va_list.
+#include <memory>
namespace xmlpp {
%define pfx /opt/freescale/rootfs/%{_target_cpu}
Summary : libxml++ is a C++ wrapper for the libxml2 XML parser library.
Name : libxml++
Version : 1.0.5
Release : 1
License : LGPL
Vendor : ltib.org
Packager : Mike Goins
Group : Developmet/Libraries
URL : http://libxmlplusplus.sourceforge.net/
Source : %{name}-%{version}.tar.gz
Patch1 : libxml++-1.0.5-memory_inc.patch
BuildRoot : %{_tmppath}/%{name}
Prefix : %{pfx}
Requires : libxml2
%Description
%{summary}
%Prep
%setup
%patch1 -p1
%Build
export PKG_CONFIG_PATH=$DEV_IMAGE/usr/lib/pkgconfig
./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build}
make
%Install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT/%{pfx}
find $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/lib/ -name "*.la" | xargs rm -f
%Clean
rm -rf $RPM_BUILD_ROOT
%Files
%defattr(-,root,root)
%{pfx}/*
_______________________________________________
LTIB home page: http://ltib.org
Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib