--- /dev/null
+--- 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)
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
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
APPVERSION="%{version}"
echo "#define APPVERSION ${APPVERSION##*.}" > appversion.h