2006-12-19 00:15:51 +01:00
|
|
|
#
|
2007-06-08 00:13:26 +02:00
|
|
|
# spec file for package expat (Version 2.0.1)
|
2006-12-19 00:15:51 +01:00
|
|
|
#
|
2010-01-08 17:30:06 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-19 00:15:51 +01:00
|
|
|
#
|
2008-11-02 15:39:25 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-04-10 14:11:39 +02:00
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
Name: expat
|
2007-06-08 00:13:26 +02:00
|
|
|
Version: 2.0.1
|
2010-01-08 17:30:06 +01:00
|
|
|
Release: 93
|
2006-12-19 00:15:51 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2009-10-30 17:30:11 +01:00
|
|
|
License: MIT License (or similar)
|
2008-04-10 14:11:39 +02:00
|
|
|
Url: http://expat.sourceforge.net/
|
2008-11-02 15:39:25 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: expat-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2006-12-19 00:15:51 +01:00
|
|
|
Summary: XML Parser Toolkit
|
|
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
|
|
Source1: %{name}faq.html
|
2010-01-08 17:30:06 +01:00
|
|
|
Source2: baselibs.conf
|
2009-10-30 17:30:11 +01:00
|
|
|
Patch0: %{name}-CVE-2009-2625.patch
|
2009-12-08 10:11:30 +01:00
|
|
|
Patch1: %{name}-CVE-2009-3560.patch
|
2006-12-19 00:15:51 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-04-23 19:05:43 +02:00
|
|
|
BuildRequires: gcc-c++
|
2006-12-19 00:15:51 +01:00
|
|
|
|
|
|
|
%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).
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-04-27 16:43:19 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
James Clark <jjc@jclark.com>
|
|
|
|
|
|
|
|
%package -n libexpat1
|
2009-10-30 17:30:11 +01:00
|
|
|
License: MPL ..
|
2007-04-27 16:43:19 +02:00
|
|
|
Summary: XML Parser Toolkit
|
|
|
|
Group: Development/Libraries/C and C++
|
2008-11-02 15:39:25 +01:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: expat-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-04-27 16:43:19 +02:00
|
|
|
|
|
|
|
%description -n libexpat1
|
|
|
|
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>
|
|
|
|
|
|
|
|
%package -n libexpat-devel
|
2009-10-30 17:30:11 +01:00
|
|
|
License: MPL ..
|
2007-04-27 16:43:19 +02:00
|
|
|
Summary: XML Parser Toolkit
|
|
|
|
Group: Development/Libraries/C and C++
|
2009-04-02 17:23:53 +02:00
|
|
|
Requires: libexpat1 = %{version} glibc-devel
|
2007-04-27 16:43:19 +02:00
|
|
|
|
|
|
|
%description -n libexpat-devel
|
|
|
|
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).
|
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
James Clark <jjc@jclark.com>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2009-10-30 17:30:11 +01:00
|
|
|
%patch0
|
2009-12-08 10:11:30 +01:00
|
|
|
%patch1
|
2006-12-19 00:15:51 +01:00
|
|
|
cp %{S:1} .
|
2007-06-08 00:13:26 +02:00
|
|
|
rm -f examples/*.dsp
|
2006-12-19 00:15:51 +01:00
|
|
|
|
|
|
|
%build
|
2009-04-02 17:23:53 +02:00
|
|
|
%configure --disable-static --with-pic --libdir=/%{_lib}
|
|
|
|
%{__make} %{?jobs:-j%jobs}
|
2006-12-19 00:15:51 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
rm doc/xmlwf.1
|
2007-07-27 15:34:45 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
# move .so symlink to /usr
|
2009-04-02 17:23:53 +02:00
|
|
|
%{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/lib%{name}.so) %{buildroot}%{_libdir}/lib%{name}.so
|
|
|
|
%{__rm} -v %{buildroot}/%{_lib}/lib%{name}.so
|
2007-07-27 15:34:45 +02:00
|
|
|
# remove .la file
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libexpat.la
|
2006-12-19 00:15:51 +01:00
|
|
|
|
2009-04-02 17:23:53 +02:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2009-04-02 17:23:53 +02:00
|
|
|
%post -n libexpat1 -p /sbin/ldconfig
|
2007-06-08 00:13:26 +02:00
|
|
|
|
2009-04-02 17:23:53 +02:00
|
|
|
%postun -n libexpat1 -p /sbin/ldconfig
|
2007-06-08 00:13:26 +02:00
|
|
|
|
2006-12-19 00:15:51 +01:00
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
2007-04-27 16:43:19 +02:00
|
|
|
%doc COPYING Changes README examples expatfaq.html
|
|
|
|
%doc doc/expat.png doc/reference.html doc/style.css doc/valid-xhtml10.png
|
2006-12-19 00:15:51 +01:00
|
|
|
%doc %{_mandir}/man?/*
|
2007-04-27 16:43:19 +02:00
|
|
|
%{_bindir}/xmlwf
|
|
|
|
|
|
|
|
%files -n libexpat1
|
|
|
|
%defattr(-, root, root)
|
2007-07-27 15:34:45 +02:00
|
|
|
/%{_lib}/libexpat.so.*
|
2007-04-27 16:43:19 +02:00
|
|
|
|
|
|
|
%files -n libexpat-devel
|
|
|
|
%defattr(-, root, root)
|
2006-12-19 00:15:51 +01:00
|
|
|
%{_includedir}/*
|
2007-04-27 16:43:19 +02:00
|
|
|
%{_libdir}/libexpat.so
|
2006-12-19 00:15:51 +01:00
|
|
|
|
2007-04-27 16:43:19 +02:00
|
|
|
%changelog
|