Hello community, here is the log from the commit of package dnf for openSUSE:Factory checked in at 2019-02-20 14:10:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dnf (Old) and /work/SRC/openSUSE:Factory/.dnf.new.28833 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dnf" Wed Feb 20 14:10:16 2019 rev:10 rq:673180 version:4.0.10 Changes: -------- --- /work/SRC/openSUSE:Factory/dnf/dnf.changes 2018-04-30 22:59:38.322928487 +0200 +++ /work/SRC/openSUSE:Factory/.dnf.new.28833/dnf.changes 2019-02-20 14:10:24.598957871 +0100 @@ -1,0 +2,22 @@ +Thu Feb 7 15:57:02 UTC 2019 - Jan Engelhardt <[email protected]> + +- Reduce generated boilerplate by joining %systemd_* calls. + +------------------------------------------------------------------- +Thu Feb 7 06:39:54 UTC 2019 - Neal Gompa <[email protected]> + +- Rebase to version 4.0.10: + + Migrated large amounts of code to libdnf + + Add support for RH/Fedora modules + + Migrate from YUMDB to new SWDB + + Add dnssec extension for repodata + + Add support for aliases +- Drop Python 2 subpackage +- Drop unneeded patches + * 0001-Add-additional-default-distroverpkg-and-installonlyp.patch + * dnf-2.6.3-Switch-default-reposdir-to-etc-dnf-repos.d.patch + * dnf-2.7.5-Fix-detection-of-Python-2.patch +- Add patch to fix detecting Sphinx in a Python 3 only build + * 0001-doc-Use-the-correct-sphinx-build-binary-for-Python-2.patch + +------------------------------------------------------------------- Old: ---- 0001-Add-additional-default-distroverpkg-and-installonlyp.patch dnf-2.6.3-Switch-default-reposdir-to-etc-dnf-repos.d.patch dnf-2.7.5-Fix-detection-of-Python-2.patch dnf-2.7.5.tar.gz New: ---- 0001-doc-Use-the-correct-sphinx-build-binary-for-Python-2.patch dnf-4.0.10.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dnf.spec ++++++ --- /var/tmp/diff_new_pack.si5Ocq/_old 2019-02-20 14:10:27.502956905 +0100 +++ /var/tmp/diff_new_pack.si5Ocq/_new 2019-02-20 14:10:27.506956903 +0100 @@ -1,8 +1,8 @@ # # spec file for package dnf # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. -# Copyright (c) 2018 Neal Gompa <[email protected]>. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 Neal Gompa <[email protected]>. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -13,26 +13,20 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # -%global hawkey_version 0.11.1 -%global librepo_version 1.7.19 +%global hawkey_version 0.24.1 %global libcomps_version 0.1.8 -%global rpm_version 4.13.0 -%global min_plugins_core 2.1.5 -%global min_plugins_extras 0.10.0 +%global rpm_version 4.14.0 +%global min_plugins_core 4.0.0 +%global min_plugins_extras 3.0.0 %global confdir %{_sysconfdir}/%{name} %global pluginconfpath %{confdir}/plugins -# Compat definitions -%{!?python2_sitelib: %global python2_sitelib %{python_sitelib}} -%{!?make_build: %global make_build %{__make} -O %{?_smp_mflags}} - -%global py2pluginpath %{python2_sitelib}/dnf-plugins %global py3pluginpath %{python3_sitelib}/dnf-plugins # Disable services units stuff, as we're not using them on openSUSE @@ -43,28 +37,23 @@ %bcond_with tests Name: dnf -Version: 2.7.5 +Version: 4.0.10 Release: 0 Summary: Package manager forked from Yum, using libsolv as a dependency resolver # For a breakdown of the licensing, see PACKAGE-LICENSING -License: GPL-2.0+ AND GPL-2.0 +License: GPL-2.0-or-later AND GPL-2.0-only Group: System/Packages Url: https://github.com/rpm-software-management/dnf Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz -# PATCH-FIX-UPSTREAM: Ensure DNF can recognize SUSE distro-release and kernel packages properly -# Proposed upstream: https://github.com/rpm-software-management/dnf/pull/1007 -Patch0001: 0001-Add-additional-default-distroverpkg-and-installonlyp.patch - -# PATCH-FIX-OPENSUSE: Switch default reposdir to /etc/dnf/repos.d -Patch1000: dnf-2.6.3-Switch-default-reposdir-to-etc-dnf-repos.d.patch -# PATCH-FIX-OPENSUSE: Fix detection of Python 2 -Patch1001: dnf-2.7.5-Fix-detection-of-Python-2.patch +# PATCH-FIX-UPSTREAM: Use the correct sphinx-build binary for Python 2 or Python 3 +Patch0001: 0001-doc-Use-the-correct-sphinx-build-binary-for-Python-2.patch +BuildRequires: bash-completion BuildRequires: cmake BuildRequires: gettext -BuildRequires: python-Sphinx -BuildRequires: python-bugzilla +BuildRequires: python3-Sphinx +BuildRequires: python3-bugzilla Requires: python3-dnf = %{version}-%{release} Recommends: %{name}-lang >= %{version} Recommends: dnf-plugins-core @@ -119,39 +108,6 @@ %description yum As a Yum CLI compatibility layer, it supplies %{_bindir}/yum redirecting to DNF. -%package -n python2-dnf -Summary: Python 2 interface to DNF -Group: System/Packages -BuildRequires: python-gpg -BuildRequires: python-pyliblzma -BuildRequires: python2-curses -BuildRequires: python2-devel -BuildRequires: python2-hawkey >= %{hawkey_version} -BuildRequires: python2-iniparse -BuildRequires: python2-libcomps >= %{libcomps_version} -BuildRequires: python2-librepo >= %{librepo_version} -BuildRequires: python2-nose -BuildRequires: rpm-python >= %{rpm_version} -Recommends: (python2-dbus-python if NetworkManager) -Requires: deltarpm -Requires: dnf-conf = %{version}-%{release} -Requires: python-gpg -Requires: python-pyliblzma -Requires: python2-curses -Requires: python2-hawkey >= %{hawkey_version} -Requires: python2-iniparse -Requires: python2-libcomps >= %{libcomps_version} -Requires: python2-librepo >= %{librepo_version} -Requires: rpm-python >= %{rpm_version} -Recommends: bash-completion -# DNF 2.0 doesn't work with old plugins -Conflicts: python2-dnf-plugins-core < %{min_plugins_core} -Conflicts: python2-dnf-plugins-extras-common < %{min_plugins_extras} -Provides: python-dnf = %{version}-%{release} - -%description -n python2-dnf -This package provides the Python 2 interface to DNF. - %package -n python3-dnf Summary: Python 3 interface to DNF Group: System/Packages @@ -161,7 +117,6 @@ BuildRequires: python3-hawkey >= %{hawkey_version} BuildRequires: python3-iniparse BuildRequires: python3-libcomps >= %{libcomps_version} -BuildRequires: python3-librepo >= %{librepo_version} BuildRequires: python3-nose BuildRequires: python3-rpm >= %{rpm_version} Recommends: (python3-dbus-python if NetworkManager) @@ -172,12 +127,13 @@ Requires: python3-hawkey >= %{hawkey_version} Requires: python3-iniparse Requires: python3-libcomps >= %{libcomps_version} -Requires: python3-librepo >= %{librepo_version} Requires: python3-rpm >= %{rpm_version} Recommends: bash-completion # DNF 2.0 doesn't work with old plugins Conflicts: python3-dnf-plugins-core < %{min_plugins_core} Conflicts: python3-dnf-plugins-extras-common < %{min_plugins_extras} +# Python 2 subpackage is no longer provided +Obsoletes: python2-dnf < 4.0.10 %description -n python3-dnf This package provides the Python 3 interface to DNF. @@ -200,32 +156,23 @@ %prep %autosetup -p1 -mkdir py3 +# Fix sphinx-build run... +sed -e "s/sphinx-build-3/sphinx-build-%{python3_version}/" -i doc/CMakeLists.txt %build -%cmake +%cmake -DPYTHON_DESIRED:FILEPATH=%{__python3} %make_build make doc-man -pushd ../py3 -%cmake -DPYTHON_DESIRED:str=3 -DWITH_MAN=0 ../../ -%make_build -popd - %install pushd ./build %make_install popd -pushd ./py3/build -%make_install -popd - %find_lang %{name} mkdir -p %{buildroot}%{confdir}/repos.d mkdir -p %{buildroot}%{pluginconfpath} -mkdir -p %{buildroot}%{py2pluginpath} mkdir -p %{buildroot}%{py3pluginpath} mkdir -p %{buildroot}%{_sharedstatedir}/dnf mkdir -p %{buildroot}%{_localstatedir}/log @@ -234,7 +181,6 @@ ln -sr %{buildroot}%{_bindir}/dnf-3 %{buildroot}%{_bindir}/dnf mv %{buildroot}%{_bindir}/dnf-automatic-3 %{buildroot}%{_bindir}/dnf-automatic -rm %{buildroot}%{_bindir}/dnf-automatic-2 ln -sr %{buildroot}%{_bindir}/dnf-3 %{buildroot}%{_bindir}/yum %if ! %{with service_units} @@ -252,10 +198,6 @@ pushd ./build make ARGS="-V" test popd - -pushd ./py3/build -make ARGS="-V" test -popd %endif %files @@ -291,7 +233,7 @@ %ghost %{_sharedstatedir}/%{name}/groups.json %ghost %{_sharedstatedir}/%{name}/yumdb %ghost %{_sharedstatedir}/%{name}/history -%{_sysconfdir}/bash_completion.d/dnf +%{_datadir}/bash-completion/completions/dnf %{_mandir}/man5/dnf.conf.5.* %{_tmpfilesdir}/dnf.conf @@ -300,14 +242,9 @@ %doc AUTHORS README.rst %{_bindir}/yum %{_mandir}/man8/yum.8.* - -%files -n python2-dnf -%license COPYING PACKAGE-LICENSING -%{_bindir}/dnf-2 -%doc AUTHORS README.rst -%exclude %{python2_sitelib}/dnf/automatic -%{python2_sitelib}/dnf/ -%dir %{py2pluginpath} +%{_mandir}/man8/yum-shell.8* +%{_mandir}/man5/yum.conf.5* +%{_mandir}/man1/yum-aliases.1* %files -n python3-dnf %license COPYING PACKAGE-LICENSING @@ -342,19 +279,13 @@ %systemd_postun_with_restart %{name}-makecache.timer %post automatic -%systemd_post %{name}-automatic-notifyonly.timer -%systemd_post %{name}-automatic-download.timer -%systemd_post %{name}-automatic-install.timer +%systemd_post %{name}-automatic.timer %{name}-automatic-notifyonly.timer %{name}-automatic-download.timer %{name}-automatic-install.timer %preun automatic -%systemd_preun %{name}-automatic-notifyonly.timer -%systemd_preun %{name}-automatic-download.timer -%systemd_preun %{name}-automatic-install.timer +%systemd_preun %{name}-automatic.timer %{name}-automatic-notifyonly.timer %{name}-automatic-download.timer %{name}-automatic-install.timer %postun automatic -%systemd_postun_with_restart %{name}-automatic-notifyonly.timer -%systemd_postun_with_restart %{name}-automatic-download.timer -%systemd_postun_with_restart %{name}-automatic-install.timer +%systemd_postun_with_restart %{name}-automatic.timer %{name}-automatic-notifyonly.timer %{name}-automatic-download.timer %{name}-automatic-install.timer %endif ++++++ 0001-doc-Use-the-correct-sphinx-build-binary-for-Python-2.patch ++++++ >From 58f28c51ec8b3e0fd7245e713c8fa75ddd23cc86 Mon Sep 17 00:00:00 2001 From: Neal Gompa <[email protected]> Date: Sun, 6 Jan 2019 20:56:12 -0500 Subject: [PATCH] doc: Use the correct sphinx-build binary for Python 2 or Python 3 When trying to build dnf purely as a Python 3 package, man page generation fails because sphinx-build cannot be found, due to python3-sphinx not providing that binary. --- doc/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index d8c9fe65..f8a6e18e 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,11 +1,19 @@ # html and man documentation are separate targets, apparently there's no way to # tell sphinx-build to do them both in one go: + +if (${PYTHON_VERSION_MAJOR} STREQUAL "2") + SET(SPHINX_BUILD_NAME "sphinx-build") +else() + SET(SPHINX_BUILD_NAME "sphinx-build-3") +endif() + + ADD_CUSTOM_TARGET (doc-html - PYTHONPATH=${CMAKE_SOURCE_DIR} sphinx-build -b html + PYTHONPATH=${CMAKE_SOURCE_DIR} ${SPHINX_BUILD_NAME} -b html ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building html documentation") ADD_CUSTOM_TARGET (doc-man - PYTHONPATH=${CMAKE_SOURCE_DIR} sphinx-build -b man + PYTHONPATH=${CMAKE_SOURCE_DIR} ${SPHINX_BUILD_NAME} -b man ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} COMMENT "Building manpage documentation") ADD_CUSTOM_TARGET (doc) -- 2.20.1 ++++++ dnf-2.7.5.tar.gz -> dnf-4.0.10.tar.gz ++++++ ++++ 277419 lines of diff (skipped)
