[packages/libdnf] - fixed .pc file, release 2

qboosh qboosh at pld-linux.org
Sun Oct 11 20:06:15 CEST 2026


commit f7306382f2d4061c153a5eebe8e699b4eac35dfc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Oct 11 20:06:48 2026 +0200

    - fixed .pc file, release 2

 libdnf.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/libdnf.spec b/libdnf.spec
index 4c773f3..bedd3c2 100644
--- a/libdnf.spec
+++ b/libdnf.spec
@@ -10,7 +10,7 @@ Summary:	Library providing simplified C and Python API to libsolv
 Summary(pl.UTF-8):	Biblioteka zapewniająca uproszczone API C i Pythona do libsolv
 Name:		libdnf
 Version:	0.76.0
-Release:	1
+Release:	2
 License:	LGPL v2.1+
 Group:		Libraries
 #Source0Download: https://github.com/rpm-software-management/libdnf/releases
@@ -191,10 +191,12 @@ Wiązania Pythona 3.x do biblioteki libdnf.
 %{?with_rpm5:%patch0 -p1}
 
 %build
+# .pc file generation expects relative CMAKE_INSTALL_LIBDIR
 export CFLAGS="%{rpmcflags} -D_GNU_SOURCE}"
 install -d build %{?with_python2:build-py2}
 cd build
 %cmake .. \
+	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
 	%{?with_rhsm:-DENABLE_RHSM_SUPPORT=ON} \
 	-DPYTHON_DESIRED=3
 
@@ -204,6 +206,7 @@ cd build
 %if %{with python3}
 cd ../build-py2
 %cmake .. \
+	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
 	%{?with_rhsm:-DENABLE_RHSM_SUPPORT=ON} \
 	-DPYTHON_DESIRED=2
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libdnf.git/commitdiff/f7306382f2d4061c153a5eebe8e699b4eac35dfc



More information about the pld-cvs-commit mailing list