|
11 | 11 |
|
12 | 12 | %bcond dnf5_obsoletes_dnf %[0%{?fedora} > 40 || 0%{?rhel} > 10]
|
13 | 13 |
|
14 |
| -# override dependencies for rhel 7 |
15 |
| -%if 0%{?rhel} == 7 |
16 |
| - %global rpm_version 4.11.3-32 |
17 |
| -%endif |
18 |
| - |
19 |
| -%if 0%{?rhel} == 7 && 0%{?centos} |
20 |
| - %global rpm_version 4.11.3-25.el7.centos.1 |
21 |
| -%endif |
22 |
| - |
23 | 14 | # override dependencies for fedora 26
|
24 | 15 | %if 0%{?fedora} == 26
|
25 | 16 | %global rpm_version 4.13.0.1-7
|
|
43 | 34 | %global yum_subpackage_name %{name}-yum
|
44 | 35 | %endif
|
45 | 36 | %endif
|
46 |
| -%if 0%{?rhel} && 0%{?rhel} <= 7 |
47 |
| - %global yum_subpackage_name nextgen-yum4 |
48 |
| -%endif |
49 | 37 |
|
50 | 38 | # paths
|
51 | 39 | %global confdir %{_sysconfdir}/%{name}
|
@@ -82,10 +70,7 @@ BuildRequires: bash-completion
|
82 | 70 | Requires: coreutils
|
83 | 71 | BuildRequires: %{_bindir}/sphinx-build-3
|
84 | 72 | Requires: python3-%{name} = %{version}-%{release}
|
85 |
| -%if 0%{?rhel} && 0%{?rhel} <= 7 |
86 |
| -Requires: python-dbus |
87 |
| -Requires: %{_bindir}/sqlite3 |
88 |
| -%elif 0%{?fedora} |
| 73 | +%if 0%{?fedora} |
89 | 74 | Recommends: (%{_bindir}/sqlite3 if (bash-completion and python3-dnf-plugins-core))
|
90 | 75 | %else
|
91 | 76 | Recommends: (python3-dbus if NetworkManager)
|
@@ -145,11 +130,7 @@ Requires: python3-libcomps >= %{libcomps_version}
|
145 | 130 | Requires: python3-libdnf
|
146 | 131 | BuildRequires: python3-rpm >= %{rpm_version}
|
147 | 132 | Requires: python3-rpm >= %{rpm_version}
|
148 |
| -%if 0%{?rhel} && 0%{?rhel} <= 7 |
149 |
| -Requires: rpm-plugin-systemd-inhibit |
150 |
| -%else |
151 | 133 | Recommends: (rpm-plugin-systemd-inhibit if systemd)
|
152 |
| -%endif |
153 | 134 | Provides: dnf4 = %{version}-%{release}
|
154 | 135 | Provides: dnf-command(alias)
|
155 | 136 | Provides: dnf-command(autoremove)
|
|
313 | 294 | %if %{without dnf5_obsoletes_dnf}
|
314 | 295 | %files -f %{name}.lang
|
315 | 296 | %{_bindir}/%{name}
|
316 |
| -%if 0%{?rhel} && 0%{?rhel} <= 7 |
317 |
| -%{_sysconfdir}/bash_completion.d/%{name} |
318 |
| -%else |
319 | 297 | %{_datadir}/bash-completion/completions/%{name}
|
320 |
| -%endif |
321 | 298 | %{_mandir}/man8/%{name}.8*
|
322 | 299 | %{_mandir}/man8/yum2dnf.8*
|
323 | 300 | %{_mandir}/man7/dnf.modularity.7*
|
|
0 commit comments