# topdir: ros-humble-pugixml-devel-1.16 Name: ros-humble-pugixml-devel Version: 1.16 Release: 3%{?dist} Summary: C++ XML processing library (pugixml) for ROS Humble License: MIT URL: https://github.com/zeux/pugixml Source0: https://github.com/zeux/pugixml/archive/refs/tags/v1.16.tar.gz#/ros-humble-pugixml-devel-1.16.tar.gz Group: Development/Libraries Packager: openEuler Builder BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ %description pugixml is a C++ XML processing library, which consists of a DOM-like interface with rich traversal/modification capabilities, an extremely fast XML parser which constructs the DOM tree from an XML file/buffer, and an XPath 1.0 implementation for complex data-driven tree queries. Full Unicode support is also available with Unicode interface variants and conversions between different Unicode encodings. This package provides development files and the shared library for use with ROS Humble. %prep %autosetup -n %{name}-%{version} %build mkdir -p build cd build cmake .. \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \ -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir} \ -DCMAKE_C_FLAGS="%{optflags}" \ -DCMAKE_CXX_FLAGS="%{optflags}" \ -DBUILD_SHARED_LIBS=ON \ -DPUGIXML_BUILD_TESTS=OFF \ -DPUGIXML_INSTALL=ON %make_build %install cd build %make_install %files %license LICENSE.md %doc README.md %{_libdir}/libpugixml.so.* %{_libdir}/libpugixml.so %{_includedir}/pugiconfig.hpp %{_includedir}/pugixml.hpp %{_libdir}/cmake/pugixml/ %{_libdir}/pkgconfig/pugixml.pc %changelog * Mon Oct 12 2026 openEuler Builder - 1.16-3 - Pass %%{optflags} to cmake via CMAKE_C_FLAGS/CMAKE_CXX_FLAGS so the compiler emits debug symbols (-g), fixing "Empty %files file debugsourcefiles.list" error from auto-generated debugsource subpackage * Mon Oct 12 2026 openEuler Builder - 1.16-2 - Fix %build: replace inconsistent %cmake/%cmake_build/%cmake_install macros with manual out-of-tree build to avoid "is not a directory" error on aarch64 * Mon Oct 12 2026 openEuler Builder - 1.16-1 - Initial package