[packages/ka6-kopeninghours] correct cmake var name for boost include dirs
atler
atler at pld-linux.org
Sat Feb 8 13:54:30 CET 2025
commit ff2cbfe3d4f25f464d5025f4ee39942a1be67262
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Feb 8 13:03:29 2025 +0100
correct cmake var name for boost include dirs
boost-cmake.patch | 11 +++++++++++
ka6-kopeninghours.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/ka6-kopeninghours.spec b/ka6-kopeninghours.spec
index 670d2ea..40ac965 100644
--- a/ka6-kopeninghours.spec
+++ b/ka6-kopeninghours.spec
@@ -13,6 +13,7 @@ License: GPL v2+/LGPL v2.1+
Group: X11/Libraries
Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
# Source0-md5: 7627273e5384a1d947eb16fbb93b4b8d
+Patch0: boost-cmake.patch
URL: https://community.kde.org/
BuildRequires: Qt6Core-devel >= 5.15.2
BuildRequires: Qt6Network-devel >= 5.15.2
@@ -56,6 +57,7 @@ Pliki nagłówkowe dla programistów używających %{kaname}.
%prep
%setup -q -n %{kaname}-%{version}
+%patch -P0 -p1
# correct python components install dir
sed -i "s:set(_install_dir lib:set(_install_dir %{_libdir}:g" PyKOpeningHours/CMakeLists.txt
diff --git a/boost-cmake.patch b/boost-cmake.patch
new file mode 100644
index 0000000..62d640e
--- /dev/null
+++ b/boost-cmake.patch
@@ -0,0 +1,11 @@
+--- kopeninghours-24.12.1/PyKOpeningHours/CMakeLists.txt.orig 2025-01-02 13:56:05.000000000 +0100
++++ kopeninghours-24.12.1/PyKOpeningHours/CMakeLists.txt 2025-02-08 13:01:58.512649828 +0100
+@@ -22,7 +22,7 @@
+
+ # Set up the libraries and header search paths for this target
+ target_link_libraries(PyKOpeningHours PUBLIC ${Boost_LIBRARIES} ${PYTHON_LIBRARIES} KOpeningHours)
+-target_include_directories(PyKOpeningHours PRIVATE ${Boost_INCLUDE_DIR} ${PYTHON_INCLUDE_DIRS})
++target_include_directories(PyKOpeningHours PRIVATE ${Boost_INCLUDE_DIRS} ${PYTHON_INCLUDE_DIRS})
+
+ set(_install_dir lib/python${PYTHONLIBS_VERSION_MAJOR}.${PYTHONLIBS_VERSION_MINOR}/site-packages)
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ka6-kopeninghours.git/commitdiff/34f9ff9966b7164b20f25d45b8a3e7ced7662cee
More information about the pld-cvs-commit
mailing list