SHA256
1
0
forked from pool/expat
expat/expat.spec
Ismail Dönmez 6858130e3e Accepting request 634952 from home:pmonrealgonzalez:branches:devel:libraries:c_c++
- Version update to 2.2.6 Sun August 12 2018
  * Bug fixes:
    - Avoid doing arithmetic with NULL pointers in XML_GetBuffer
    - Fix 2.2.5 regression with suspend-resume while parsing
      a document like '<root/>'
  * Other changes:
    - Autotools: Fix docbook-related configure syntax error
    - Autotools: Avoid grep option `-q` for Solaris
    - Autotools: Support
      ./configure DOCBOOK_TO_MAN="xmlto man --skip-validation"
    - Autotools: Support DOCBOOK_TO_MAN command which produces
      xmlwf.1 rather than XMLWF.1; also covers case insensitive
      file systems
    - Autotools: Drop -rpath option passed to libtool
    - Autotools: Detect and deny SGML docbook2man as ours is XML
    - Autotools/CMake: Support command db2x_docbook2man as well
    - CMake: Introduce option WARNINGS_AS_ERRORS, defaults to OFF
    - CMake: Introduce option MSVC_USE_STATIC_CRT, defaults to OFF
    - CMake: Introduce option XML_UNICODE and XML_UNICODE_WCHAR_T,
      both defaulting to OFF
    - CMake: Prefer check_symbol_exists over check_function_exists
    - CMake: Create the same pkg-config file as with GNU Autotools
    - CMake: Use GNUInstallDirs module to set proper defaults for
      install directories
    - CMake: Utilize expat_config.h.cmake for XML_DEV_URANDOM
    - Address compiler warnings
    - Fix miscellaneous typos

OBS-URL: https://build.opensuse.org/request/show/634952
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/expat?expand=0&rev=68
2018-09-11 12:12:22 +00:00

114 lines
3.5 KiB
RPMSpec

#
# spec file for package expat
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%global do_profiling 0
%global unversion 2_2_6
Name: expat
Version: 2.2.6
Release: 0
Summary: XML Parser Toolkit
License: MIT
Group: Development/Libraries/C and C++
Url: http://libexpat.github.io
Source0: https://github.com/libexpat/libexpat/releases/download/R_%{unversion}/expat-%{version}.tar.bz2
Source3: https://github.com/libexpat/libexpat/releases/download/R_%{unversion}/expat-%{version}.tar.bz2.asc
Source1: %{name}faq.html
Source2: baselibs.conf
BuildRequires: docbook2x
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkgconfig
%description
Expat is an XML parser library written in C. It is a stream-oriented
parser in which an application registers handlers for things the
parser might find in the XML document (like start tags).
%package -n libexpat1
Summary: XML Parser Toolkit
Group: System/Libraries
%description -n libexpat1
Expat is an XML parser library written in C. It is a stream-oriented
parser in which an application registers handlers for things the
parser might find in the XML document (like start tags).
%package -n libexpat-devel
Summary: Development files for expat, an XML parser toolkit
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libexpat1 = %{version}
%description -n libexpat-devel
Expat is an XML parser library written in C. It is a stream-oriented
parser in which an application registers handlers for things the
parser might find in the XML document (like start tags).
This package contains the development headers for the library found
in libexpat.
%prep
%setup -q
cp %{SOURCE1} .
rm -f examples/*.dsp
%build
%configure \
--disable-silent-rules \
--docdir="%{_docdir}/%{name}" \
--disable-static
%if 0%{?do_profiling}
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}"
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_generate}" LDFLAGS="%{optflags} %{cflags_profile_generate}" check
make %{?_smp_mflags} clean
make %{?_smp_mflags} CFLAGS="%{optflags} %{cflags_profile_feedback}"
%else
make %{?_smp_mflags} CFLAGS="%{optflags}"
%endif
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
make %{?_smp_mflags} check
%post -n libexpat1 -p /sbin/ldconfig
%postun -n libexpat1 -p /sbin/ldconfig
%files
%{_docdir}/%{name}
%doc COPYING README.md expatfaq.html
%doc doc/expat.png doc/reference.html doc/style.css doc/valid-xhtml10.png
%doc examples/elements.c examples/outline.c examples/Makefile.am examples/Makefile.in
%doc AUTHORS Changes
%{_mandir}/man?/*
%{_bindir}/xmlwf
%files -n libexpat1
%{_libdir}/libexpat.so.*
%files -n libexpat-devel
%{_includedir}/*
%{_libdir}/libexpat.so
%{_libdir}/pkgconfig/expat.pc
%changelog