forked from pool/pugixml
666057d3a1
* New integer parsing/formatting implementation + Functions that convert from and to integers (e.g. as_int/set_value) do not rely on CRT any more. + New implementation is 3-5x faster and is always correct wrt overflow or underflow. This is a behavior change - where previously as_uint() would return UINT_MAX on a value "-1", it now returns 0. * New features + XPath objects (xpath_query, xpath_node_set, xpath_variable_set) are now movable if your compiler supports C++11. Additionally, xpath_variable_set is copyable. + Added format_indent_attributes that makes the resulting XML friendlier to line diff/merge tools. + Added a variant of xml_node::attribute function with a hint that can improve lookup performance. + Custom allocation functions are now allowed (but not required) to throw instead of returning a null pointer. * Bug fixes + Fix Clang 3.7 crashes in out-of-memory cases (C++ DR 1748) + Fix xpath_node_set assignment to provide strong exception guarantee + Fix saving for custom xml_writer implementations that can throw from write() - Add pugixml-config.patch to enable long long support, works better than enabling via build flags. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/pugixml?expand=0&rev=7
100 lines
2.9 KiB
RPMSpec
100 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package pugixml
|
|
#
|
|
# Copyright (c) 2015 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/
|
|
#
|
|
|
|
|
|
%define _libname libpugixml1
|
|
Name: pugixml
|
|
Version: 1.7
|
|
Release: 0
|
|
Summary: Light-weight C++ XML Processing Library
|
|
License: MIT
|
|
Group: System/Libraries
|
|
Url: http://pugixml.org/
|
|
Source0: https://github.com/zeux/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
Patch1: pugixml-config.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
pugixml is a light-weight C++ XML processing library. It features:
|
|
|
|
- DOM-like interface with rich traversal/modification capabilities
|
|
- Extremely fast non-validating XML parser which constructs the DOM tree from
|
|
an XML file/buffer
|
|
- XPath 1.0 implementation for complex data-driven tree queries
|
|
- Full Unicode support with Unicode interface variants and automatic encoding
|
|
conversions
|
|
|
|
The library is extremely portable and easy to integrate and use.
|
|
|
|
%package devel
|
|
Summary: Development Files for pugixml
|
|
Group: Development/Libraries/C and C++
|
|
Requires: %{_libname} = %{version}
|
|
|
|
%description devel
|
|
This package provides development libraries and headers needed to build
|
|
software using pugixml.
|
|
|
|
%package -n %{_libname}
|
|
Summary: Light-weight C++ XML Processing Library
|
|
Group: System/Libraries
|
|
|
|
%description -n %{_libname}
|
|
pugixml is a light-weight C++ XML processing library. It features:
|
|
|
|
- DOM-like interface with rich traversal/modification capabilities
|
|
- Extremely fast non-validating XML parser which constructs the DOM tree from
|
|
an XML file/buffer
|
|
- XPath 1.0 implementation for complex data-driven tree queries
|
|
- Full Unicode support with Unicode interface variants and automatic encoding
|
|
conversions
|
|
|
|
The library is extremely portable and easy to integrate and use.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
|
|
%build
|
|
cd scripts
|
|
%cmake
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
cd scripts
|
|
%cmake_install
|
|
|
|
%post -n %{_libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{_libname} -p /sbin/ldconfig
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%doc readme.txt docs/*
|
|
%{_includedir}/*.hpp
|
|
%{_libdir}/cmake/*
|
|
%{_libdir}/*.so
|
|
|
|
%files -n %{_libname}
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/libpugixml.so.*
|
|
|
|
%changelog
|