[packages/libdjinterop] - added fix for cmake paths
qboosh
qboosh at pld-linux.org
Sat Sep 28 21:39:30 CEST 2024
commit b3966e7b8a82c04f7a5f3ff275ba386cfdc43da3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 28 21:42:35 2024 +0200
- added fix for cmake paths
libdjinterop-cmake.patch | 11 +++++++++++
libdjinterop.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/libdjinterop.spec b/libdjinterop.spec
index 2cbb3ad..75bf582 100644
--- a/libdjinterop.spec
+++ b/libdjinterop.spec
@@ -8,6 +8,7 @@ Group: Libraries
#Source0Download: https://github.com/xsco/libdjinterop/tags
Source0: https://github.com/xsco/libdjinterop/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 1b9fb484069230302a2beeeb42867a45
+Patch0: %{name}-cmake.patch
URL: https://github.com/xsco/libdjinterop
BuildRequires: boost-devel >= 1.65.1
BuildRequires: cmake >= 3.10
@@ -50,6 +51,7 @@ Pliki nagłówkowe biblioteki DjInterop.
%prep
%setup -q
+%patch0 -p1
%build
install -d build
diff --git a/libdjinterop-cmake.patch b/libdjinterop-cmake.patch
new file mode 100644
index 0000000..babfcf0
--- /dev/null
+++ b/libdjinterop-cmake.patch
@@ -0,0 +1,11 @@
+--- libdjinterop-0.21.0/CMakeLists.txt.orig 2024-04-04 21:50:46.000000000 +0200
++++ libdjinterop-0.21.0/CMakeLists.txt 2024-09-28 21:16:12.360796151 +0200
+@@ -212,7 +212,7 @@ endif()
+
+ # CMake package config export.
+ include(CMakePackageConfigHelpers)
+-set(DJINTEROP_INSTALL_CMAKEDIR "lib/cmake/DjInterop")
++set(DJINTEROP_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/DjInterop")
+ install(EXPORT DjInteropTargets
+ FILE DjInteropTargets.cmake
+ NAMESPACE DjInterop::
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libdjinterop.git/commitdiff/b3966e7b8a82c04f7a5f3ff275ba386cfdc43da3
More information about the pld-cvs-commit
mailing list