# Conditional build:
%bcond_without tests # build without tests
#
-%define hawkey_ver 0.59.0
-%define libcomps_ver 0.1.8
-%define libmodulemd_ver 2.9.3
-%define rpm_ver 4.14.0
+%define hawkey_ver 0.67.0
+%define libcomps_ver 0.1.8
+%define libmodulemd_ver 2.9.3
+%define rpm_ver 4.14.0
+
+%define _enable_debug_packages 0
Summary: Package manager
Summary(pl.UTF-8): Zarządca pakietów
Name: dnf
Version: 4.12.0
-Release: 0.1
+Release: 2
Group: Base
# GPL v2+ with GPL v2 and GPL parts; for a breakdown of the licensing, see PACKAGE-LICENSING
License: GPL v2 (parts on GPL v2+ or GPL)
Source4: pld-multilib.repo
Patch0: install.patch
Patch1: repos.d.patch
+Patch2: uname-cpuinfo-deps.patch
URL: https://github.com/rpm-software-management/dnf
BuildRequires: bash-completion-devel
BuildRequires: cmake >= 2.4
BuildRequires: python3-modules
BuildRequires: python3-nose
BuildRequires: python3-rpm >= %{rpm_ver}
+BuildRequires: rpm-build >= 4.6
BuildRequires: rpmbuild(macros) >= 1.647
BuildRequires: rpm-pythonprov
BuildRequires: sed >= 4.0
Requires: python3-hawkey >= %{hawkey_ver}
Requires: python3-libcomps >= %{libcomps_ver}
Requires: python3-libdnf >= %{hawkey_ver}
+Requires: python3-modules
Requires: python3-rpm
Requires: systemd-units >= 0.38
Recommends: deltarpm
Recommends: python3-dbus
Recommends: python3-unbound
Recommends: rpm-plugin-systemd-inhibit
-BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%description -l pl.UTF-8
Marzędzie umożliwiające użytkownikom zarządzanie pakietami w systemie.
-%package common
-Summary: Common data and configuration files for DNF
-Summary(pl.UTF-8): Wspólne dane i pliki konfiguracyjne dla DNF-a
-Group: Base
-Requires: libreport-filesystem
-
-%description common
-Common data and configuration files for DNF.
-
-%description common -l pl.UTF-8
-Wspólne dane i pliki konfiguracyjne dla DNF-a.
-
%package automatic
Summary: Alternative CLI to "dnf upgrade" suitable for automatic, regular execution
Summary(pl.UTF-8): Alternatywny interfejs do "dnf upgrade" nadający się do automatycznego wywoływania
Requires(preun): systemd
Requires(postun): systemd
Requires: %{name} = %{version}-%{release}
+Requires: python3-modules
+BuildArch: noarch
%description automatic
Alternative CLI to "dnf upgrade" suitable for automatic, regular
Group: Applications/Shells
Requires: %{name} = %{version}-%{release}
Requires: bash-completion
+BuildArch: noarch
%description -n bash-completion-dnf
Bash completion for dnf command.
Requires: %{name} = %{version}-%{release}
Recommends: sqlite3
Conflicts: yum < 3.4.3-505
+BuildArch: noarch
%description -n yum
Yum compatibility layer for DNF.
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
install -d build