Summary: Extras Plugins for DNF
Name: dnf-plugins-extras
-Version: 4.0.13
-Release: 4
+Version: 4.0.16
+Release: 1
License: GPL v2+
Source0: https://github.com/rpm-software-management/dnf-plugins-extras/archive/%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: 27dbded5f661fb9d9a4741c34ffc7816
+# Source0-md5: 22c566100be065e770a6b0032f8a4ad3
Patch0: install.patch
URL: https://github.com/rpm-software-management/dnf-plugins-extras
BuildRequires: cmake
FIND_PACKAGE (PythonInterp 3 EXACT REQUIRED)
+if (NOT PYTHON_INSTALL_DIR)
- EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from distutils import sysconfig; stdout.write(sysconfig.get_python_lib())" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
+ EXECUTE_PROCESS(COMMAND ${PYTHON_EXECUTABLE} -c "from sys import stdout; from sysconfig import get_path; stdout.write(get_path('purelib'))" OUTPUT_VARIABLE PYTHON_INSTALL_DIR)
+ENDIF()
MESSAGE(STATUS "Python install dir is ${PYTHON_INSTALL_DIR}")