forked from pool/expat
This commit is contained in:
commit
436fb5c765
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
expat-2.0.0.tar.bz2
Normal file
3
expat-2.0.0.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9c1aa83def8425743328bde840940de4576f5716e38e184e1ea61e45adc996e5
|
||||
size 345791
|
123
expat.changes
Normal file
123
expat.changes
Normal file
@ -0,0 +1,123 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 19 12:37:07 CEST 2006 - dmueller@suse.de
|
||||
|
||||
- strip .la file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:30:10 CET 2006 - mls@suse.de
|
||||
|
||||
- converted neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 13 00:21:55 CET 2006 - ro@suse.de
|
||||
|
||||
- fixed file list for debuginfo package (do not pack all of libdir)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 11 17:43:46 CET 2006 - mjancar@suse.cz
|
||||
|
||||
- update to 2.0.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 9 13:25:07 CET 2006 - mjancar@suse.cz
|
||||
|
||||
- update to 2.0 pre release
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 10 11:54:21 CET 2004 - ro@suse.de
|
||||
|
||||
- fixed filelist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 09 16:26:05 CEST 2004 - tcrhak@suse.cz
|
||||
|
||||
- update to 1.95.8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 5 18:28:34 CET 2004 - kukuk@suse.de
|
||||
|
||||
- Build as user
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 05 18:00:24 CET 2004 - tcrhak@suse.cz
|
||||
|
||||
- update to version 1.95.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 18 15:36:28 CET 2003 - tcrhak@suse.cz
|
||||
|
||||
- in expat.h, declare enum XML_Status before using it;
|
||||
put into patch "...-header.diff" [bug #23742]
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 17 18:05:52 CET 2003 - tcrhak@suse.cz
|
||||
|
||||
- updated to version 1.95.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 22 18:21:13 CET 2002 - tcrhak@suse.cz
|
||||
|
||||
- update to version 1.95.5
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 13 15:14:59 CEST 2002 - tcrhak@suse.cz
|
||||
|
||||
- update to version 1.95.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 15:17:43 CET 2002 - tcrhak@suse.cz
|
||||
|
||||
- added parameter --target to configure
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 14 13:25:11 CET 2002 - rvasice@suse.cz
|
||||
|
||||
- use %{_libdir} and %{_lib}
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 20 18:41:35 CET 2001 - rvasice@suse.cz
|
||||
|
||||
- fix URL in spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 15 19:54:16 CEST 2001 - rvasice@suse.cz
|
||||
|
||||
- update to version 1.95.2
|
||||
- spec file cleanup
|
||||
- added DESTDIR
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 14 12:08:01 CEST 2001 - pblaha@suse.cz
|
||||
|
||||
- fixed links for soname of libexpat.so*
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 11 09:03:03 CEST 2001 - cihlar@suse.cz
|
||||
|
||||
- fixed soname of libexpat.so.1.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 5 10:13:20 CET 2001 - pblaha@suse.cz
|
||||
|
||||
- back on stable version 1.2 added build shared libexpat.so
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 4 15:46:21 CET 2001 - pblaha@suse.cz
|
||||
|
||||
- update on 1.95.1 on sourgeforge needed for midgard
|
||||
- new description
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 9 11:01:23 CET 2000 - ke@suse.de
|
||||
|
||||
- Don't "install" symlinks; use "cp"; reported by bs; proposed fix
|
||||
by ro.
|
||||
- Cleanup the spec file: better Group tag; more accurate files list.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 23 14:59:17 CET 1999 - ke@suse.de
|
||||
|
||||
- first SuSE package: version 1.1.
|
||||
- apply Debian patch to build shared libs.
|
||||
- build libexpat.a.
|
||||
|
139
expat.spec
Normal file
139
expat.spec
Normal file
@ -0,0 +1,139 @@
|
||||
#
|
||||
# spec file for package expat (Version 2.0.0)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: expat
|
||||
Version: 2.0.0
|
||||
Release: 22
|
||||
Group: Development/Libraries/C and C++
|
||||
License: MOZILLA PUBLIC LICENSE (MPL/NPL)
|
||||
URL: http://expat.sourceforge.net/
|
||||
Summary: XML Parser Toolkit
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: %{name}faq.html
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
|
||||
%description
|
||||
Expat is an XML 1.0 parser written in C. It aims to be fully
|
||||
conformant. It is currently not a validating XML processor. The current
|
||||
production version of expat can be downloaded from
|
||||
ftp://ftp.jclark.com/pub/xml/expat.zip. The directory xmltok contains a
|
||||
low-level library for tokenizing XML. The interface is documented in
|
||||
xmltok/xmltok.h. The directory xmlparse contains an XML parser library
|
||||
that is built on top of the xmltok library. The interface is documented
|
||||
in xmlparse/xmlparse.h. The directory sample contains a simple example
|
||||
program using this interface. The directory sample/build.bat is a batch
|
||||
file to build the example using Visual C++. The directory xmlwf
|
||||
contains the xmlwf application, which uses the xmlparse library. The
|
||||
arguments to xmlwf are one or more files to check for well-formedness.
|
||||
An option -d dir can be specified. For each well-formed input file, the
|
||||
corresponding canonical XML is written to dir/f, where f is the
|
||||
filename (without any path) of the input file. A -x option causes
|
||||
references to external general entities to be processed. A -s option
|
||||
makes documents that are not stand-alone cause an error (a document is
|
||||
considered stand-alone if it is intrinsically stand-alone because it
|
||||
has no external subset and no references to parameter entities in the
|
||||
internal subset or it is declared as stand-alone in the XML
|
||||
declaration).
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
James Clark <jjc@jclark.com>
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
cp %{S:1} .
|
||||
|
||||
%build
|
||||
CFLAGS="$RPM_OPT_FLAGS" \
|
||||
./configure \
|
||||
--prefix=%{_prefix} \
|
||||
--libdir=%{_libdir} \
|
||||
--mandir=%{_mandir} \
|
||||
--infodir=%{_infodir} \
|
||||
--sysconfdir=%{_sysconfdir} \
|
||||
--target=%{_target_cpu}-suse-linux-gnu
|
||||
make
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
rm doc/xmlwf.1
|
||||
rm $RPM_BUILD_ROOT/%{_libdir}/libexpat.la
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc COPYING Changes README examples expatfaq.html doc/*
|
||||
%doc %{_mandir}/man?/*
|
||||
%{_bindir}/*
|
||||
%{_libdir}/lib*
|
||||
%{_includedir}/*
|
||||
|
||||
%changelog -n expat
|
||||
* Thu Oct 19 2006 - dmueller@suse.de
|
||||
- strip .la file
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- converted neededforbuild to BuildRequires
|
||||
* Fri Jan 13 2006 - ro@suse.de
|
||||
- fixed file list for debuginfo package (do not pack all of libdir)
|
||||
* Wed Jan 11 2006 - mjancar@suse.cz
|
||||
- update to 2.0.0
|
||||
* Mon Jan 09 2006 - mjancar@suse.cz
|
||||
- update to 2.0 pre release
|
||||
* Wed Nov 10 2004 - ro@suse.de
|
||||
- fixed filelist
|
||||
* Mon Aug 09 2004 - tcrhak@suse.cz
|
||||
- update to 1.95.8
|
||||
* Thu Feb 05 2004 - kukuk@suse.de
|
||||
- Build as user
|
||||
* Thu Feb 05 2004 - tcrhak@suse.cz
|
||||
- update to version 1.95.7
|
||||
* Tue Feb 18 2003 - tcrhak@suse.cz
|
||||
- in expat.h, declare enum XML_Status before using it;
|
||||
put into patch "...-header.diff" [bug #23742]
|
||||
* Mon Feb 17 2003 - tcrhak@suse.cz
|
||||
- updated to version 1.95.6
|
||||
* Sun Dec 22 2002 - tcrhak@suse.cz
|
||||
- update to version 1.95.5
|
||||
* Sat Jul 13 2002 - tcrhak@suse.cz
|
||||
- update to version 1.95.4
|
||||
* Thu Mar 28 2002 - tcrhak@suse.cz
|
||||
- added parameter --target to configure
|
||||
* Mon Jan 14 2002 - rvasice@suse.cz
|
||||
- use %%{_libdir} and %%{_lib}
|
||||
* Tue Nov 20 2001 - rvasice@suse.cz
|
||||
- fix URL in spec file
|
||||
* Wed Aug 15 2001 - rvasice@suse.cz
|
||||
- update to version 1.95.2
|
||||
- spec file cleanup
|
||||
- added DESTDIR
|
||||
* Mon May 14 2001 - pblaha@suse.cz
|
||||
- fixed links for soname of libexpat.so*
|
||||
* Fri May 11 2001 - cihlar@suse.cz
|
||||
- fixed soname of libexpat.so.1.2
|
||||
* Fri Jan 05 2001 - pblaha@suse.cz
|
||||
- back on stable version 1.2 added build shared libexpat.so
|
||||
* Thu Jan 04 2001 - pblaha@suse.cz
|
||||
- update on 1.95.1 on sourgeforge needed for midgard
|
||||
- new description
|
||||
* Thu Mar 09 2000 - ke@suse.de
|
||||
- Don't "install" symlinks; use "cp"; reported by bs; proposed fix
|
||||
by ro.
|
||||
- Cleanup the spec file: better Group tag; more accurate files list.
|
||||
* Tue Nov 23 1999 - ke@suse.de
|
||||
- first SuSE package: version 1.1.
|
||||
- apply Debian patch to build shared libs.
|
||||
- build libexpat.a.
|
102
expatfaq.html
Normal file
102
expatfaq.html
Normal file
@ -0,0 +1,102 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
||||
|
||||
<HTML>
|
||||
|
||||
<TITLE>expat FAQ</TITLE>
|
||||
|
||||
<BODY>
|
||||
|
||||
<H1>Frequently Asked Questions about Expat</H1>
|
||||
|
||||
<H4>Where can I get the latest version of expat?</H4>
|
||||
|
||||
<p>The latest version of expat 1.X is available from <A
|
||||
href="ftp://ftp.jclark.com/pub/xml/expat/zip"
|
||||
>ftp://ftp.jclark.com/pub/xml/expat.zip</a>. New versions of expat
|
||||
will be available from <A
|
||||
href="http://expat.sourceforge.net">expat.sourceforge.net</A>.</p>
|
||||
|
||||
<H4>Where can I get help in using expat?</H4>
|
||||
|
||||
<p>Try the xml-dev mailing list (subscribe by mailing to <a
|
||||
href="mailto:majordomo@xml.org&BODY=subscribe%20xml-dev">majordomo@xml.org</a>
|
||||
with the message <code>subscribe xml-dev</code>). Alternatively try
|
||||
the mailing lists hosted by <A
|
||||
href="http://expat.sourceforge.net">sourceforge.net</A>.</P>
|
||||
|
||||
<H4>Where is expat's API documented?</H4>
|
||||
|
||||
<p>In <code>xmlparse/xmlparse.h</code>. There's also an advanced,
|
||||
low-level API you can use which is documented in
|
||||
<code>xmltok/xmltok.h</code>.</p>
|
||||
|
||||
<p>There's also an excellent <a
|
||||
href="http://www.xml.com/pub/1999/09/expat/index.html">article</a>
|
||||
about expat on XML.com by Clark Cooper.</p>
|
||||
|
||||
<H4>Is there a simple example of using expat's API?</H4>
|
||||
|
||||
<p>See <code>sample/elements.c</code></p>
|
||||
|
||||
<H4>How can I get expat to deal with non-ASCII characters?</H4>
|
||||
|
||||
<P>By default, expat assumes that documents are encoded in UTF-8. In
|
||||
UTF-8, ASCII characters are represented by a single byte as they would
|
||||
be in ASCII, but non-ASCII characters are represented by a sequence of
|
||||
two or more bytes all with the 8th bit set. The encoding most widely
|
||||
used for European languages is ISO 8859-1 which is not compatible with
|
||||
UTF-8. To use this encoding, expat must be told either by supplying
|
||||
an argument of <code>"iso-8859-1"</code> to
|
||||
<code>XML_ParserCreate</code>, or by starting the document with
|
||||
<code><?xml version="1.0" encoding="iso-8859-1"?></code>.</P>
|
||||
|
||||
<H4>What encodings does expat support?</H4>
|
||||
|
||||
<P>expat has built in support for the following encodings:</P>
|
||||
|
||||
<ul>
|
||||
<li><code>utf-8</code></li>
|
||||
<li><code>utf-16</code></li>
|
||||
<li><code>iso-8859-1</code></li>
|
||||
<li><code>us-ascii</code></li>
|
||||
</ul>
|
||||
|
||||
<P>Additional encodings can be supported by using
|
||||
<code>XML_SetUnknownEncodingHandler</code>.</P>
|
||||
|
||||
<H4>How can I get expat to validate my XML documents?</H4>
|
||||
|
||||
<p>You can't. expat is not a validating parser.</p>
|
||||
|
||||
<H4>How can I get expat to read my DTD?</H4>
|
||||
|
||||
<p>Compile with <code>-DXML_DTD</code> and call
|
||||
<code>XML_SetParamEntityParsing</code>.</p>
|
||||
|
||||
<H4>How can I get expat to recover from errors?</H4>
|
||||
|
||||
<p>You can't. All well-formedness errors stop processing. Note that
|
||||
the XML Recommendation does not permit conforming XML processors to
|
||||
continue normal processing after a fatal error.</p>
|
||||
|
||||
<H4>How do I get at the characters between tags?</H4>
|
||||
|
||||
<p>Use <code>XML_SetCharacterDataHandler</code>.</p>
|
||||
|
||||
<H4>How can I minimize the size of expat?</H4>
|
||||
|
||||
<p>Compile with <code>-DXML_MIN_SIZE</code>. With Visual C++, use the
|
||||
<code>Win32 MinSize</code> configuration: this creates an
|
||||
<code>xmlparse.dll</code> that does not require
|
||||
<code>xmltok.dll</code>.</p>
|
||||
|
||||
<ADDRESS>
|
||||
|
||||
<A HREF="mailto:jjc@jclark.com">James Clark</A>
|
||||
|
||||
</ADDRESS>
|
||||
|
||||
</BODY>
|
||||
|
||||
</HTML>
|
Loading…
Reference in New Issue
Block a user