2003-06-15 00:44:34 +00:00
|
|
|
|
#
|
2017-03-22 20:46:54 +00:00
|
|
|
|
# RPM "spec" file for Mini-XML, a small XML file parsing library.
|
2003-06-15 00:44:34 +00:00
|
|
|
|
#
|
2019-01-05 01:44:51 +00:00
|
|
|
|
# https://www.msweet.org/mxml
|
2003-06-15 00:44:34 +00:00
|
|
|
|
#
|
2024-02-27 21:50:25 +00:00
|
|
|
|
# Copyright © 2003-2024 by Michael R Sweet.
|
2003-06-15 00:44:34 +00:00
|
|
|
|
#
|
2019-01-05 01:44:51 +00:00
|
|
|
|
# Licensed under Apache License v2.0. See the file "LICENSE" for more
|
|
|
|
|
# information.
|
2003-06-15 00:44:34 +00:00
|
|
|
|
#
|
|
|
|
|
|
2017-03-22 20:46:54 +00:00
|
|
|
|
Summary: Small XML file parsing library
|
2003-06-15 00:44:34 +00:00
|
|
|
|
Name: mxml
|
2024-06-14 10:28:30 +00:00
|
|
|
|
Version: 4.0.4
|
2003-06-15 00:44:34 +00:00
|
|
|
|
Release: 1
|
2019-01-05 01:44:51 +00:00
|
|
|
|
License: Apache 2.0
|
2003-06-15 00:44:34 +00:00
|
|
|
|
Group: Development/Libraries
|
2017-03-22 20:46:54 +00:00
|
|
|
|
Source: https://github.com/michaelrsweet/mxml/releases/download/release-%{version}/mxml-%{version}.tar.gz
|
2019-01-05 01:44:51 +00:00
|
|
|
|
Url: https://www.msweet.org/mxml
|
2016-06-12 21:20:41 +00:00
|
|
|
|
Packager: John Doe <johndoe@example.com>
|
|
|
|
|
Vendor: Michael R Sweet
|
2003-06-15 00:44:34 +00:00
|
|
|
|
|
|
|
|
|
# Use buildroot so as not to disturb the version already installed
|
|
|
|
|
BuildRoot: /var/tmp/%{name}-root
|
|
|
|
|
|
|
|
|
|
%description
|
2017-03-22 20:46:54 +00:00
|
|
|
|
Mini-XML is a small XML parsing library that you can use to read XML data files
|
|
|
|
|
or strings in your application without requiring large non-standard libraries.
|
|
|
|
|
Mini-XML provides the following functionality:
|
2003-06-15 00:44:34 +00:00
|
|
|
|
|
2017-03-22 20:46:54 +00:00
|
|
|
|
- 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.
|
|
|
|
|
- SAX (streamed) reading of XML files and strings to minimize memory usage.
|
|
|
|
|
- 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.
|
2003-06-15 00:44:34 +00:00
|
|
|
|
|
2017-03-22 20:46:54 +00:00
|
|
|
|
Mini-XML doesn't do validation or other types of processing on the data
|
|
|
|
|
based upon schema files or other sources of definition information.
|
2003-06-15 00:44:34 +00:00
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup
|
|
|
|
|
|
|
|
|
|
%build
|
2005-02-26 03:10:23 +00:00
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS" ./configure --enable-shared --prefix=/usr
|
2003-06-15 00:44:34 +00:00
|
|
|
|
|
|
|
|
|
# If we got this far, all prerequisite libraries must be here.
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
# Make sure the RPM_BUILD_ROOT directory exists.
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
make BUILDROOT=$RPM_BUILD_ROOT install
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
|
|
%dir /usr/include
|
2004-05-02 16:04:40 +00:00
|
|
|
|
/usr/include/mxml.h
|
2003-06-15 00:44:34 +00:00
|
|
|
|
%dir /usr/lib
|
2005-02-26 03:10:23 +00:00
|
|
|
|
/usr/lib/*
|
2004-05-02 16:04:40 +00:00
|
|
|
|
%dir /usr/lib/pkgconfig
|
|
|
|
|
/usr/lib/pkgconfig/mxml.pc
|
2003-06-15 00:44:34 +00:00
|
|
|
|
%dir /usr/share/doc/mxml
|
|
|
|
|
/usr/share/doc/mxml/*
|
2003-06-15 01:22:37 +00:00
|
|
|
|
%dir /usr/share/man/man3
|
|
|
|
|
/usr/share/man/man3/*
|