always build with GPIO support
authorJan Palus <atler@pld-linux.org>
Thu, 8 Apr 2021 19:55:56 +0000 (21:55 +0200)
committerJan Palus <atler@pld-linux.org>
Thu, 8 Apr 2021 22:23:47 +0000 (00:23 +0200)
domoticz-gpio.patch [new file with mode: 0644]
domoticz.spec

diff --git a/domoticz-gpio.patch b/domoticz-gpio.patch
new file mode 100644 (file)
index 0000000..f9bb3c8
--- /dev/null
@@ -0,0 +1,16 @@
+--- domoticz-2020.2/CMakeLists.txt.orig        2021-04-08 21:42:12.847131340 +0200
++++ domoticz-2020.2/CMakeLists.txt     2021-04-08 21:52:40.727278201 +0200
+@@ -718,12 +718,7 @@
+ ENDIF(OpenZWave)
+-IF(EXISTS /sys/class/gpio)
+-  message(STATUS "GPIO is available")
+-  add_definitions(-DWITH_GPIO)
+-ELSE()
+-  message(STATUS "GPIO is not available")
+-ENDIF()
++add_definitions(-DWITH_GPIO)
+ find_path(TELLDUSCORE_INCLUDE NAMES telldus-core.h)
index 7f0a9c446d24b1dd24d0648498fccbe232d81a9b..120a793b90f75c2396ae994976e550de2930fdb9 100644 (file)
@@ -17,6 +17,7 @@ Patch1:               %{name}-openzwave.patch
 Patch2:                %{name}-python.patch
 Patch3:                no-git.patch
 Patch4:                boost-1.73.patch
+Patch5:                %{name}-gpio.patch
 BuildRequires: boost-devel >= 1.66.0
 BuildRequires: cereal-devel
 BuildRequires: cmake >= 3.16.0
@@ -58,6 +59,7 @@ and much more. Notifications/Alerts can be sent to any mobile device
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 APPVERSION="%{version}"
 echo "#define APPVERSION ${APPVERSION##*.}" > appversion.h
This page took 0.039944 seconds and 4 git commands to generate.