Remove Requires: fedora-release dependency, use system-release instead.

https://bugzilla.redhat.com/show_bug.cgi?id=1224561
This commit is contained in:
Peter Rajnoha 2015-07-14 10:53:28 +02:00
parent ebc16a877a
commit cd3323b0d4

View File

@ -9,9 +9,7 @@
%define enable_python 1
%define enable_thin 1
# fedora-release >= 23-0.13 enables lvm2-lvmpolld.* systemd
# units by default in /lib/systemd/system-preset/90-default.preset
%define fedora_release_version 23-0.13
%define system_release_version 23
%define systemd_version 189-3
%define dracut_version 002-18
%define util_linux_version 2.24
@ -49,7 +47,7 @@
Summary: Userland logical volume management tools
Name: lvm2
Version: 2.02.125
Release: 1%{?dist}
Release: 2%{?dist}
License: GPLv2
Group: System Environment/Base
URL: http://sources.redhat.com/lvm2
@ -83,7 +81,7 @@ BuildRequires: device-mapper-persistent-data >= %{persistent_data_version}
BuildRequires: sanlock-devel >= %{sanlock_version}
%endif
Requires: %{name}-libs = %{version}-%{release}
Requires: fedora-release >= %{fedora_release_version}
Requires: system-release >= %{system_release_version}
Requires: bash >= %{bash_version}
Requires(post): systemd-units >= %{systemd_version}, systemd-sysv
Requires(preun): systemd-units >= %{systemd_version}
@ -788,6 +786,11 @@ the device-mapper event library.
%{_libdir}/pkgconfig/devmapper-event.pc
%changelog
* Tue Jul 14 2015 Peter Rajnoha <prajnoha@redhat.com> - 2.02.125-2
- Add Requires: system-release>=23 for lvmpolld to be enabled by default
instead of original Requires: fedora-release which may break installations
in environments where fedora-release is not available.
* Tue Jul 07 2015 Peter Rajnoha <prajnoha@redhat.com> - 2.02.125-1
- Fix getline memory usage in lvmpolld.
- Add support --clear-needs-check-flag for cache_check of cache pool metadata.