summaryrefslogtreecommitdiff
path: root/ros-humble-pugixml-devel.spec
diff options
context:
space:
mode:
Diffstat (limited to 'ros-humble-pugixml-devel.spec')
-rw-r--r--ros-humble-pugixml-devel.spec19
1 files changed, 15 insertions, 4 deletions
diff --git a/ros-humble-pugixml-devel.spec b/ros-humble-pugixml-devel.spec
index 816a555..09e81ea 100644
--- a/ros-humble-pugixml-devel.spec
+++ b/ros-humble-pugixml-devel.spec
@@ -1,7 +1,7 @@
# topdir: ros-humble-pugixml-devel-1.16
Name: ros-humble-pugixml-devel
Version: 1.16
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: C++ XML processing library (pugixml) for ROS Humble
License: MIT
@@ -12,6 +12,7 @@ Group: Development/Libraries
Packager: openEuler Builder <builder@openeuler.org>
BuildRequires: cmake
+BuildRequires: gcc
BuildRequires: gcc-c++
%description
@@ -29,14 +30,20 @@ ROS Humble.
%autosetup -n %{name}-%{version}
%build
-%cmake \
+mkdir -p build
+cd build
+cmake .. \
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
+ -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
+ -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir} \
-DBUILD_SHARED_LIBS=ON \
-DPUGIXML_BUILD_TESTS=OFF \
-DPUGIXML_INSTALL=ON
-%cmake_build
+%make_build
%install
-%cmake_install
+cd build
+%make_install
%files
%license LICENSE.md
@@ -49,5 +56,9 @@ ROS Humble.
%{_libdir}/pkgconfig/pugixml.pc
%changelog
+* Mon Oct 12 2026 openEuler Builder <builder@openeuler.org> - 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 <builder@openeuler.org> - 1.16-1
- Initial package