Add epoch for easier downstream (el) rebuild.

This commit is contained in:
Marian Csontos 2017-12-08 15:11:57 +01:00
parent 4bf852be30
commit 77e0a10e85

View File

@ -26,12 +26,16 @@
%global enable_lockd_sanlock %{enable_lvmlockd} %global enable_lockd_sanlock %{enable_lvmlockd}
%global enable_lockd_dlm %{enable_lvmlockd} %global enable_lockd_dlm %{enable_lvmlockd}
%if 0%{?rhel} && 0%{?rhel} <= 7 %if 0%{?rhel} && 0%{?rhel} <= 8
%ifnarch i686 x86_64 %ifnarch i686 x86_64 ppc64le s390x
%global enable_cluster 0 %global enable_cluster 0
%global enable_cmirror 0 %global enable_cmirror 0
%global enable_lockd_dlm 0
%endif
%ifnarch x86_64 ppc64 aarch64
%global enable_lockd_sanlock 0
%endif %endif
%global enable_lvmdbusd 0
%endif %endif
%if %{enable_cluster} %if %{enable_cluster}
@ -52,9 +56,11 @@
Summary: Userland logical volume management tools Summary: Userland logical volume management tools
Name: lvm2 Name: lvm2
%if 0%{?rhel}
Epoch: %{rhel}
%endif
Version: 2.02.176 Version: 2.02.176
Release: 1%{?dist} Release: 2%{?dist}
License: GPLv2 License: GPLv2
Group: System Environment/Base Group: System Environment/Base
URL: http://sources.redhat.com/lvm2 URL: http://sources.redhat.com/lvm2
@ -91,7 +97,7 @@ BuildRequires: device-mapper-persistent-data >= %{persistent_data_version}
%if %{enable_lockd_sanlock} %if %{enable_lockd_sanlock}
BuildRequires: sanlock-devel >= %{sanlock_version} BuildRequires: sanlock-devel >= %{sanlock_version}
%endif %endif
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{?epoch}:%{version}-%{release}
%if 0%{?fedora} %if 0%{?fedora}
Requires: system-release >= %{system_release_version} Requires: system-release >= %{system_release_version}
%endif %endif
@ -399,9 +405,9 @@ systemctl start lvm2-lvmpolld.socket
Summary: Development libraries and headers Summary: Development libraries and headers
Group: Development/Libraries Group: Development/Libraries
License: LGPLv2 License: LGPLv2
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{?epoch}:%{version}-%{release}
Requires: device-mapper-devel = %{device_mapper_version}-%{release} Requires: device-mapper-devel = %{?epoch}:%{device_mapper_version}-%{release}
Requires: device-mapper-event-devel = %{device_mapper_version}-%{release} Requires: device-mapper-event-devel = %{?epoch}:%{device_mapper_version}-%{release}
Requires: pkgconfig Requires: pkgconfig
%description devel %description devel
@ -424,7 +430,7 @@ NOTE: lvm2app is deprectaed. Migration to D-Bus API provided by
Summary: Shared libraries for lvm2 Summary: Shared libraries for lvm2
License: LGPLv2 License: LGPLv2
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: device-mapper-event = %{device_mapper_version}-%{release} Requires: device-mapper-event = %{?epoch}:%{device_mapper_version}-%{release}
%description libs %description libs
This package contains shared lvm2 libraries for applications. This package contains shared lvm2 libraries for applications.
@ -462,9 +468,9 @@ License: LGPLv2
Group: Development/Libraries Group: Development/Libraries
%{?python_provide:%python_provide python2-lvm} %{?python_provide:%python_provide python2-lvm}
# For compatibility with old name: # For compatibility with old name:
Provides: %{name}-python-libs = %{version}-%{release} Provides: %{name}-python-libs = %{?epoch}:%{version}-%{release}
Obsoletes: %{name}-python-libs < %{version}-%{release} Obsoletes: %{name}-python-libs < %{?epoch}:%{version}-%{release}
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{?epoch}:%{version}-%{release}
%description -n python2-lvm-deprecated %description -n python2-lvm-deprecated
Deprecated python module to allow the creation and Deprecated python module to allow the creation and
@ -480,12 +486,12 @@ Migration to D-Bus API provided by %{name}-dbusd is recommended.
Summary: Python 3 module to access LVM (Deprecated) Summary: Python 3 module to access LVM (Deprecated)
License: LGPLv2 License: LGPLv2
Group: Development/Libraries Group: Development/Libraries
Provides: python3-lvm = %{version}-%{release} Provides: python3-lvm = %{?epoch}:%{version}-%{release}
%{?python_provide:%python_provide python3-lvm} %{?python_provide:%python_provide python3-lvm}
# For compatibility with old name: # For compatibility with old name:
Provides: %{name}-python3-libs = %{version}-%{release} Provides: %{name}-python3-libs = %{?epoch}:%{version}-%{release}
Obsoletes: %{name}-python3-libs < %{version}-%{release} Obsoletes: %{name}-python3-libs < %{?epoch}:%{version}-%{release}
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{?epoch}:%{version}-%{release}
%description -n python3-lvm-deprecated %description -n python3-lvm-deprecated
Deprecated python 3 module to allow the creation and Deprecated python 3 module to allow the creation and
@ -507,12 +513,12 @@ Migration to D-Bus API provided by %{name}-dbusd is recommended.
%package lockd %package lockd
Summary: LVM locking daemon Summary: LVM locking daemon
Group: System Environment/Base Group: System Environment/Base
Requires: lvm2 = %{version}-%{release} Requires: lvm2 = %{?epoch}:%{version}-%{release}
%if %{enable_lockd_sanlock} %if %{enable_lockd_sanlock}
Requires: sanlock-lib >= %{sanlock_version} Requires: sanlock-lib >= %{sanlock_version}
%endif %endif
%if %{enable_lockd_dlm} %if %{enable_lockd_dlm}
Requires: dlm >= %{dlm_version} Requires: dlm-lib >= %{dlm_version}
%endif %endif
Requires(post): systemd-units >= %{systemd_version} Requires(post): systemd-units >= %{systemd_version}
Requires(preun): systemd-units >= %{systemd_version} Requires(preun): systemd-units >= %{systemd_version}
@ -552,8 +558,8 @@ LVM commands use lvmlockd to coordinate access to shared storage.
Summary: Cluster extensions for userland logical volume management tools Summary: Cluster extensions for userland logical volume management tools
License: GPLv2 License: GPLv2
Group: System Environment/Base Group: System Environment/Base
Requires: lvm2 = %{version}-%{release} Requires: lvm2 = %{?epoch}:%{version}-%{release}
Requires(preun): device-mapper >= %{device_mapper_version} Requires(preun): device-mapper >= %{?epoch}:%{device_mapper_version}
Requires(preun): lvm2 >= 2.02 Requires(preun): lvm2 >= 2.02
Requires: corosync >= %{corosync_version} Requires: corosync >= %{corosync_version}
Requires: dlm >= %{dlm_version} Requires: dlm >= %{dlm_version}
@ -585,7 +591,7 @@ fi
Summary: Additional files to support clustered LVM2 in standalone mode Summary: Additional files to support clustered LVM2 in standalone mode
License: GPLv2 License: GPLv2
Group: System Environment/Base Group: System Environment/Base
Requires: lvm2-cluster = %{version}-%{release} Requires: lvm2-cluster = %{?epoch}:%{version}-%{release}
%description cluster-standalone %description cluster-standalone
@ -622,7 +628,7 @@ involvement (e.g. pacemaker).
Summary: Daemon for device-mapper-based clustered mirrors Summary: Daemon for device-mapper-based clustered mirrors
Group: System Environment/Base Group: System Environment/Base
Requires: corosync >= %{corosync_version} Requires: corosync >= %{corosync_version}
Requires: device-mapper = %{device_mapper_version}-%{release} Requires: device-mapper = %{?epoch}:%{device_mapper_version}-%{release}
Requires: resource-agents >= %{resource_agents_version} Requires: resource-agents >= %{resource_agents_version}
%description -n cmirror %description -n cmirror
@ -640,7 +646,7 @@ Daemon providing device-mapper-based mirrors in a shared-storage cluster.
Summary: Additional files to support device-mapper-based clustered mirrors in standalone mode Summary: Additional files to support device-mapper-based clustered mirrors in standalone mode
License: GPLv2 License: GPLv2
Group: System Environment/Base Group: System Environment/Base
Requires: cmirror >= %{version}-%{release} Requires: cmirror >= %{?epoch}:%{version}-%{release}
%description -n cmirror-standalone %description -n cmirror-standalone
@ -673,7 +679,7 @@ involvement (e.g. pacemaker).
Summary: LVM2 D-Bus daemon Summary: LVM2 D-Bus daemon
License: GPLv2 License: GPLv2
Group: System Environment/Base Group: System Environment/Base
Requires: lvm2 >= %{version}-%{release} Requires: lvm2 >= %{?epoch}:%{version}-%{release}
Requires: dbus Requires: dbus
Requires: python3-dbus Requires: python3-dbus
Requires: python3-pyudev Requires: python3-pyudev
@ -716,7 +722,7 @@ Version: %{device_mapper_version}
License: GPLv2 License: GPLv2
Group: System Environment/Base Group: System Environment/Base
URL: http://sources.redhat.com/dm URL: http://sources.redhat.com/dm
Requires: device-mapper-libs = %{device_mapper_version}-%{release} Requires: device-mapper-libs = %{?epoch}:%{device_mapper_version}-%{release}
Requires: util-linux >= %{util_linux_version} Requires: util-linux >= %{util_linux_version}
Requires: systemd >= %{systemd_version} Requires: systemd >= %{systemd_version}
# We need dracut to install required udev rules if udev_sync # We need dracut to install required udev rules if udev_sync
@ -753,7 +759,7 @@ Summary: Development libraries and headers for device-mapper
Version: %{device_mapper_version} Version: %{device_mapper_version}
License: LGPLv2 License: LGPLv2
Group: Development/Libraries Group: Development/Libraries
Requires: device-mapper = %{device_mapper_version}-%{release} Requires: device-mapper = %{?epoch}:%{device_mapper_version}-%{release}
Requires: pkgconfig Requires: pkgconfig
%description -n device-mapper-devel %description -n device-mapper-devel
@ -771,7 +777,7 @@ Summary: Device-mapper shared library
Version: %{device_mapper_version} Version: %{device_mapper_version}
License: LGPLv2 License: LGPLv2
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: device-mapper = %{device_mapper_version}-%{release} Requires: device-mapper = %{?epoch}:%{device_mapper_version}-%{release}
%description -n device-mapper-libs %description -n device-mapper-libs
This package contains the device-mapper shared library, libdevmapper. This package contains the device-mapper shared library, libdevmapper.
@ -791,8 +797,8 @@ This package contains the device-mapper shared library, libdevmapper.
Summary: Device-mapper event daemon Summary: Device-mapper event daemon
Group: System Environment/Base Group: System Environment/Base
Version: %{device_mapper_version} Version: %{device_mapper_version}
Requires: device-mapper = %{device_mapper_version}-%{release} Requires: device-mapper = %{?epoch}:%{device_mapper_version}-%{release}
Requires: device-mapper-event-libs = %{device_mapper_version}-%{release} Requires: device-mapper-event-libs = %{?epoch}:%{device_mapper_version}-%{release}
Requires(post): systemd-units Requires(post): systemd-units
Requires(preun): systemd-units Requires(preun): systemd-units
Requires(postun): systemd-units Requires(postun): systemd-units
@ -848,7 +854,7 @@ Summary: Development libraries and headers for the device-mapper event daemon
Version: %{device_mapper_version} Version: %{device_mapper_version}
License: LGPLv2 License: LGPLv2
Group: Development/Libraries Group: Development/Libraries
Requires: device-mapper-event = %{device_mapper_version}-%{release} Requires: device-mapper-event = %{?epoch}:%{device_mapper_version}-%{release}
Requires: pkgconfig Requires: pkgconfig
%description -n device-mapper-event-devel %description -n device-mapper-event-devel