commit
4c802e9ec0
Binary file not shown.
BIN
dnf-plugins-core-4.0.11.tar.gz
Normal file
BIN
dnf-plugins-core-4.0.11.tar.gz
Normal file
Binary file not shown.
@ -1,35 +1,32 @@
|
|||||||
%global dnf_version 4.0.4
|
%global dnf_lowest_compatible 4.2.14
|
||||||
|
|
||||||
%global dnf_plugins_extra 2.0.0
|
%global dnf_plugins_extra 2.0.0
|
||||||
%global hawkey_version 0.22.0
|
%global hawkey_version 0.34.0
|
||||||
|
|
||||||
%bcond_with python2
|
|
||||||
%bcond_without python3
|
%bcond_without python3
|
||||||
|
%bcond_with python2
|
||||||
%bcond_without yumcompatibility
|
%bcond_without yumcompatibility
|
||||||
%bcond_without dnfutils
|
%bcond_without yumutils
|
||||||
|
|
||||||
Name: dnf-plugins-core
|
Name: dnf-plugins-core
|
||||||
Version: 4.0.0
|
Version: 4.0.11
|
||||||
Release: 3
|
Release: 2
|
||||||
Summary: Core plugins to use with DNF package manager
|
Summary: Core Plugins for DNF
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
BuildArch: noarch
|
|
||||||
URL: https://github.com/rpm-software-management/dnf-plugins-core
|
URL: https://github.com/rpm-software-management/dnf-plugins-core
|
||||||
Source0: https://github.com/rpm-software-management/dnf-plugins-core/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
BuildArch: noarch
|
||||||
BuildRequires: cmake gettext python2-sphinx
|
BuildRequires: cmake gettext %{_bindir}/sphinx-build-3 %{_bindir}/sphinx-build
|
||||||
%if %{with python3}
|
Requires: python3-%{name} = %{version}-%{release} python2-%{name} = %{version}-%{release}
|
||||||
Requires: python3-%{name} = %{version}-%{release} python3-dnf >= %{dnf_version}
|
Requires: dnf >= %{dnf_lowest_compatible} %{name} = %{version}-%{release}
|
||||||
%else
|
Requires: python3-dnf >= %{dnf_lowest_compatible}
|
||||||
Requires: python2-%{name} = %{version}-%{release} python2-dnf >= %{dnf_version}
|
Provides: dnf-command(builddep) dnf-command(changelog) dnf-command(config-manager)
|
||||||
%endif
|
Provides: dnf-command(copr) dnf-command(debug-dump) dnf-command(debug-restore)
|
||||||
|
Provides: dnf-command(debuginfo-install) dnf-command(download) dnf-command(repoclosure)
|
||||||
Requires: dnf >= %{dnf_version}
|
Provides: dnf-command(repograph) dnf-command(repomanage) dnf-command(reposync)
|
||||||
|
Provides: dnf-command(repodiff) dnf-plugins-extras-debug = %{version}-%{release}
|
||||||
Provides: dnf-command(builddep) dnf-command(config-manager) dnf-command(copr) dnf-command(debug-dump) dnf-command(debug-restore)
|
Provides: dnf-plugins-extras-repoclosure = %{version}-%{release}
|
||||||
Provides: dnf-command(debuginfo-install) dnf-command(download) dnf-command(repoclosure) dnf-command(repograph) dnf-command(repomanage) dnf-command(reposync)
|
Provides: dnf-plugins-extras-repograph = %{version}-%{release}
|
||||||
Provides: yum-plugin-copr = %{version}-%{release} yum-utils = %{version}-%{release}
|
Provides: dnf-plugins-extras-repomanage = %{version}-%{release}
|
||||||
Provides: yum-plugin-auto-update-debug-info = %{version}-%{release}
|
|
||||||
Provides: dnf-plugin-builddep = %{version}-%{release}
|
Provides: dnf-plugin-builddep = %{version}-%{release}
|
||||||
Provides: dnf-plugin-config-manager = %{version}-%{release}
|
Provides: dnf-plugin-config-manager = %{version}-%{release}
|
||||||
Provides: dnf-plugin-debuginfo-install = %{version}-%{release}
|
Provides: dnf-plugin-debuginfo-install = %{version}-%{release}
|
||||||
@ -37,164 +34,157 @@ Provides: dnf-plugin-download = %{version}-%{release}
|
|||||||
Provides: dnf-plugin-generate_completion_cache = %{version}-%{release}
|
Provides: dnf-plugin-generate_completion_cache = %{version}-%{release}
|
||||||
Provides: dnf-plugin-needs_restarting = %{version}-%{release}
|
Provides: dnf-plugin-needs_restarting = %{version}-%{release}
|
||||||
Provides: dnf-plugin-repoclosure = %{version}-%{release}
|
Provides: dnf-plugin-repoclosure = %{version}-%{release}
|
||||||
|
Provides: dnf-plugin-repodiff = %{version}-%{release}
|
||||||
Provides: dnf-plugin-repograph = %{version}-%{release}
|
Provides: dnf-plugin-repograph = %{version}-%{release}
|
||||||
Provides: dnf-plugin-repomanage = %{version}-%{release}
|
Provides: dnf-plugin-repomanage = %{version}-%{release}
|
||||||
Provides: dnf-plugin-reposync = %{version}-%{release}
|
Provides: dnf-plugin-reposync = %{version}-%{release}
|
||||||
Provides: dnf-plugins-extras-debug = %{version}-%{release}
|
Provides: yum-plugin-copr = %{version}-%{release}
|
||||||
Provides: dnf-plugins-extras-repoclosure = %{version}-%{release}
|
Provides: yum-plugin-changelog = %{version}-%{release}
|
||||||
Provides: dnf-plugins-extras-repograph = %{version}-%{release}
|
Provides: yum-plugin-auto-update-debug-info = %{version}-%{release}
|
||||||
Provides: dnf-plugins-extras-repomanage = %{version}-%{release}
|
Provides: dnf-utils = %{version}-%{release}
|
||||||
|
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
|
||||||
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra} yum-utils < 1.1.31-513
|
Conflicts: yum-utils < 1.1.31-520 yum-plugin-copr < 1.1.31-520
|
||||||
|
Obsoletes: dnf-utils < %{version}-%{release}
|
||||||
Provides: dnf-utils
|
|
||||||
Obsoletes: dnf-utils
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Core plugins to use with DNF package manager.
|
Core Plugins for DNF. This package enhances DNF with builddep, config-manager,
|
||||||
|
copr, debug, debuginfo-install, download, needs-restarting, repoclosure,
|
||||||
|
repograph, repomanage, reposync, changelog and repodiff commands. Additionally
|
||||||
|
provides generate_completion_cache passive plugin.
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%package -n python2-%{name}
|
%package -n python2-%{name}
|
||||||
Summary: Core Plugins for DNF(Python2 api)
|
Summary: Core Plugins for DNF
|
||||||
%{?python_provide:%python_provide python2-%{name}}
|
%{?python_provide:%python_provide python2-%{name}}
|
||||||
BuildRequires: python2-dnf >= %{dnf_version} python2-nose python2-devel python2-distro
|
BuildRequires: python2-dnf >= %{dnf_lowest_compatible} python2-nose python2-devel
|
||||||
Requires: python2-dnf >= %{dnf_version} python2-hawkey >= %{hawkey_version} yum
|
Requires: python2-distro python2-dnf >= %{dnf_lowest_compatible}
|
||||||
|
Requires: python2-hawkey >= %{hawkey_version} python2-dateutil
|
||||||
|
|
||||||
Provides: python2-dnf-plugins-extras-debug = %{version}-%{release}
|
Provides: python2-dnf-plugins-extras-debug = %{version}-%{release}
|
||||||
Provides: python2-dnf-plugins-extras-repoclosure = %{version}-%{release}
|
Provides: python2-dnf-plugins-extras-repoclosure = %{version}-%{release}
|
||||||
Provides: python2-dnf-plugins-extras-repograph = %{version}-%{release}
|
Provides: python2-dnf-plugins-extras-repograph = %{version}-%{release}
|
||||||
Provides: python2-dnf-plugins-extras-repomanage = %{version}-%{release} python2-dnf-plugin-migrate
|
Provides: python2-dnf-plugins-extras-repomanage = %{version}-%{release}
|
||||||
Provides: dnf-plugin-migrate = %{version}-%{release} python2-dnf-plugins-extras-migrate = %{version}-%{release}
|
|
||||||
Provides: dnf-plugins-extras-migrate = %{version}-%{release}
|
|
||||||
Provides: dnf-plugin-versionlock = %{version}-%{release} dnf-plugins-extras-versionlock = %{version}-%{release}
|
|
||||||
Provides: yum-plugin-versionlock = %{version}-%{release} python2-dnf-plugins-extras-versionlock = %{version}-%{release}
|
|
||||||
Provides: dnf-command(migrate) dnf-command(versionlock)
|
|
||||||
Provides: python2-dnf-plugin-migrate python2-dnf-plugin-versionlock
|
|
||||||
|
|
||||||
Obsoletes: python2-dnf-plugins-extras-debug < %{dnf_plugins_extra}
|
Obsoletes: python2-dnf-plugins-extras-debug < %{dnf_plugins_extra}
|
||||||
Obsoletes: python2-dnf-plugins-extras-repoclosure < %{dnf_plugins_extra}
|
Obsoletes: python2-dnf-plugins-extras-repoclosure < %{dnf_plugins_extra}
|
||||||
Obsoletes: python2-dnf-plugins-extras-repograph < %{dnf_plugins_extra}
|
Obsoletes: python2-dnf-plugins-extras-repograph < %{dnf_plugins_extra}
|
||||||
Obsoletes: python2-dnf-plugins-extras-repomanage < %{dnf_plugins_extra} python2-dnf-plugin-migrate
|
Obsoletes: python2-dnf-plugins-extras-repomanage < %{dnf_plugins_extra}
|
||||||
Obsoletes: python2-dnf-plugins-extras-migrate < %{dnf_plugins_extra} python-dnf-plugins-extras-migrate < %{dnf_plugins_extra}
|
Conflicts: %{name} <= 0.1.5 python3-%{name} < %{version}-%{release}
|
||||||
Obsoletes: python2-dnf-plugins-extras-versionlock < %{dnf_plugins_extra}
|
Conflicts: python-%{name} < %{version}-%{release}
|
||||||
Obsoletes: python2-dnf-plugin-migrate python2-dnf-plugin-versionlock
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Conflicts: %{name} <= 0.1.5
|
|
||||||
Conflicts: python3-%{name} < %{version}-%{release} python-%{name} < %{version}-%{release}
|
|
||||||
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
|
|
||||||
Conflicts: python2-dnf-plugins-extras-versionlock < %{dnf_plugins_extra}
|
|
||||||
|
|
||||||
%description -n python2-%{name}
|
%description -n python2-%{name}
|
||||||
Core Plugins for DNF, Python 2 interface. This package enhances DNF with builddep, config-manager,
|
Core Plugins for DNF, Python 2 interface. This package enhances DNF with builddep,
|
||||||
copr, degug, debuginfo-install, download, needs-restarting, repoclosure, repograph, repomanage and
|
config-manager, copr, degug, debuginfo-install, download, needs-restarting,
|
||||||
reposync commands. Additionally provides generate_completion_cache passive plugin.
|
repoclosure, repograph, repomanage, reposync, changelog and repodiff commands.
|
||||||
|
Additionally provides generate_completion_cache passive plugin.
|
||||||
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-%{name}
|
%package -n python3-%{name}
|
||||||
Summary: Core Plugins for DNF(Python3 api)
|
Summary: Core Plugins for DNF
|
||||||
%{?python_provide:%python_provide python3-%{name}}
|
%{?python_provide:%python_provide python3-%{name}}
|
||||||
BuildRequires: python3-devel python3-dnf >= %{dnf_version} python3-nose python3-distro
|
BuildRequires: python3-devel python3-dnf >= %{dnf_lowest_compatible} python3-nose
|
||||||
|
Requires: python3-distro python3-dnf >= %{dnf_lowest_compatible}
|
||||||
Requires: python3-dnf >= %{dnf_version} python3-hawkey >= %{hawkey_version}
|
Requires: python3-hawkey >= %{hawkey_version} python3-dateutil
|
||||||
|
|
||||||
Provides: python3-dnf-plugins-extras-debug = %{version}-%{release}
|
Provides: python3-dnf-plugins-extras-debug = %{version}-%{release}
|
||||||
Provides: python3-dnf-plugins-extras-repoclosure = %{version}-%{release}
|
Provides: python3-dnf-plugins-extras-repoclosure = %{version}-%{release}
|
||||||
Provides: python3-dnf-plugins-extras-repograph = %{version}-%{release}
|
Provides: python3-dnf-plugins-extras-repograph = %{version}-%{release}
|
||||||
Provides: python3-dnf-plugins-extras-repomanage = %{version}-%{release}
|
Provides: python3-dnf-plugins-extras-repomanage = %{version}-%{release}
|
||||||
Provides: dnf-plugin-versionlock = %{version}-%{release}
|
|
||||||
Provides: python3-dnf-plugins-extras-versionlock = %{version}-%{release}
|
|
||||||
Provides: yum-plugin-versionlock = %{version}-%{release}
|
|
||||||
Provides: dnf-command(versionlock) python3-dnf-plugin-versionlock
|
|
||||||
Provides: config(python3-dnf-plugin-versionlock) = %{version}-%{release}
|
|
||||||
|
|
||||||
Obsoletes: python3-dnf-plugins-extras-debug < %{dnf_plugins_extra}
|
Obsoletes: python3-dnf-plugins-extras-debug < %{dnf_plugins_extra}
|
||||||
Obsoletes: python3-dnf-plugins-extras-repoclosure < %{dnf_plugins_extra}
|
Obsoletes: python3-dnf-plugins-extras-repoclosure < %{dnf_plugins_extra}
|
||||||
Obsoletes: python3-dnf-plugins-extras-repograph < %{dnf_plugins_extra}
|
Obsoletes: python3-dnf-plugins-extras-repograph < %{dnf_plugins_extra}
|
||||||
Obsoletes: python3-dnf-plugins-extras-repomanage < %{dnf_plugins_extra}
|
Obsoletes: python3-dnf-plugins-extras-repomanage < %{dnf_plugins_extra}
|
||||||
Obsoletes: python3-dnf-plugins-extras-versionlock < %{dnf_plugins_extra}
|
Conflicts: %{name} <= 0.1.5 python2-%{name} < %{version}-%{release}
|
||||||
Obsoletes: python3-dnf-plugin-versionlock
|
Conflicts: python-%{name} < %{version}-%{release}
|
||||||
|
|
||||||
Conflicts: %{name} <= 0.1.5
|
|
||||||
Conflicts: python-%{name} < %{version}-%{release} python2-%{name} < %{version}-%{release}
|
|
||||||
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra} python2-dnf-plugin-versionlock < %{version}-%{release}
|
|
||||||
|
|
||||||
|
|
||||||
%description -n python3-%{name}
|
%description -n python3-%{name}
|
||||||
Core Plugins for DNF, Python 3 interface. This package enhances DNF with builddep, config-manager,
|
Core Plugins for DNF, Python 3 interface. This package enhances DNF with builddep,
|
||||||
copr, debug, debuginfo-install, download, needs-restarting, repoclosure, repograph, repomanage and
|
config-manager, copr, debug, debuginfo-install, download, needs-restarting,
|
||||||
reposync commands. Additionally provides generate_completion_cache passive plugin.
|
repoclosure, repograph, repomanage, reposync, changelog and repodiff commands.
|
||||||
%endif
|
Additionally provides generate_completion_cache passive plugin.
|
||||||
|
|
||||||
|
%package -n python2-dnf-plugin-migrate
|
||||||
|
Summary: Migrate Plugin for DNF
|
||||||
|
Requires: python2-%{name} = %{version}-%{release} yum
|
||||||
|
Provides: dnf-plugin-migrate = %{version}-%{release} dnf-command(migrate)
|
||||||
|
Provides: python2-dnf-plugins-extras-migrate = %{version}-%{release}
|
||||||
|
Provides: dnf-plugins-extras-migrate = %{version}-%{release}
|
||||||
|
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
|
||||||
|
Obsoletes: python2-dnf-plugins-extras-migrate < %{dnf_plugins_extra}
|
||||||
|
Obsoletes: python-dnf-plugins-extras-migrate < %{dnf_plugins_extra}
|
||||||
|
|
||||||
|
%description -n python2-dnf-plugin-migrate
|
||||||
|
Migrate Plugin for DNF, Python 2 version. Migrates history, group and yumdb data from yum to dnf.
|
||||||
|
|
||||||
%package docs
|
%package -n python2-dnf-plugin-versionlock
|
||||||
Summary: Documentation files for dnf-plugins-core
|
Summary: Version Lock Plugin for DNF
|
||||||
|
Requires: python2-%{name} = %{version}-%{release}
|
||||||
|
Provides: yum-plugin-versionlock = %{version}-%{release}
|
||||||
|
Provides: python2-dnf-plugins-extras-versionlock = %{version}-%{release}
|
||||||
|
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
|
||||||
|
Conflicts: python3-dnf-plugin-versionlock < %{version}-%{release}
|
||||||
|
Obsoletes: python2-dnf-plugins-extras-versionlock < %{dnf_plugins_extra}
|
||||||
|
|
||||||
%description docs
|
%description -n python2-dnf-plugin-versionlock
|
||||||
The dnf-plugins-core package contains documentation files.
|
Version lock plugin takes a set of name/versions for packages and excludes all other
|
||||||
|
versions of those packages. This allows you to e.g. protect packages from being
|
||||||
|
updated by newer versions.
|
||||||
|
|
||||||
|
%package -n python3-dnf-plugin-versionlock
|
||||||
|
Summary: Version Lock Plugin for DNF
|
||||||
|
Requires: python3-%{name} = %{version}-%{release}
|
||||||
|
Provides: dnf-plugin-versionlock = %{version}-%{release}
|
||||||
|
Provides: python3-dnf-plugins-extras-versionlock = %{version}-%{release}
|
||||||
|
Provides: dnf-command(versionlock)
|
||||||
|
Provides: yum-plugin-versionlock = %{version}-%{release}
|
||||||
|
Provides: dnf-plugins-extras-versionlock = %{version}-%{release}
|
||||||
|
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
|
||||||
|
Conflicts: python2-dnf-plugin-versionlock < %{version}-%{release}
|
||||||
|
Obsoletes: python3-dnf-plugins-extras-versionlock < %{dnf_plugins_extra}
|
||||||
|
|
||||||
|
%description -n python3-dnf-plugin-versionlock
|
||||||
|
Version lock plugin takes a set of name/versions for packages and excludes all other
|
||||||
|
versions of those packages. This allows you to e.g. protect packages from being
|
||||||
|
updated by newer versions.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{name}-%{version} -p1
|
%autosetup
|
||||||
%if %{with python2}
|
mkdir build-py2
|
||||||
mkdir python2
|
mkdir build-py3
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
mkdir python3
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if %{with python2}
|
pushd build-py2
|
||||||
pushd python2
|
%cmake ../ -DPYTHON_DESIRED:FILEPATH=%{__python2} -DWITHOUT_LOCAL:str=8}
|
||||||
%cmake ../ -DPYTHON_DESIRED:FILEPATH=%{__python2}
|
%make_build
|
||||||
%make_build all doc-man
|
make doc-man
|
||||||
popd
|
popd
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
pushd build-py3
|
||||||
pushd python3
|
%cmake ../ -DPYTHON_DESIRED:FILEPATH=%{__python3} -DWITHOUT_LOCAL:str=8}
|
||||||
%cmake ../ -DPYTHON_DESIRED:FILEPATH=%{__python3}
|
%make_build
|
||||||
%make_build all doc-man
|
make doc-man
|
||||||
popd
|
popd
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if %{with python2}
|
pushd build-py2
|
||||||
pushd python2
|
|
||||||
%make_install
|
%make_install
|
||||||
popd
|
popd
|
||||||
%find_lang %{name}
|
|
||||||
mv %{buildroot}%{_libexecdir}/dnf-utils-2 %{buildroot}%{_libexecdir}/dnf-utils
|
pushd build-py3
|
||||||
%endif
|
|
||||||
%if %{with python3}
|
|
||||||
pushd python3
|
|
||||||
%make_install
|
%make_install
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%find_lang %{name}
|
%find_lang %{name}
|
||||||
|
|
||||||
mv %{buildroot}%{_libexecdir}/dnf-utils-3 %{buildroot}%{_libexecdir}/dnf-utils
|
mv %{buildroot}%{_libexecdir}/dnf-utils-3 %{buildroot}%{_libexecdir}/dnf-utils
|
||||||
%endif
|
|
||||||
|
|
||||||
rm -vf %{buildroot}%{_libexecdir}/dnf-utils-*
|
rm -vf %{buildroot}%{_libexecdir}/dnf-utils-*
|
||||||
|
|
||||||
mkdir -p %{buildroot}%{_bindir}
|
mkdir -p %{buildroot}%{_bindir}
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/debuginfo-install
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/debuginfo-install
|
||||||
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/needs-restarting
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/find-repos-of-install
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/find-repos-of-install
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repo-graph
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repo-graph
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/package-cleanup
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/package-cleanup
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repoclosure
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repoclosure
|
||||||
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repodiff
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repomanage
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repomanage
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repoquery
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repoquery
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/reposync
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/reposync
|
||||||
@ -204,63 +194,46 @@ ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-config-manager
|
|||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-debug-dump
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-debug-dump
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-debug-restore
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-debug-restore
|
||||||
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yumdownloader
|
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yumdownloader
|
||||||
|
|
||||||
ln -sf %{_mandir}/man1/dnf-utils.1.gz %{buildroot}%{_mandir}/man1/find-repos-of-install.1.gz
|
ln -sf %{_mandir}/man1/dnf-utils.1.gz %{buildroot}%{_mandir}/man1/find-repos-of-install.1.gz
|
||||||
ln -sf %{_mandir}/man1/dnf-utils.1.gz %{buildroot}%{_mandir}/man1/repoquery.1.gz
|
ln -sf %{_mandir}/man1/dnf-utils.1.gz %{buildroot}%{_mandir}/man1/repoquery.1.gz
|
||||||
ln -sf %{_mandir}/man1/dnf-utils.1.gz %{buildroot}%{_mandir}/man1/repotrack.1.gz
|
ln -sf %{_mandir}/man1/dnf-utils.1.gz %{buildroot}%{_mandir}/man1/repotrack.1.gz
|
||||||
ln -sf %{_mandir}/man1/dnf-utils.1.gz %{buildroot}%{_mandir}/man1/yum-utils.1.gz
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with python2}
|
|
||||||
PYTHONPATH=./plugins nosetests-%{python2_version} -s tests/
|
PYTHONPATH=./plugins nosetests-%{python2_version} -s tests/
|
||||||
%endif
|
|
||||||
%if %{with python3}
|
|
||||||
PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
|
PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%pre
|
|
||||||
|
|
||||||
%preun
|
|
||||||
|
|
||||||
%post
|
|
||||||
|
|
||||||
%postun
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libexecdir}/dnf-utils
|
%{_libexecdir}/dnf-utils
|
||||||
%{_bindir}/debuginfo-install
|
%{_bindir}/debuginfo-install
|
||||||
|
%{_bindir}/needs-restarting
|
||||||
%{_bindir}/find-repos-of-install
|
%{_bindir}/find-repos-of-install
|
||||||
%{_bindir}/package-cleanup
|
%{_bindir}/package-cleanup
|
||||||
%{_bindir}/repo*
|
%{_bindir}/repo-graph
|
||||||
%{_bindir}/yum*
|
%{_bindir}/repoclosure
|
||||||
|
%{_bindir}/repodiff
|
||||||
|
%{_bindir}/repomanage
|
||||||
|
%{_bindir}/repoquery
|
||||||
|
%{_bindir}/reposync
|
||||||
|
%{_bindir}/repotrack
|
||||||
|
%{_bindir}/yum-builddep
|
||||||
|
%{_bindir}/yum-config-manager
|
||||||
|
%{_bindir}/yum-debug-dump
|
||||||
|
%{_bindir}/yum-debug-restore
|
||||||
|
%{_bindir}/yumdownloader
|
||||||
|
%exclude %{_mandir}/man8/dnf.plugin.leaves.*
|
||||||
%exclude %{python2_sitelib}/dnf-plugins/leaves.*
|
%exclude %{python2_sitelib}/dnf-plugins/leaves.*
|
||||||
%exclude %{python2_sitelib}/dnf-plugins/show_leaves.*
|
|
||||||
|
|
||||||
%exclude %{python3_sitelib}/dnf-plugins/leaves.*
|
%exclude %{python3_sitelib}/dnf-plugins/leaves.*
|
||||||
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/leaves.*
|
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/leaves.*
|
||||||
%exclude %{python3_sitelib}/dnf-plugins/show_leaves.*
|
|
||||||
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/show_leaves.*
|
|
||||||
|
|
||||||
|
|
||||||
%if %{with python2}
|
|
||||||
%files -n python2-%{name} -f %{name}.lang
|
%files -n python2-%{name} -f %{name}.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS README.rst
|
%doc AUTHORS README.rst
|
||||||
%ghost %{_var}/cache/dnf/packages.db
|
%ghost %attr(644,-,-) %{_var}/cache/dnf/packages.db
|
||||||
|
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.conf
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.conf
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.d
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.d
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/debuginfo-install.conf
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/debuginfo-install.conf
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf
|
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list
|
|
||||||
|
|
||||||
%{python2_sitelib}/dnf-plugins/versionlock.*
|
|
||||||
%{python2_sitelib}/dnf-plugins/migrate.*
|
|
||||||
%{python2_sitelib}/dnf-plugins/builddep.*
|
%{python2_sitelib}/dnf-plugins/builddep.*
|
||||||
|
%{python2_sitelib}/dnf-plugins/changelog.*
|
||||||
%{python2_sitelib}/dnf-plugins/config_manager.*
|
%{python2_sitelib}/dnf-plugins/config_manager.*
|
||||||
%{python2_sitelib}/dnf-plugins/copr.*
|
%{python2_sitelib}/dnf-plugins/copr.*
|
||||||
%{python2_sitelib}/dnf-plugins/debug.*
|
%{python2_sitelib}/dnf-plugins/debug.*
|
||||||
@ -269,29 +242,21 @@ PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
|
|||||||
%{python2_sitelib}/dnf-plugins/generate_completion_cache.*
|
%{python2_sitelib}/dnf-plugins/generate_completion_cache.*
|
||||||
%{python2_sitelib}/dnf-plugins/needs_restarting.*
|
%{python2_sitelib}/dnf-plugins/needs_restarting.*
|
||||||
%{python2_sitelib}/dnf-plugins/repoclosure.*
|
%{python2_sitelib}/dnf-plugins/repoclosure.*
|
||||||
|
%{python2_sitelib}/dnf-plugins/repodiff.*
|
||||||
%{python2_sitelib}/dnf-plugins/repograph.*
|
%{python2_sitelib}/dnf-plugins/repograph.*
|
||||||
%{python2_sitelib}/dnf-plugins/repomanage.*
|
%{python2_sitelib}/dnf-plugins/repomanage.*
|
||||||
%{python2_sitelib}/dnf-plugins/reposync.*
|
%{python2_sitelib}/dnf-plugins/reposync.*
|
||||||
%{python2_sitelib}/dnfpluginscore/
|
%{python2_sitelib}/dnfpluginscore/
|
||||||
|
|
||||||
%{_mandir}/man8/dnf.plugin.migrate.*
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files -n python3-%{name} -f %{name}.lang
|
%files -n python3-%{name} -f %{name}.lang
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%doc AUTHORS README.rst
|
%doc AUTHORS README.rst
|
||||||
%ghost %{_var}/cache/dnf/packages.db
|
%ghost %attr(644,-,-) %{_var}/cache/dnf/packages.db
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.conf
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.conf
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.d
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.d
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/debuginfo-install.conf
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/debuginfo-install.conf
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf
|
|
||||||
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list
|
|
||||||
|
|
||||||
|
|
||||||
%{python3_sitelib}/dnf-plugins/versionlock.*
|
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/versionlock.*
|
|
||||||
%{python3_sitelib}/dnf-plugins/builddep.py
|
%{python3_sitelib}/dnf-plugins/builddep.py
|
||||||
|
%{python3_sitelib}/dnf-plugins/changelog.py
|
||||||
%{python3_sitelib}/dnf-plugins/config_manager.py
|
%{python3_sitelib}/dnf-plugins/config_manager.py
|
||||||
%{python3_sitelib}/dnf-plugins/copr.py
|
%{python3_sitelib}/dnf-plugins/copr.py
|
||||||
%{python3_sitelib}/dnf-plugins/debug.py
|
%{python3_sitelib}/dnf-plugins/debug.py
|
||||||
@ -300,10 +265,12 @@ PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
|
|||||||
%{python3_sitelib}/dnf-plugins/generate_completion_cache.py
|
%{python3_sitelib}/dnf-plugins/generate_completion_cache.py
|
||||||
%{python3_sitelib}/dnf-plugins/needs_restarting.py
|
%{python3_sitelib}/dnf-plugins/needs_restarting.py
|
||||||
%{python3_sitelib}/dnf-plugins/repoclosure.py
|
%{python3_sitelib}/dnf-plugins/repoclosure.py
|
||||||
|
%{python3_sitelib}/dnf-plugins/repodiff.py
|
||||||
%{python3_sitelib}/dnf-plugins/repograph.py
|
%{python3_sitelib}/dnf-plugins/repograph.py
|
||||||
%{python3_sitelib}/dnf-plugins/repomanage.py
|
%{python3_sitelib}/dnf-plugins/repomanage.py
|
||||||
%{python3_sitelib}/dnf-plugins/reposync.py
|
%{python3_sitelib}/dnf-plugins/reposync.py
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/builddep.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/builddep.*
|
||||||
|
%{python3_sitelib}/dnf-plugins/__pycache__/changelog.*
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/config_manager.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/config_manager.*
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/copr.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/copr.*
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/debug.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/debug.*
|
||||||
@ -312,30 +279,37 @@ PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
|
|||||||
%{python3_sitelib}/dnf-plugins/__pycache__/generate_completion_cache.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/generate_completion_cache.*
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/needs_restarting.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/needs_restarting.*
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/repoclosure.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/repoclosure.*
|
||||||
|
%{python3_sitelib}/dnf-plugins/__pycache__/repodiff.*
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/repograph.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/repograph.*
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/repomanage.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/repomanage.*
|
||||||
%{python3_sitelib}/dnf-plugins/__pycache__/reposync.*
|
%{python3_sitelib}/dnf-plugins/__pycache__/reposync.*
|
||||||
%{python3_sitelib}/dnfpluginscore/
|
%{python3_sitelib}/dnfpluginscore/
|
||||||
%endif
|
|
||||||
|
|
||||||
|
%files -n python2-dnf-plugin-migrate
|
||||||
|
%{python2_sitelib}/dnf-plugins/migrate.*
|
||||||
|
%{_mandir}/man8/dnf.plugin.migrate.*
|
||||||
|
%exclude %{_mandir}/man8/dnf.plugin.show-leaves.*
|
||||||
|
%exclude %{python2_sitelib}/dnf-plugins/show_leaves.*
|
||||||
|
%exclude %{python3_sitelib}/dnf-plugins/show_leaves.*
|
||||||
|
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/show_leaves.*
|
||||||
|
|
||||||
%exclude %config(noreplace) %{_sysconfdir}/dnf/plugins/local.conf
|
%files -n python2-dnf-plugin-versionlock
|
||||||
%exclude %{python2_sitelib}/dnf-plugins/local.*
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf
|
||||||
%exclude %{python3_sitelib}/dnf-plugins/local.*
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list
|
||||||
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/local.*
|
%{python2_sitelib}/dnf-plugins/versionlock.*
|
||||||
%exclude %{_mandir}/man8/dnf.plugin.local.*
|
|
||||||
|
|
||||||
|
%files -n python3-dnf-plugin-versionlock
|
||||||
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf
|
||||||
|
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list
|
||||||
|
%{python3_sitelib}/dnf-plugins/versionlock.*
|
||||||
|
%{python3_sitelib}/dnf-plugins/__pycache__/versionlock.*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
|
||||||
|
|
||||||
%files docs
|
|
||||||
%defattr(644,root,root)
|
|
||||||
%{_mandir}/man8/yum-copr.*
|
|
||||||
%{_mandir}/man1/debuginfo-install.*
|
%{_mandir}/man1/debuginfo-install.*
|
||||||
%{_mandir}/man1/needs-restarting.*
|
%{_mandir}/man1/needs-restarting.*
|
||||||
%{_mandir}/man1/repo-graph.*
|
%{_mandir}/man1/repo-graph.*
|
||||||
%{_mandir}/man1/repoclosure.*
|
%{_mandir}/man1/repoclosure.*
|
||||||
|
%{_mandir}/man1/repodiff.*
|
||||||
%{_mandir}/man1/repomanage.*
|
%{_mandir}/man1/repomanage.*
|
||||||
%{_mandir}/man1/reposync.*
|
%{_mandir}/man1/reposync.*
|
||||||
%{_mandir}/man1/yum-builddep.*
|
%{_mandir}/man1/yum-builddep.*
|
||||||
@ -345,11 +319,15 @@ PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
|
|||||||
%{_mandir}/man1/yumdownloader.*
|
%{_mandir}/man1/yumdownloader.*
|
||||||
%{_mandir}/man1/package-cleanup.*
|
%{_mandir}/man1/package-cleanup.*
|
||||||
%{_mandir}/man1/dnf-utils.*
|
%{_mandir}/man1/dnf-utils.*
|
||||||
|
%{_mandir}/man1/yum-utils.*
|
||||||
%{_mandir}/man1/find-repos-of-install.*
|
%{_mandir}/man1/find-repos-of-install.*
|
||||||
%{_mandir}/man1/repoquery.*
|
%{_mandir}/man1/repoquery.*
|
||||||
%{_mandir}/man1/repotrack.*
|
%{_mandir}/man1/repotrack.*
|
||||||
%{_mandir}/man1/yum-utils.*
|
%{_mandir}/man8/yum-versionlock.*
|
||||||
|
%{_mandir}/man5/yum-versionlock.*
|
||||||
|
%{_mandir}/man8/dnf.plugin.versionlock.*
|
||||||
%{_mandir}/man8/dnf.plugin.builddep.*
|
%{_mandir}/man8/dnf.plugin.builddep.*
|
||||||
|
%{_mandir}/man8/dnf.plugin.changelog.*
|
||||||
%{_mandir}/man8/dnf.plugin.config_manager.*
|
%{_mandir}/man8/dnf.plugin.config_manager.*
|
||||||
%{_mandir}/man8/dnf.plugin.copr.*
|
%{_mandir}/man8/dnf.plugin.copr.*
|
||||||
%{_mandir}/man8/dnf.plugin.debug.*
|
%{_mandir}/man8/dnf.plugin.debug.*
|
||||||
@ -358,18 +336,13 @@ PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
|
|||||||
%{_mandir}/man8/dnf.plugin.generate_completion_cache.*
|
%{_mandir}/man8/dnf.plugin.generate_completion_cache.*
|
||||||
%{_mandir}/man8/dnf.plugin.needs_restarting.*
|
%{_mandir}/man8/dnf.plugin.needs_restarting.*
|
||||||
%{_mandir}/man8/dnf.plugin.repoclosure.*
|
%{_mandir}/man8/dnf.plugin.repoclosure.*
|
||||||
|
%{_mandir}/man8/dnf.plugin.repodiff.*
|
||||||
%{_mandir}/man8/dnf.plugin.repograph.*
|
%{_mandir}/man8/dnf.plugin.repograph.*
|
||||||
%{_mandir}/man8/dnf.plugin.repomanage.*
|
%{_mandir}/man8/dnf.plugin.repomanage.*
|
||||||
%{_mandir}/man8/dnf.plugin.reposync.*
|
%{_mandir}/man8/dnf.plugin.reposync.*
|
||||||
|
%{_mandir}/man1/yum-changelog.*
|
||||||
%{_mandir}/man8/dnf.plugin.versionlock.*
|
%{_mandir}/man8/yum-copr.*
|
||||||
%{_mandir}/man8/yum-versionlock.*
|
|
||||||
%{_mandir}/man5/yum-versionlock.*
|
|
||||||
|
|
||||||
%exclude %{_mandir}/man8/dnf.plugin.leaves.*
|
|
||||||
%exclude %{_mandir}/man8/dnf.plugin.show-leaves.*
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Sep 5 2019 hufeng <solar.hu@huawei.com> - 4.3.6-29
|
* Wed Jan 8 2020 zhangrui <zhangrui182@huawei.com> - 4.0.11-2
|
||||||
-Create dhcp spec
|
- Package init.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user