Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 33662212
en ru br
ALT Linux repos
5.0: 2.23.2-alt1
4.1: 2.20.0-alt1
4.0: 2.18.0-alt1

Group :: System/Libraries
RPM: libxml++2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_disable snapshot

%define _name libxml++
%define ver_major 2.42
%define api_ver 2.6

%def_enable doc
%def_enable check

Name: %{_name}2
Version: %ver_major.2
Release: alt1

Summary: C++ wrapper for the libxml2 XML parser library
Group: System/Libraries
License: LGPLv2+

%if_disabled snapshot
Source: %_name-%version.tar

BuildRequires(pre): rpm-macros-meson >= 0.55
BuildRequires: meson mm-common >= 1.0.4 gcc-c++
BuildRequires: libxml2-devel >= 2.7.7 libglibmm-devel >= 2.32.0
%{?_enable_doc:BuildRequires: doxygen graphviz docbook-style-xsl xsltproc}

libxml++ is a C++ wrapper for the libxml2 XML parser library.
It has SAX and DOM-like APIs, but does not attempt to conform exactly to
the DOM specification. Its API is simpler than the underlying libxml2 C API.

%package devel
Summary: Development files for %name
Group: Development/C++
Requires: %name = %EVR

%description devel
This package contains the headers and libraries for libxml++ development.

%package devel-doc
Summary: Development documentation for %name
Group: Development/C++
BuildArch: noarch
Conflicts: %name-devel < %version

%description devel-doc
This package contains the development documentation for libxml++ library.

%setup -n %_name-%version

%ifarch %e2k
%add_optflags -std=gnu++11
%{?_enable_snapshot:mm-common-prepare --force --copy}
%meson \
   %{?_enable_snapshot:-Denable-maintainer-mode=true} \


export LD_LIBRARY_PATH=%buildroot%_libdir


%files devel

%if_enabled doc
%files devel-doc


Full changelog you can see here

design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin