diff --git a/README.md b/README.md index 91e882d..29b030b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libmxml +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 only requires an ANSI C compatible compiler (GCC works, as do most vendors' ANSI C compilers) and a 'make' program. + diff --git a/libmxml.spec b/libmxml.spec new file mode 100644 index 0000000..1c85df5 --- /dev/null +++ b/libmxml.spec @@ -0,0 +1,80 @@ +Name: libmxml +Version: 2.8 +Release: 1mamba +Summary: A small XML parsing library that you can use to read XML and XML-like data files +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.easysw.com/~mike/mxml/ +Source: http://www.msweet.org/files/project3/mxml-%{version}.tar.gz +License: LGPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END + +%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 only requires an ANSI C compatible compiler (GCC works, as do most vendors' ANSI C compilers) and a 'make' program. + +%package devel +Summary: Devel package for %{name} +Group: Development/Libraries +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +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 only requires an ANSI C compatible compiler (GCC works, as do most vendors' ANSI C compilers) and a 'make' program. +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, indexing, and managing trees of data. +"Find" and "walk" functions for easily locating and navigating trees of data. + +This package contains static libraries and header files need for development. + +%prep +%setup -q -n mxml-%{version} + +%build +%configure \ + --enable-shared +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall BUILDROOT=%{buildroot} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_libdir}/libmxml.so.* +%doc CHANGES COPYING README + +%files devel +%defattr(-,root,root) +%{_bindir}/mxmldoc +%{_includedir}/mxml.h +%{_libdir}/libmxml.a +%{_libdir}/libmxml.so +%{_datadir}/doc/mxml/* +%{_mandir}/man1/mxmldoc.1.* +%{_mandir}/man3/mxml.3.* +%{_libdir}/pkgconfig/*.pc + +%changelog +* Sat Feb 01 2014 Automatic Build System 2.8-1mamba +- automatic version update by autodist + +* Sat Dec 01 2012 Automatic Build System 2.7-1mamba +- automatic version update by autodist + +* Wed Sep 03 2008 Tiziana Ferro 2.5-1mamba +- update to 2.5 +- add buildrequirement + +* Mon Sep 11 2006 Silvan Calarco 2.2.2-1qilnx +- package created by autospec