From 48175c4d95ba26845beeea7c9819b5f6d6e24437 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 22 Oct 2026 07:53:07 +0000 Subject: automatic import of ros-humble-libspnav-devel --- ros-humble-libspnav-devel.spec | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ros-humble-libspnav-devel.spec') diff --git a/ros-humble-libspnav-devel.spec b/ros-humble-libspnav-devel.spec index bd63049..561cb55 100644 --- a/ros-humble-libspnav-devel.spec +++ b/ros-humble-libspnav-devel.spec @@ -12,6 +12,7 @@ Group: Development/Libraries Packager: openEuler Builder BuildRequires: gcc +BuildRequires: make BuildRequires: libX11-devel %description @@ -34,6 +35,10 @@ libraries, and pkg-config file) for libspnav. # Fix libdir for 64-bit: configure hardcodes 'lib', use system lib dir sed -i "s|^libdir = lib$|libdir = %{_lib}|" Makefile sed -i 's|\${PREFIX}/lib |\${PREFIX}/%{_lib} |' spnav.pc +# configure can't detect version without git / matching dir name; force a +# clean Version in spnav.pc so rpmbuild's pkgconfig Provides don't choke +# on the illegal '<' from the "" fallback. +sed -i "s/^Version:.*/Version: %{version}/" spnav.pc %make_build %install -- cgit v1.2.3