From 9d400a4db438d85bd6e7c19349b15c6c5e31d044 Mon Sep 17 00:00:00 2001 From: Martin Gansser Date: Aug 18 2019 08:58:54 +0000 Subject: * Revert --embed flag --- diff --git a/vdr-epg-daemon.spec b/vdr-epg-daemon.spec index 4b321a5..c76d6f0 100644 --- a/vdr-epg-daemon.spec +++ b/vdr-epg-daemon.spec @@ -113,11 +113,13 @@ sed -i \ epglv/src/epglv.h ## Add --embed flag for python 3.8 Support -%if 0%{?fedora} >= 31 -sed -i -e 's|python-config --libs|python3-config --libs --embed|' Makefile -#sed -i -e 's|pkg-config --cflags --libs|pkg-config python3.8 --cflags --libs|' Makefile -sed -i -e 's|python-config|python3-config|' Make.config -%endif +#if 0%{?fedora} >= 31 +sed -i -e 's:$(shell python-config --libs):$(shell python3-config --libs --embed || python3-config --libs):' Makefile +sed -i -e 's:$(shell pkg-config --cflags --libs jansson):$(shell pkg-config python3.8-embed --cflags --libs jansson || pkg-config python3.8 --cflags --libs jansson):' Makefile +sed -i -e 's:$(shell pkg-config --libs libsystemd):$(shell pkg-config python3.8-embed --libs libsystemd || pkg-config python3.8 --libs libsystemd):' Makefile +sed -i -e 's:$(shell pkg-config --libs libsystemd-daemon):$(shell pkg-config python3.8-embed --libs libsystemd-daemon || pkg-config python3.8 --libs libsystemd-daemon):' Makefile +#sed -i -e 's:$(shell python-config --includes):$(shell python3-config --includes --embed || python3-config --includes):' Make.config +#endif %build %make_build