From 3cba08d0d2cc6af27de1fdcbb27e30c922331119 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Fri, 13 May 2022 10:11:08 +0200 Subject: [PATCH] - up to 4.2.0 --- dnf-plugins-core.spec | 27 ++++++++++++++++++++++----- install.patch | 2 +- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/dnf-plugins-core.spec b/dnf-plugins-core.spec index 31cad73..7c36df6 100644 --- a/dnf-plugins-core.spec +++ b/dnf-plugins-core.spec @@ -5,22 +5,22 @@ # Summary: Core Plugins for DNF Name: dnf-plugins-core -Version: 4.0.19 -Release: 3 +Version: 4.2.0 +Release: 1 License: GPL v2+ Source0: https://github.com/rpm-software-management/dnf-plugins-core/archive/%{version}/%{name}-%{version}.tar.gz -# Source0-md5: ab4a9b6919a70943d45404943ae49a21 +# Source0-md5: 7f18b00a45508782256690c3a02fc8fc Patch0: install.patch Patch1: migrate3.patch URL: https://github.com/rpm-software-management/dnf-plugins-core BuildRequires: cmake -BuildRequires: dnf >= 4.2.22 +BuildRequires: dnf >= 4.11.0 BuildRequires: gettext BuildRequires: python3-dbus BuildRequires: python3-devel BuildRequires: python3-nose BuildRequires: sphinx-pdg -Requires: dnf >= 4.2.22 +Requires: dnf >= 4.11.0 Requires: python3-dateutil Requires: python3-dbus Requires: python3-hawkey >= 0.46.1 @@ -77,6 +77,17 @@ Requires: yum Migrate Plugin for DNF. Migrates history, group and yumdb data from yum to dnf. +%package -n dnf-plugin-modulesync +Summary: Download module metadata and packages and create repository +Requires: createrepo_c >= 0.17.4 +Requires: python3-%{name} = %{version}-%{release} +Provides: dnf-command(modulesync) +Provides: dnf-plugin-modulesync = %{version}-%{release} + +%description -n dnf-plugin-modulesync +Download module metadata from all enabled repositories, module +artifacts and profiles of matching modules and create repository. + %package -n dnf-plugin-post-transaction-actions Summary: Post transaction actions Plugin for DNF Requires: %{name} = %{version}-%{release} @@ -293,6 +304,12 @@ rm -rf $RPM_BUILD_ROOT %{py3_sitescriptdir}/dnf-plugins/__pycache__/migrate.* %{_mandir}/man8/dnf-migrate.8* +%files -n dnf-plugin-modulesync +%defattr(644,root,root,755) +%{py3_sitescriptdir}/dnf-plugins/modulesync.* +%{py3_sitescriptdir}/dnf-plugins/__pycache__/modulesync.* +%{_mandir}/man8/dnf-modulesync.8* + %files -n dnf-plugin-post-transaction-actions %defattr(644,root,root,755) %config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.conf diff --git a/install.patch b/install.patch index 58fdfba..cee4ab7 100644 --- a/install.patch +++ b/install.patch @@ -5,7 +5,7 @@ ENDIF() +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}") -- 2.44.0