| 1 |
# |
| 2 |
# "$Id: mxml.spec 399 2009-05-17 17:20:51Z mike $" |
| 3 |
# |
| 4 |
# RPM "spec" file for Mini-XML, a small XML library. |
| 5 |
# |
| 6 |
# Copyright 2003-2009 by Michael Sweet. |
| 7 |
# |
| 8 |
# This program is free software; you can redistribute it and/or |
| 9 |
# modify it under the terms of the GNU Library General Public |
| 10 |
# License as published by the Free Software Foundation; either |
| 11 |
# version 2, or (at your option) any later version. |
| 12 |
# |
| 13 |
# This program is distributed in the hope that it will be useful, |
| 14 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 |
# GNU General Public License for more details. |
| 17 |
# |
| 18 |
|
| 19 |
Summary: Miniature XML development library |
| 20 |
Name: mxml |
| 21 |
Version: 2.6 |
| 22 |
Release: 1 |
| 23 |
License: LGPL |
| 24 |
Group: Development/Libraries |
| 25 |
Source: http://www.easysw.com/~mike/mxml/mxml-%{version}.tar.gz |
| 26 |
Url: http://www.easysw.com/~mike/mxml/ |
| 27 |
Packager: Michael Sweet <[email protected]> |
| 28 |
Vendor: Michael Sweet |
| 29 |
|
| 30 |
# Use buildroot so as not to disturb the version already installed |
| 31 |
BuildRoot: /var/tmp/%{name}-root |
| 32 |
|
| 33 |
%description |
| 34 |
Mini-XML is a small XML parsing library that you can use to read |
| 35 |
XML and XML-like data files in your application without |
| 36 |
requiring large non-standard libraries. Mini-XML provides the |
| 37 |
following functionality: |
| 38 |
|
| 39 |
- Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded |
| 40 |
XML files and strings. |
| 41 |
- Data is stored in a linked-list tree structure, preserving |
| 42 |
the XML data hierarchy. |
| 43 |
- Supports arbitrary element names, attributes, and |
| 44 |
attribute values with no preset limits, just available |
| 45 |
memory. |
| 46 |
- Supports integer, real, opaque ("cdata"), and text data |
| 47 |
types in "leaf" nodes. |
| 48 |
- Functions for creating and managing trees of data. |
| 49 |
- "Find" and "walk" functions for easily locating and |
| 50 |
navigating trees of data. |
| 51 |
|
| 52 |
Mini-XML doesn't do validation or other types of processing on |
| 53 |
the data based upon schema files or other sources of definition |
| 54 |
information, nor does it support character entities other than |
| 55 |
those required by the XML specification. |
| 56 |
|
| 57 |
%prep |
| 58 |
%setup |
| 59 |
|
| 60 |
%build |
| 61 |
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --enable-shared --prefix=/usr |
| 62 |
|
| 63 |
# If we got this far, all prerequisite libraries must be here. |
| 64 |
make |
| 65 |
|
| 66 |
%install |
| 67 |
# Make sure the RPM_BUILD_ROOT directory exists. |
| 68 |
rm -rf $RPM_BUILD_ROOT |
| 69 |
|
| 70 |
make BUILDROOT=$RPM_BUILD_ROOT install |
| 71 |
|
| 72 |
%clean |
| 73 |
rm -rf $RPM_BUILD_ROOT |
| 74 |
|
| 75 |
%files |
| 76 |
%defattr(-,root,root) |
| 77 |
|
| 78 |
%dir /usr/bin |
| 79 |
/usr/bin/* |
| 80 |
%dir /usr/include |
| 81 |
/usr/include/mxml.h |
| 82 |
%dir /usr/lib |
| 83 |
/usr/lib/* |
| 84 |
%dir /usr/lib/pkgconfig |
| 85 |
/usr/lib/pkgconfig/mxml.pc |
| 86 |
%dir /usr/share/doc/mxml |
| 87 |
/usr/share/doc/mxml/* |
| 88 |
%dir /usr/share/man/man1 |
| 89 |
/usr/share/man/man1/* |
| 90 |
%dir /usr/share/man/man3 |
| 91 |
/usr/share/man/man3/* |
| 92 |
|
| 93 |
# |
| 94 |
# End of "$Id: mxml.spec 399 2009-05-17 17:20:51Z mike $". |
| 95 |
# |