]> git.pld-linux.org Git - packages/libdecaf.git/commitdiff
- added cmake patch, fix export file and include paths auto/th/libdecaf-1.0.0-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Sep 2020 07:46:21 +0000 (09:46 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 26 Sep 2020 07:46:21 +0000 (09:46 +0200)
libdecaf-cmake.patch [new file with mode: 0644]
libdecaf.spec

diff --git a/libdecaf-cmake.patch b/libdecaf-cmake.patch
new file mode 100644 (file)
index 0000000..ae9409c
--- /dev/null
@@ -0,0 +1,28 @@
+Recent cmake seems not to populate INTERFACE_INCLUDE_DIRECTORIES when using target_include_directories with empty path list.
+
+Drop duplicate "decaf" from includes path.
+
+--- libdecaf-1.0.0/cmake/DecafConfig.cmake.in.orig     2018-06-06 00:25:08.000000000 +0200
++++ libdecaf-1.0.0/cmake/DecafConfig.cmake.in  2020-09-26 09:22:59.720744590 +0200
+@@ -42,9 +42,7 @@
+               endif()
+       endif()
+ endif()
+-get_target_property(DECAF_INCLUDE_DIRS ${DECAF_TARGETNAME} INTERFACE_INCLUDE_DIRECTORIES)
+-list(INSERT DECAF_INCLUDE_DIRS 0 "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
+-list(REMOVE_DUPLICATES DECAF_INCLUDE_DIRS)
++set(DECAF_INCLUDE_DIRS "@CMAKE_INSTALL_FULL_INCLUDEDIR@")
+ set(DECAF_CPPFLAGS @DECAF_CPPFLAGS@)
+ set(DECAF_FOUND 1)
+--- libdecaf-1.0.0/src/CMakeLists.txt.orig     2018-06-06 00:25:08.000000000 +0200
++++ libdecaf-1.0.0/src/CMakeLists.txt  2020-09-26 09:39:00.252207612 +0200
+@@ -119,7 +119,7 @@
+ endif()
+ install(DIRECTORY ${GSOURCE_PATH}/include/
+-      DESTINATION include/decaf
++      DESTINATION include
+       FILES_MATCHING PATTERN "*.h*"
+       PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
+ )
index 81105840e4e33747995c9cdd31a667e9a0d0876f..e77d9e79f239d1e466a37ba7c2670ade4c8f9df3 100644 (file)
@@ -11,7 +11,7 @@ License:      MIT
 Group:         Libraries
 Source0:       http://downloads.sourceforge.net/ed448goldilocks/%{name}-%{version}.tgz
 # Source0-md5: 48b57dc6ff6be56930f0be2a5722a70e
-#Patch0:       %{name}-what.patch
+Patch0:                %{name}-cmake.patch
 URL:           http://ed448goldilocks.sourceforge.net/
 BuildRequires: cmake >= 3.0
 BuildRequires: doxygen
@@ -53,6 +53,7 @@ Statyczna biblioteka decaf.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
@@ -83,6 +84,8 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libdecaf.so
 %{_includedir}/decaf
+%{_includedir}/decaf.h
+%{_includedir}/decaf.hxx
 %dir %{_datadir}/decaf
 %{_datadir}/decaf/cmake
 
This page took 0.099045 seconds and 4 git commands to generate.