%define pkgver %(echo %version | tr . _) Name: libtinyxml Version: 2.6.2 Release: 1mamba Summary: is a simple, small, C++ XML parser that can be easily integrating into other programs. Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Automatic Build System URL: http://www.grinninglizard.com/tinyxml/ Source: http://downloads.sourceforge.net/tinyxml/tinyxml_%{pkgver}.tar.gz Patch0: tinyxml-2.5.3-stl.patch Patch1: %{name}-2.6.1-entity.patch License: zlib ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libstdc++6-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description TinyXML is a simple, small, C++ XML parser that can be easily integrating into other programs. Have you ever found yourself writing a text file parser every time you needed to save human readable data or serialize objects? TinyXML solves the text I/O file once and for all. (Or, as a friend said, ends the Just Another Text File Parser problem.) %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description devel TinyXML is a simple, small, C++ XML parser that can be easily integrating into other programs. Have you ever found yourself writing a text file parser every time you needed to save human readable data or serialize objects? TinyXML solves the text I/O file once and for all. (Or, as a friend said, ends the Just Another Text File Parser problem.) This package contains libraries and header files need for development. %prep %setup -q -n tinyxml %patch0 -p1 -b .stl %patch1 -p0 touch -r tinyxml.h.stl tinyxml.h %build for i in tinyxml.cpp tinystr.cpp tinyxmlerror.cpp tinyxmlparser.cpp; do g++ %{optflags} -fPIC -o $i.o -c $i done g++ %{optflags} -shared -o %{name}.so.0.%{version} \ -Wl,-soname,%{name}.so.0 *.cpp.o %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_libdir} mkdir -p %{buildroot}%{_includedir} install -m 755 %{name}.so.0.%{version} %{buildroot}%{_libdir} ln -s %{name}.so.0.%{version} %{buildroot}%{_libdir}/%{name}.so.0 ln -s %{name}.so.0.%{version} %{buildroot}%{_libdir}/%{name}.so install -p -m 644 tinyxml.h %{buildroot}%{_includedir} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/*.so.* %doc changes.txt readme.txt %files devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/*.so %doc docs/* %changelog * Sat Dec 01 2012 Automatic Build System 2.6.2-1mamba - automatic version update by autodist * Fri Feb 18 2011 Silvan Calarco 2.6.1-2mamba - added entity patch from http://sourceforge.net/tracker/index.php?func=detail&aid=3031828&group_id=13559&atid=313559 * Wed Feb 09 2011 Silvan Calarco 2.6.1-1mamba - update to 2.6.1 * Thu Sep 18 2008 gil 2.5.3-1mamba - package created by autospec