SHA256
1
0
forked from pool/xerces-c
xerces-c/xerces-c.spec
Dirk Mueller e76dad130f - update to 3.2.5:
* [XERCESC-2163] - XercesMessages_en_US.cat is installed to
    wrong directory
  * [XERCESC-2188] - Use-after-free on external DTD scan
  * [XERCESC-2242] - Non-default curl location breaks autoconf link detection
  * Custom HTTP headers missing with CURL NetAccessor
    + ICUTransService and IconvGNUransService CAN NOT deal with
    + Problem in prefix parsing while creating Documnet, Element,
    + Whitespace in xsi:type
    + XMLUTF8Transcoder::transcodeTo fails with an exception when
      transcoding single characters that require 3 or more bytes as
    + XMLUni::fgXercesLoadSchema[] is not null-terminated in
    + XMLURL.cpp: isHexDigit() and xlatHexDigit() accept whole
    + Xerces livelocks while reading external DTD if socket closes
    + Memory leak occurs if an exception is thrown in
    + DOMDocumentImpl:: getPooledNString(const XMLCh *in,
    + OutOfMemoryException being thrown on creation of an LS
    + TranscodeToStr::transcode throws an exception when
    + ContentSpecNode::getMaxTotalRange: Operator precedence
    + Add support for GNU/Hurd by using POSIX.1-2001 and
    + enumeration value ‘Loop’ not handled in switch
    + Xerces 3.1.1 Xerces.Lib fails to build with new Visual
    + Code analysis revealed multiple potential NULL derefence
    + MacOSUnicodeConverter.cpp: ISO C++ forbids comparison
- Add baselib.conf in order to build -32Bit.
  * Check that we have non-NULL host before trying to connect (XERCESC-1920).
  * Recover from the mismatching start/end even count which may happen when we continue parsing an invalid document (XERCESC-1919).
  * If the transcoder doesn't process any input, throw an exception (XERCESC-1916).
  * Delay the recursive expansion of includes until the document fragment has been placed in the final location (XERCESC-1918).
  * The code formatting a content model was skipping the cardinality indicators (*, +, ?) (XERCESC-1914).

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/xerces-c?expand=0&rev=36
2023-12-27 11:53:59 +00:00

127 lines
4.1 KiB
RPMSpec

#
# spec file for package xerces-c
#
# Copyright (c) 2023 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libname libxerces-c-3_2
Name: xerces-c
Version: 3.2.5
Release: 0
Summary: A Validating XML Parser
License: Apache-2.0
URL: https://xerces.apache.org/xerces-c/
Source0: https://www.apache.org/dist/xerces/c/3/sources/%{name}-%{version}.tar.gz
Source1: https://www.apache.org/dist/xerces/c/3/sources/%{name}-%{version}.tar.gz.asc
Source2: %{name}.keyring
Source3: baselibs.conf
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(libcurl)
%description
Xerces-C is a validating XML parser written in a portable subset of
C++. Xerces-C makes it easy to give your application the ability to
read and write XML data. A shared library is provided for parsing,
generating, manipulating, and validating XML documents. Xerces-C is
faithful to the XML 1.0 recommendation and associated standards ( DOM
1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces).
%package doc
Summary: Documentation for %{name}
%description doc
Xerces-C is a validating XML parser written in a portable subset of
C++. Xerces-C makes it easy to give your application the ability to
read and write XML data. A shared library is provided for parsing,
generating, manipulating, and validating XML documents. Xerces-C is
faithful to the XML 1.0 recommendation and associated standards ( DOM
1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces).
This package contains just documentation.
%package -n %{libname}
Summary: Shared libraries for Xerces-c - a validating XML parser
Provides: Xerces-c = %{version}
Obsoletes: Xerces-c < %{version}
%description -n %{libname}
Xerces-C is a validating XML parser written in a portable subset of
C++. Xerces-C makes it easy to give your application the ability to
read and write XML data. A shared library is provided for parsing,
generating, manipulating, and validating XML documents. Xerces-C is
faithful to the XML 1.0 recommendation and associated standards ( DOM
1.0, DOM 2.0. SAX 1.0, SAX 2.0, Namespaces).
This package contains shared libraries.
%package -n libxerces-c-devel
Summary: A validating XML parser - Development Files
Requires: %{libname} = %{version}
Provides: Xerces-c-devel = %{version}
Obsoletes: Xerces-c-devel < %{version}
Provides: libXerces-c-devel = %{version}
Obsoletes: libXerces-c-devel < %{version}
%description -n libxerces-c-devel
Xerces-C is a validating XML parser written in a portable subset of
C++. Xerces-C makes it easy to give your application the ability to
read and write XML data. A shared library is provided for parsing,
generating, manipulating, and validating XML documents.
This package includes files needed for development with Xerces-c
%prep
%setup -q -n xerces-c-%{version}
%build
find . -type d -name .svn -exec rm -Rf "{}" "+"
%configure \
--enable-netaccessor-curl \
--disable-static \
--disable-silent-rules
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
rm doc/Makefile*
%fdupes -s doc
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files
%license LICENSE
%doc CREDITS KEYS NOTICE README
%{_bindir}/*
%files doc
%license LICENSE
%doc CREDITS KEYS NOTICE README
%doc doc/*
%files -n %{libname}
%{_libdir}/libxerces-c-*.so
%files -n libxerces-c-devel
%{_includedir}/xercesc
%{_libdir}/libxerces-c.so
%{_libdir}/pkgconfig/xerces-c.pc
%changelog