On Wed, 2018-01-24 at 18:39 +0100, Michael Cronenworth wrote:
diff --git a/kodi.spec b/kodi.spec
index 1691e9c..5faf34c 100644
--- a/kodi.spec
+++ b/kodi.spec
@@ -4,11 +4,22 @@
# use the line below for pre-releases
#global DIRVERSION %{version}%{PRERELEASE}
%global _hardened_build 1
-%global _with_dvd 0
+
+%if (0%{?fedora} > 27)
+#Rawhide has stopped defining this correctly
+%global python_sitelib %(%{__python} -c "from distutils.sysconfig
import get_python_lib; print(get_python_lib())")
+%endif
I think you don't need this scriptlet you may use python2_sitelib
instead
+# We support hte following options:
+# --with,
+# * dvd - Include optical drive support and DVD decryption
+#
+# Default: Do not ship DVD decryption for legal reasons
+%bcond_with dvd 0
Should be only:
%bcond_with dvd
If we want included dvd by default you may use:
%bcond_without dvd
%bcond_with dvd ( means that if we use --with dvd will work )
%bcond_without dvd ( means that if we use --without dvd will work )
@@ -406,7 +409,7 @@ fi
%files eventclients
%license copying.txt LICENSE.GPL
-%python_sitelib/kodi
+%{python_sitelib}/kodi
you may use python2_sitelib instead (I guess)
best regards,
--
Sérgio M. B.