From: Jan Palus Date: Thu, 8 Apr 2021 19:55:56 +0000 (+0200) Subject: always build with GPIO support X-Git-Tag: auto/th/domoticz-2021.1-1~7 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=c8cb4cfeab4dab35725b38a87bcce33d063b05fb;p=packages%2Fdomoticz.git always build with GPIO support --- diff --git a/domoticz-gpio.patch b/domoticz-gpio.patch new file mode 100644 index 0000000..f9bb3c8 --- /dev/null +++ b/domoticz-gpio.patch @@ -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) diff --git a/domoticz.spec b/domoticz.spec index 7f0a9c4..120a793 100644 --- a/domoticz.spec +++ b/domoticz.spec @@ -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