Update to 2.0.0-1

This commit is contained in:
Jaroslav Mracek 2017-05-02 16:06:19 +02:00
parent 41037e2183
commit ab7f68f848
3 changed files with 349 additions and 17 deletions

1
.gitignore vendored
View File

@ -26,3 +26,4 @@
/dnf-plugins-core-1.0.1.tar.gz
/dnf-plugins-core-1.0.2.tar.gz
/dnf-plugins-core-1.1.0.tar.gz
/dnf-plugins-core-2.0.0.tar.gz

View File

@ -1,5 +1,6 @@
%{?!dnf_lowest_compatible: %global dnf_lowest_compatible 2.0.0}
%{?!dnf_lowest_compatible: %global dnf_lowest_compatible 2.4.0}
%{?!dnf_not_compatible: %global dnf_not_compatible 3.0}
%global dnf_plugins_extra 2.0.0
%global hawkey_version 0.7.0
%if 0%{?rhel} && 0%{?rhel} <= 7
@ -9,7 +10,7 @@
%endif
Name: dnf-plugins-core
Version: 1.1.0
Version: 2.0.0
Release: 1%{?dist}
Summary: Core Plugins for DNF
License: GPLv2+
@ -26,14 +27,34 @@ Requires: python2-%{name} = %{version}-%{release}
Provides: dnf-command(builddep)
Provides: dnf-command(config-manager)
Provides: dnf-command(copr)
Provides: dnf-command(debug-dump)
Provides: dnf-command(debug-restore)
Provides: dnf-command(debuginfo-install)
Provides: dnf-command(download)
Provides: dnf-command(repoclosure)
Provides: dnf-command(repograph)
Provides: dnf-command(repomanage)
Provides: dnf-command(reposync)
Provides: dnf-plugins-extras-debug = %{version}-%{release}
Provides: dnf-plugins-extras-repoclosure = %{version}-%{release}
Provides: dnf-plugins-extras-repograph = %{version}-%{release}
Provides: dnf-plugins-extras-repomanage = %{version}-%{release}
Provides: dnf-plugin-builddep = %{version}-%{release}
Provides: dnf-plugin-config-manager = %{version}-%{release}
Provides: dnf-plugin-debuginfo-install = %{version}-%{release}
Provides: dnf-plugin-download = %{version}-%{release}
Provides: dnf-plugin-generate_completion_cache = %{version}-%{release}
Provides: dnf-plugin-needs_restarting = %{version}-%{release}
Provides: dnf-plugin-repoclosure = %{version}-%{release}
Provides: dnf-plugin-repograph = %{version}-%{release}
Provides: dnf-plugin-repomanage = %{version}-%{release}
Provides: dnf-plugin-reposync = %{version}-%{release}
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
%description
Core Plugins for DNF. This package enhances DNF with builddep, config-manager,
copr, debuginfo-install, download, needs-restarting, repoquery and
reposync commands. Additionally provides generate_completion_cache passive plugin.
Core Plugins for DNF. This package enhances DNF with builddep, config-manager, copr, debug,
debuginfo-install, download, needs-restarting, repoclosure, repograph, repomanage and reposync
commands. Additionally provides generate_completion_cache passive plugin.
%package -n python2-%{name}
Summary: Core Plugins for DNF
@ -50,14 +71,23 @@ BuildRequires: python2-devel
Requires: python2-dnf >= %{dnf_lowest_compatible}
Requires: python2-dnf < %{dnf_not_compatible}
Requires: python-hawkey >= %{hawkey_version}
Provides: python2-dnf-plugins-extras-debug = %{version}-%{release}
Provides: python2-dnf-plugins-extras-repoclosure = %{version}-%{release}
Provides: python2-dnf-plugins-extras-repograph = %{version}-%{release}
Provides: python2-dnf-plugins-extras-repomanage = %{version}-%{release}
Obsoletes: python2-dnf-plugins-extras-debug < %{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-repomanage < %{dnf_plugins_extra}
Conflicts: %{name} <= 0.1.5
# let the both python plugin versions be updated simultaneously
Conflicts: python3-%{name} < %{version}-%{release}
Conflicts: python-%{name} < %{version}-%{release}
%description -n python2-%{name}
Core Plugins for DNF, Python 2 interface. This package enhances DNF with builddep, copr,
config-manager, debuginfo-install, download, needs-restarting, repoquery and
Core Plugins for DNF, Python 2 interface. This package enhances DNF with builddep, config-manager,
copr, degug, debuginfo-install, download, needs-restarting, repoclosure, repograph, repomanage and
reposync commands. Additionally provides generate_completion_cache passive plugin.
%if %{with python3}
@ -76,11 +106,175 @@ Conflicts: %{name} <= 0.1.5
# let the both python plugin versions be updated simultaneously
Conflicts: python2-%{name} < %{version}-%{release}
Conflicts: python-%{name} < %{version}-%{release}
Provides: python3-dnf-plugins-extras-debug = %{version}-%{release}
Provides: python3-dnf-plugins-extras-repoclosure = %{version}-%{release}
Provides: python3-dnf-plugins-extras-repograph = %{version}-%{release}
Provides: python3-dnf-plugins-extras-repomanage = %{version}-%{release}
Obsoletes: python3-dnf-plugins-extras-debug < %{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-repomanage < %{dnf_plugins_extra}
%description -n python3-%{name}
Core Plugins for DNF. This package enhances DNF with builddep, config-manager,
copr, debuginfo-install, download, needs-restarting, repoquery and
reposync commands. Additionally provides generate_completion_cache passive plugins.
Core Plugins for DNF, Python 3 interface. This package enhances DNF with builddep, config-manager,
copr, debug, debuginfo-install, download, needs-restarting, repoclosure, repograph, repomanage and
reposync commands. Additionally provides generate_completion_cache passive plugin.
%endif
%package -n python2-dnf-plugin-leaves
Summary: Leaves Plugin for DNF
Requires: python2-%{name} = %{version}-%{release}
Provides: python2-dnf-plugins-extras-leaves = %{version}-%{release}
%if !%{with python3}
Provides: dnf-command(leaves)
Provides: dnf-plugin-leaves = %{version}-%{release}
Provides: dnf-plugins-extras-leaves = %{version}-%{release}
%endif
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts: python3-dnf-plugin-leaves < %{version}-%{release}
Obsoletes: python2-dnf-plugins-extras-leaves < %{dnf_plugins_extra}
%description -n python2-dnf-plugin-leaves
Leaves Plugin for DNF, Python 2 version. List all installed packages
not required by any other installed package.
%if %{with python3}
%package -n python3-dnf-plugin-leaves
Summary: Leaves Plugin for DNF
Requires: python3-%{name} = %{version}-%{release}
Provides: python3-dnf-plugins-extras-leaves = %{version}-%{release}
Provides: dnf-command(leaves)
Provides: dnf-plugin-leaves = %{version}-%{release}
Provides: dnf-plugins-extras-leaves = %{version}-%{release}
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts: python2-dnf-plugin-leaves < %{version}-%{release}
Obsoletes: python3-dnf-plugins-extras-leaves < %{dnf_plugins_extra}
%description -n python3-dnf-plugin-leaves
Leaves Plugin for DNF, Python 3 version. List all installed packages
not required by any other installed package.
%endif
%package -n python2-dnf-plugin-local
Summary: Local Plugin for DNF
Requires: %{_bindir}/createrepo_c
Requires: python2-%{name} = %{version}-%{release}
%if !%{with python3}
Provides: dnf-plugin-local = %{version}-%{release}
Provides: dnf-plugins-extras-local = %{version}-%{release}
%endif
Provides: python2-dnf-plugins-extras-local = %{version}-%{release}
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts: python3-dnf-plugin-local < %{version}-%{release}
Obsoletes: python2-dnf-plugins-extras-local < %{dnf_plugins_extra}
%description -n python2-dnf-plugin-local
Local Plugin for DNF, Python 2 version. Automatically copy all downloaded packages to a
repository on the local filesystem and generating repo metadata.
%if %{with python3}
%package -n python3-dnf-plugin-local
Summary: Local Plugin for DNF
Requires: %{_bindir}/createrepo_c
Requires: python3-%{name} = %{version}-%{release}
Provides: dnf-plugin-local = %{version}-%{release}
Provides: python3-dnf-plugins-extras-local = %{version}-%{release}
Provides: dnf-plugins-extras-local = %{version}-%{release}
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts: python2-dnf-plugin-local < %{version}-%{release}
Obsoletes: python3-dnf-plugins-extras-local < %{dnf_plugins_extra}
%description -n python3-dnf-plugin-local
Local Plugin for DNF, Python 3 version. Automatically copy all downloaded
packages to a repository on the local filesystem and generating repo metadata.
%endif
%package -n python2-dnf-plugin-migrate
Summary: Migrate Plugin for DNF
Requires: python2-%{name} = %{version}-%{release}
Requires: yum
Provides: dnf-plugin-migrate = %{version}-%{release}
Provides: python2-dnf-plugins-extras-migrate = %{version}-%{release}
Provides: dnf-command(migrate)
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}
%description -n python2-dnf-plugin-migrate
Migrate Plugin for DNF, Python 2 version. Migrates history, group and yumdb data from yum to dnf.
%package -n python2-dnf-plugin-show-leaves
Summary: Leaves Plugin for DNF
Requires: python2-%{name} = %{version}-%{release}
Requires: python2-dnf-plugin-leaves = %{version}-%{release}
%if !%{with python3}
Provides: dnf-plugin-show-leaves = %{version}-%{release}
Provides: dnf-command(show-leaves)
Provides: dnf-plugins-extras-show-leaves = %{version}-%{release}
%endif
Provides: python2-dnf-plugins-extras-show-leaves = %{version}-%{release}
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts: python3-dnf-plugin-show-leaves < %{version}-%{release}
Obsoletes: python2-dnf-plugins-extras-show-leaves < %{dnf_plugins_extra}
%description -n python2-dnf-plugin-show-leaves
Show-leaves Plugin for DNF, Python 2 version. List all installed
packages that are no longer required by any other installed package
after a transaction.
%if %{with python3}
%package -n python3-dnf-plugin-show-leaves
Summary: Show-leaves Plugin for DNF
Requires: python3-%{name} = %{version}-%{release}
Requires: python3-dnf-plugin-leaves = %{version}-%{release}
Provides: dnf-plugin-show-leaves = %{version}-%{release}
Provides: python3-dnf-plugins-extras-show-leaves = %{version}-%{release}
Provides: dnf-command(show-leaves)
Provides: dnf-plugins-extras-show-leaves = %{version}-%{release}
Conflicts: dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts: python2-dnf-plugin-show-leaves < %{version}-%{release}
Obsoletes: python3-dnf-plugins-extras-show-leaves < %{dnf_plugins_extra}
%description -n python3-dnf-plugin-show-leaves
Show-leaves Plugin for DNF, Python 3 version. List all installed
packages that are no longer required by any other installed package
after a transaction.
%endif
%package -n python2-dnf-plugin-versionlock
Summary: Version Lock Plugin for DNF
Requires: python2-%{name} = %{version}-%{release}
%if !%{with python3}
Provides: dnf-plugin-versionlock = %{version}-%{release}
Provides: dnf-command(versionlock)
Provides: dnf-plugins-extras-versionlock = %{version}-%{release}
%endif
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 -n python2-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.
%if %{with python3}
%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: 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.
%endif
%prep
@ -122,14 +316,36 @@ PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
%endif
%files
%{_mandir}/man8/dnf.plugin.*
%{_mandir}/man8/dnf.plugin.builddep.*
%{_mandir}/man8/dnf.plugin.config_manager.*
%{_mandir}/man8/dnf.plugin.copr.*
%{_mandir}/man8/dnf.plugin.debug.*
%{_mandir}/man8/dnf.plugin.debuginfo-install.*
%{_mandir}/man8/dnf.plugin.download.*
%{_mandir}/man8/dnf.plugin.generate_completion_cache.*
%{_mandir}/man8/dnf.plugin.needs_restarting.*
%{_mandir}/man8/dnf.plugin.repoclosure.*
%{_mandir}/man8/dnf.plugin.repograph.*
%{_mandir}/man8/dnf.plugin.repomanage.*
%{_mandir}/man8/dnf.plugin.reposync.*
%files -n python2-%{name} -f %{name}.lang
%license COPYING
%doc AUTHORS README.rst
%ghost %{_var}/cache/dnf/packages.db
%config(noreplace) %{_sysconfdir}/dnf/plugins/*
%{python2_sitelib}/dnf-plugins/*
%config(noreplace) %{_sysconfdir}/dnf/plugins/debuginfo-install.conf
%{python2_sitelib}/dnf-plugins/builddep.*
%{python2_sitelib}/dnf-plugins/config_manager.*
%{python2_sitelib}/dnf-plugins/copr.*
%{python2_sitelib}/dnf-plugins/debug.*
%{python2_sitelib}/dnf-plugins/debuginfo-install.*
%{python2_sitelib}/dnf-plugins/download.*
%{python2_sitelib}/dnf-plugins/generate_completion_cache.*
%{python2_sitelib}/dnf-plugins/needs_restarting.*
%{python2_sitelib}/dnf-plugins/repoclosure.*
%{python2_sitelib}/dnf-plugins/repograph.*
%{python2_sitelib}/dnf-plugins/repomanage.*
%{python2_sitelib}/dnf-plugins/reposync.*
%{python2_sitelib}/dnfpluginscore/
%if %{with python3}
@ -137,13 +353,128 @@ PYTHONPATH=./plugins nosetests-%{python3_version} -s tests/
%license COPYING
%doc AUTHORS README.rst
%ghost %{_var}/cache/dnf/packages.db
%config(noreplace) %{_sysconfdir}/dnf/plugins/*
%{python3_sitelib}/dnf-plugins/*.py
%{python3_sitelib}/dnf-plugins/__pycache__/*
%config(noreplace) %{_sysconfdir}/dnf/plugins/debuginfo-install.conf
%{python3_sitelib}/dnf-plugins/builddep.py
%{python3_sitelib}/dnf-plugins/config_manager.py
%{python3_sitelib}/dnf-plugins/copr.py
%{python3_sitelib}/dnf-plugins/debug.py
%{python3_sitelib}/dnf-plugins/debuginfo-install.py
%{python3_sitelib}/dnf-plugins/download.py
%{python3_sitelib}/dnf-plugins/generate_completion_cache.py
%{python3_sitelib}/dnf-plugins/needs_restarting.py
%{python3_sitelib}/dnf-plugins/repoclosure.py
%{python3_sitelib}/dnf-plugins/repograph.py
%{python3_sitelib}/dnf-plugins/repomanage.py
%{python3_sitelib}/dnf-plugins/reposync.py
%{python3_sitelib}/dnf-plugins/__pycache__/builddep.*
%{python3_sitelib}/dnf-plugins/__pycache__/config_manager.*
%{python3_sitelib}/dnf-plugins/__pycache__/copr.*
%{python3_sitelib}/dnf-plugins/__pycache__/debug.*
%{python3_sitelib}/dnf-plugins/__pycache__/debuginfo-install.*
%{python3_sitelib}/dnf-plugins/__pycache__/download.*
%{python3_sitelib}/dnf-plugins/__pycache__/generate_completion_cache.*
%{python3_sitelib}/dnf-plugins/__pycache__/needs_restarting.*
%{python3_sitelib}/dnf-plugins/__pycache__/repoclosure.*
%{python3_sitelib}/dnf-plugins/__pycache__/repograph.*
%{python3_sitelib}/dnf-plugins/__pycache__/repomanage.*
%{python3_sitelib}/dnf-plugins/__pycache__/reposync.*
%{python3_sitelib}/dnfpluginscore/
%endif
%files -n python2-dnf-plugin-leaves
%{python2_sitelib}/dnf-plugins/leaves.*
%{_mandir}/man8/dnf.plugin.leaves.*
%if %{with python3}
%files -n python3-dnf-plugin-leaves
%{python3_sitelib}/dnf-plugins/leaves.*
%{python3_sitelib}/dnf-plugins/__pycache__/leaves.*
%{_mandir}/man8/dnf.plugin.leaves.*
%endif
%files -n python2-dnf-plugin-local
%config(noreplace) %{_sysconfdir}/dnf/plugins/local.conf
%{python2_sitelib}/dnf-plugins/local.*
%{_mandir}/man8/dnf.plugin.local.*
%if %{with python3}
%files -n python3-dnf-plugin-local
%config(noreplace) %{_sysconfdir}/dnf/plugins/local.conf
%{python3_sitelib}/dnf-plugins/local.*
%{python3_sitelib}/dnf-plugins/__pycache__/local.*
%{_mandir}/man8/dnf.plugin.local.*
%endif
%files -n python2-dnf-plugin-migrate
%{python2_sitelib}/dnf-plugins/migrate.*
%{_mandir}/man8/dnf.plugin.migrate.*
%files -n python2-dnf-plugin-show-leaves
%{python2_sitelib}/dnf-plugins/show_leaves.*
%{_mandir}/man8/dnf.plugin.show-leaves.*
%if %{with python3}
%files -n python3-dnf-plugin-show-leaves
%{python3_sitelib}/dnf-plugins/show_leaves.*
%{python3_sitelib}/dnf-plugins/__pycache__/show_leaves.*
%{_mandir}/man8/dnf.plugin.show-leaves.*
%endif
%files -n python2-dnf-plugin-versionlock
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list
%{python2_sitelib}/dnf-plugins/versionlock.*
%{_mandir}/man8/dnf.plugin.versionlock.*
%if %{with python3}
%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.*
%{_mandir}/man8/dnf.plugin.versionlock.*
%endif
%changelog
* Tue May 02 2017 Jaroslav Mracek <jmracek@redhat.com> 2.0.0-1
- update release notes (Jaroslav Mracek)
- po: Update translations (Igor Gnatenko)
- Fix incorrect exclude of locked version in versionlock (Jaroslav Mracek)
- po: Update translations (Igor Gnatenko)
- Setup selectively provides for python2 packages (Jaroslav Mracek)
- Build python3 packages only if with_python3 (Jaroslav Mracek)
- Search only according nevra in versionlock (Jaroslav Mracek)
- Solve a problem in performance of versionlock (RhBug:1431493) (Jaroslav
Mracek)
- Repoclosure exit with 1 if unsatisfied dependencies (RhBug:1416782) (Jaroslav
Rohel)
- Not raise an Error if strict=False and --url for download command (Jaroslav
Mracek)
- Check argument if it is a file ending with .rpm (RhBug:1436570) (Jaroslav
Mracek)
- update link to "What I can build in Copr? documentation page (clime)
- po: Update translations (Igor Gnatenko)
- Create dir for local plugin if path not exist (Jaroslav Mracek)
- Correct some PEP8 violations after plugin import (Jaroslav Mracek)
- Add debug into dnf-plugins-core (Jaroslav Mracek)
- Added latest doc changes from plugins-extras upstream (Jaroslav Mracek)
- bump version to 2.0.0 (Jaroslav Mracek)
- Add migrate plugin into dnf-plugins-core (Jaroslav Mracek)
- Add man pages for transfered plugins (Jaroslav Mracek)
- Add provide dnf-plugin-* for each plugin (Jaroslav Mracek)
- Correct some PEP8 violations (Jaroslav Mracek)
- Add local into dnf-plugins-core (Jaroslav Mracek)
- Add leaves and show-leaves into dnf-plugins-core (Jaroslav Mracek)
- Add versionlock into dnf-plugins-core (Jaroslav Mracek)
- Add repograph into dnf-plugins-core (Jaroslav Mracek)
- Add repoclosure into dnf-plugins-core (Jaroslav Mracek)
- Add repomanage into dnf-plugins-core (Jaroslav Mracek)
- Add --archlist option for dnf download command (Jaroslav Mracek)
- Change code that provides package location for download command (Jaroslav
Mracek)
- po: update translations (Igor Gnatenko)
- po: add sv translations (Igor Gnatenko)
* Tue Mar 21 2017 Igor Gnatenko <ignatenko@redhat.com> 1.1.0-1
- dnf dowload --resolve should download everytime requested packages
(RhBug:1276611) (stepasm)

View File

@ -1 +1 @@
SHA512 (dnf-plugins-core-1.1.0.tar.gz) = c36fc7ca1de0e4ea74dae2bd60a6cf0d1a789b35f212fe13377a19a05f79ba79553848d79a54b6755ca7ac55e3c58c178f299daaf0b0bc4734669da9fbec30e4
SHA512 (dnf-plugins-core-2.0.0.tar.gz) = 395158ae0455d552e4af154388692be444cca08ba9be9660e95b8ad6b3a47ed7875d119412913c08aaecb181eba0629d9b4a836587383077e7393e418f21e930