%define major 1 %define libname %mklibname mxml %{major} Summary: Miniature XML development library Name: mxml Version: 2.3 Release: %mkrel 1 License: GPL Group: System/Libraries URL: http://www.easysw.com/~mike/mxml/ Source0: ftp://ftp3.easysw.com/pub/mxml/%{version}/mxml-%{version}.tar.bz2 BuildRequires: chrpath BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Mini-XML is a small XML parsing library that you can use to read XML and XML-like data files in your application without requiring large non-standard libraries. Mini-XML provides the following functionality: - Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded XML files and strings. - Data is stored in a linked-list tree structure, preserving the XML data hierarchy. - Supports arbitrary element names, attributes, and attribute values with no preset limits, just available memory. - Supports integer, real, opaque ("cdata"), and text data types in "leaf" nodes. - Functions for creating and managing trees of data. - "Find" and "walk" functions for easily locating and navigating trees of data. Mini-XML doesn't do validation or other types of processing on the data based upon schema files or other sources of definition information, nor does it support character entities other than those required by the XML specification. %package -n %{libname} Summary: Miniature XML development library Group: System/Libraries %description -n %{libname} Mini-XML is a small XML parsing library that you can use to read XML and XML-like data files in your application without requiring large non-standard libraries. Mini-XML provides the following functionality: - Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded XML files and strings. - Data is stored in a linked-list tree structure, preserving the XML data hierarchy. - Supports arbitrary element names, attributes, and attribute values with no preset limits, just available memory. - Supports integer, real, opaque ("cdata"), and text data types in "leaf" nodes. - Functions for creating and managing trees of data. - "Find" and "walk" functions for easily locating and navigating trees of data. Mini-XML doesn't do validation or other types of processing on the data based upon schema files or other sources of definition information, nor does it support character entities other than those required by the XML specification. %package -n %{libname}-devel Summary: Static library and header files for the Miniature XML development library Group: Development/C Provides: libmxml-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{libname}-devel This package contains the static mxml library and its header files. %prep %setup -q %build %configure2_5x \ --enable-shared %make %install [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %makeinstall_std BUILDROOT=%{buildroot} mv %{buildroot}%{_datadir}/doc/mxml installed-docs rm -rf %{buildroot}%{_datadir}/man/cat* chrpath -d %{buildroot}%{_libdir}/*.so.%{major}* chrpath -d %{buildroot}%{_bindir}/mxmldoc %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files -n %{libname} %defattr(644,root,root,755) %doc ANNOUNCEMENT CHANGES COPYING README doc/*.html %attr(755,root,root) %{_libdir}/*.so.%{major}* %files -n %{libname}-devel %defattr(644,root,root,755) %doc installed-docs/* %attr(755,root,root) %{_bindir}/* %{_includedir}/* %{_libdir}/*.so %{_libdir}/*.a %{_libdir}/pkgconfig/mxml.pc %{_mandir}/man1/* %{_mandir}/man3/* %changelog * Sat Apr 28 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 2.3-1mdv2008.0 + Revision: 18974 - new version - drop P0 - use macros - remove rpath - drop provides and obsoletes from -devel + Mandriva <devel@mandriva.com> * Tue Oct 24 2006 Oden Eriksson <oeriksson@mandriva.com> 2.2.2-2mdv2007.0 + Revision: 72133 - forgot to add the patch... - new major - make it a shared lib - Import mxml * Mon May 29 2006 Götz Waschk <waschk@mandriva.org> 2.2.2-1mdv2007.0 - Rebuild * Thu May 26 2005 Götz Waschk <waschk@mandriva.org> 2.2.2-1mdk - New release 2.2.2 * Sat Apr 16 2005 Götz Waschk <waschk@linux-mandrake.com> 2.2-1mdk - source URL - New release 2.2 * Mon Jul 19 2004 Götz Waschk <waschk@linux-mandrake.com> 2.0-1mdk - initial package