2013-05-08 14:33:11 +04:00
% import macros . inc
##############################################################
# Defaults (rawhide)...
% global enable_profiling 0
2015-09-09 16:59:32 +03:00
% global enable_testsuite 1
2024-04-10 18:28:18 +03:00
% global enable_dbusd 1
2013-05-08 14:33:11 +04:00
% global enable_udev 1
% global enable_systemd 1
% global enable_cmirror 1
2015-09-09 16:59:32 +03:00
% global enable_lvmlockd 1
% global enable_lvmpolld 1
2024-04-10 18:28:18 +03:00
% global enable_dmfilemapd 1
2023-11-29 17:26:03 +03:00
% global enable_lvmlockd_dlm 0
% global enable_lvmlockd_sanlock 0
2013-05-08 14:33:11 +04:00
2024-04-12 02:10:49 +03:00
% with default - event - activation % { lvm2_testsuite_build }
2024-04-10 18:29:21 +03:00
2015-09-09 16:59:32 +03:00
% if % { enable_udev }
% service lvmpolld 1
% endif
########################################################
# Normally clustering is maintained via resource agents
#
# enable service only if you know what you are doing
#
% if % { enable_cmirror }
#service cmirrord 1
% endif
2024-04-10 18:28:18 +03:00
% global dlm_version 3.99 . 1 - 1
% global corosync_version 1.99 . 9 - 1
% global buildreq_cluster corosync - devel >= % { corosync_version }, dlm - devel >= % { dlm_version }
% global req_cluster corosync >= % { corosync_version }, dlm >= % { dlm_version }
2013-05-08 14:33:11 +04:00
2014-05-20 21:56:20 +04:00
% with cache internal
2013-05-08 14:33:11 +04:00
% with thin internal
% with thin_check % { _sbindir } / thin_check
2013-08-30 20:24:25 +04:00
% with thin_repair % { _sbindir } / thin_repair
2013-08-30 20:30:20 +04:00
% with thin_dump % { _sbindir } / thin_dump
2019-09-25 09:39:56 +03:00
# TODO disable vdo and writecache for older releases
2018-07-24 16:37:15 +03:00
% with vdo internal
% with vdo - format % { _bindir } / vdoformat
2019-09-25 09:39:56 +03:00
% with writecache internal
2020-05-05 15:12:32 +03:00
% with integrity internal
2013-05-08 14:33:11 +04:00
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
# NOTE: Required by fedora 38+, maybe older
% global buildreq_udev systemd - devel , systemd - units
2013-05-08 14:33:11 +04:00
% global req_udev udev >= 181 - 1
2015-05-13 14:14:54 +03:00
2022-07-27 19:02:01 +03:00
% if % { fedora } >= 35 || % { rhel } >= 9
% global enable_readline 0
% global enable_editline 1
% else
% global enable_readline 1
% global enable_editline 0
% endif
2024-04-15 17:43:44 +03:00
% if % { fedora } >= 27 || % { rhel } >= 7
2015-07-07 15:54:57 +03:00
% service lvmlockd 1
2024-04-15 17:43:44 +03:00
# For RH7 require 7.4 for sanlock
% if % { rhel } != 7 || 0 % { ? rhel_minor_version } > 4
% global enable_lvmlockd_sanlock 1
% endif
2024-04-15 14:37:16 +03:00
% global sanlock_version 3.7 . 0 - 1
2017-04-18 19:22:07 +03:00
% global enable_lvmlockd_dlm 1
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
# FIXME: Check these conditions against RHEL builds!
2015-07-07 15:54:57 +03:00
% if % { rhel }
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
% ifnarch i686 x86_64 s390x
2017-04-18 19:22:07 +03:00
% global enable_lvmlockd_dlm 0
2015-07-07 15:54:57 +03:00
% endif
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
% ifnarch x86_64 ppc64le ppc64 aarch64
2017-04-18 19:22:07 +03:00
% global enable_lvmlockd_sanlock 0
2015-07-07 15:54:57 +03:00
% endif
% endif
2016-09-16 19:01:31 +03:00
% else
% if % { fedora } >= 22
% service lvmlockd 1
2017-04-18 19:22:07 +03:00
% global enable_lvmlockd_dlm 1
2016-09-16 19:01:31 +03:00
% endif
2015-06-26 20:03:56 +03:00
% endif
2024-04-10 18:28:18 +03:00
% if % { enable_lvmlockd_dlm }
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
% global buildreq_lvmlockd_dlm dlm - devel >= % { dlm_version }
% endif
2024-04-10 18:28:18 +03:00
% if % { enable_lvmlockd_sanlock }
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
% global buildreq_lvmlockd_sanlock sanlock - devel >= % { sanlock_version }
% endif
2015-03-05 23:00:44 +03:00
2013-05-08 14:33:11 +04:00
##############################################################
2024-04-16 22:08:22 +03:00
% if % { rhel } < 7 && % { fedora } < 25
2024-04-10 18:28:18 +03:00
% global enable_dmfilemapd 0
2017-03-28 22:35:46 +03:00
% endif
##############################################################
2024-04-16 22:08:22 +03:00
% if % { rhel } < 8 && % { fedora } < 23
2024-04-10 18:28:18 +03:00
% global enable_dbusd 0
2016-02-18 16:34:17 +03:00
% endif
% if % { enable_dbusd }
2018-07-24 15:55:32 +03:00
% global buildreq_python3_devel python3 - devel
2018-10-22 13:51:51 +03:00
% global buildreq_python3_setuptools python3 - setuptools
2016-02-18 16:34:17 +03:00
% global buildreq_python3_dbus python3 - dbus
% global buildreq_python3_pyudev python3 - pyudev
% endif
##############################################################
2013-05-08 14:33:11 +04:00
% if % { fedora } == 16 || % { rhel } == 6
% global enable_systemd 0
% global buildreq_udev libudev - devel
% global buildreq_cluster openaislib - devel >= 1.1 . 1 - 1 , clusterlib - devel >= 3.0 . 6 - 1 , corosynclib - devel >= 1.2 . 0 - 1
% global req_udev udev >= 158 - 1
% global req_cluster openais >= 1.1 . 1 - 1 , cman >= 3.0 . 6 - 1 , corosync >= 1.2 . 0 - 1
2014-02-28 17:18:15 +04:00
% global _udevbasedir / lib / udev
% global _udevdir % { _udevbasedir } / rules . d
2013-12-17 18:23:08 +04:00
% endif
% if % { fedora } == 16
2014-05-20 21:56:20 +04:00
% with cache none
2013-12-16 19:23:34 +04:00
% with thin none
2013-05-08 14:33:11 +04:00
% with thin_check
2013-08-30 20:24:25 +04:00
% with thin_repair
2013-08-30 20:30:20 +04:00
% with thin_dump
2013-05-08 14:33:11 +04:00
% endif
2022-08-09 17:02:39 +03:00
% if % { rhel } >= 9
% with default - use - devices - file 1
% endif
2013-05-08 14:33:11 +04:00
##############################################################
% if % { fedora } == 17
% global buildreq_udev systemd - devel
% global buildreq_cluster corosync - devel >= 1.99 . 9 - 1 , dlm - devel >= 3.99 . 1 - 1
% global req_udev udev >= 181 - 1
% global req_dm_persistent device - mapper - persistent - data >= 0.1 . 4
% global req_cluster corosync >= 1.99 . 9 - 1 , dlm >= 3.99 . 2 - 1
% endif
##############################################################
# same as FC 16 above, only with older udev
% if % { rhel } == 6
2016-09-16 18:23:32 +03:00
% global req_udev udev >= 147 - 2
2013-12-17 18:23:08 +04:00
% global req_dm_persistent device - mapper - persistent - data >= 0.1 . 4
2013-05-08 14:33:11 +04:00
% endif
##############################################################
# Do not reset Release to 1 unless both lvm2 and device-mapper
# versions are increased together.
2016-09-16 18:23:32 +03:00
% global device_mapper_version 1.02 . 97
2013-05-08 14:33:11 +04:00
Summary : Userland logical volume management tools
Name : lvm2
2015-05-11 15:30:54 +03:00
Version : 2.02 . 120
Release : 1 % { ? dist }
2013-05-08 14:33:11 +04:00
License : GPLv2
Group : System Environment / Base
URL : http :// sources . redhat . com / lvm2
Source0 : ftp :// sources . redhat . com / pub / lvm2 / LVM2 .% { version } . tgz
Source91 : source . inc
Source92 : build . inc
Source93 : packages . inc
Source94 : macros . inc
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
BuildRequires : make
BuildRequires : gcc
% if % { enable_testsuite }
BuildRequires : gcc - c ++
% endif
2013-05-08 14:33:11 +04:00
BuildRequires : libselinux - devel >= 1.30 . 19 - 4 , libsepol - devel
2022-07-27 19:02:01 +03:00
% if % { enable_readline }
2024-04-24 21:53:04 +03:00
BuildRequires : ncurses - devel
2013-05-08 14:33:11 +04:00
BuildRequires : readline - devel
2022-07-27 19:02:01 +03:00
% endif
% if % { enable_editline }
BuildRequires : libedit - devel
% endif
2013-05-08 14:33:11 +04:00
BuildRequires : module - init - tools
BuildRequires : pkgconfig
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
# TODO: Should these be conditional?
BuildRequires : libaio - devel
BuildRequires : libblkid - devel
2013-05-08 14:33:11 +04:00
# Expands to nothing unless at least 2 arguments are given
% define maybe () \
% if % ( test - n " % { ?2} " && echo 1 || echo 0 ) \
%* \
% endif
% define ifwith () \
% if % ( if echo % { with_flags } | grep - q % 1 ; then echo 1 ; else echo 0 ; fi )
% maybe BuildRequires : % { ? buildreq_udev }
% maybe BuildRequires : % { ? buildreq_cluster }
2017-04-18 19:22:07 +03:00
% maybe BuildRequires : % { ? buildreq_lvmlockd_dlm }
% maybe BuildRequires : % { ? buildreq_lvmlockd_sanlock }
2015-11-02 13:33:13 +03:00
% maybe BuildRequires : % { ? buildreq_python3_devel }
2018-10-22 13:51:51 +03:00
% maybe BuildRequires : % { ? buildreq_python3_setuptools }
spec: Fix spec file to work with mock
- missing BuildRequires
diff --git a/spec/source.inc b/spec/source.inc
index 7b44ef152..b04c500a2 100644
--- a/spec/source.inc
+++ b/spec/source.inc
@@ -12,8 +12,8 @@
%global enable_lvmlockd 1
%global enable_lvmpolld 1
%global enable_dmfilemapd 0
-#%global enable_lvmlockd_dlm 0
-#%global enable_lvmlockd_sanlock 0
+#%%global enable_lvmlockd_dlm 0
+#%%global enable_lvmlockd_sanlock 0
%if %{enable_udev}
%service lvmpolld 1
@@ -43,7 +43,8 @@
%with writecache internal
%with integrity internal
-%global buildreq_udev systemd-devel
+# NOTE: Required by fedora 38+, maybe older
+%global buildreq_udev systemd-devel, systemd-units
%global req_udev udev >= 181-1
@@ -60,15 +61,12 @@
%global sanlock_version 3.3.0-1
%global enable_lvmlockd_dlm 1
%global enable_lvmlockd_sanlock 1
+ # FIXME: Check these conditions against RHEL builds!
%if %{rhel}
- %ifarch i686 x86_64 s390x
- %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
- %else
+ %ifnarch i686 x86_64 s390x
%global enable_lvmlockd_dlm 0
%endif
- %ifarch x86_64 ppc64le ppc64 aarch64
- %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
- %else
+ %ifnarch x86_64 ppc64le ppc64 aarch64
%global enable_lvmlockd_sanlock 0
%endif
%endif
@@ -78,6 +76,12 @@
%global enable_lvmlockd_dlm 1
%endif
%endif
+%if 0%{enable_lvmlockd_dlm}
+ %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
+%endif
+%if 0%{enable_lvmlockd_sanlock}
+ %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
+%endif
##############################################################
@@ -164,6 +168,11 @@ Source92: build.inc
Source93: packages.inc
Source94: macros.inc
+BuildRequires: make
+BuildRequires: gcc
+%if %{enable_testsuite}
+BuildRequires: gcc-c++
+%endif
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: ncurses-devel
%if %{enable_readline}
@@ -174,6 +183,9 @@ BuildRequires: libedit-devel
%endif
BuildRequires: module-init-tools
BuildRequires: pkgconfig
+# TODO: Should these be conditional?
+BuildRequires: libaio-devel
+BuildRequires: libblkid-devel
# Expands to nothing unless at least 2 arguments are given
%define maybe() \
@@ -189,6 +201,8 @@ BuildRequires: pkgconfig
%maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
%maybe BuildRequires: %{?buildreq_python3_devel}
%maybe BuildRequires: %{?buildreq_python3_setuptools}
+%maybe BuildRequires: %{?buildreq_python3_dbus}
+%maybe BuildRequires: %{?buildreq_python3_pyudev}
%description
LVM2 includes all of the support for handling read/write operations on
2023-09-26 16:34:21 +03:00
% maybe BuildRequires : % { ? buildreq_python3_dbus }
% maybe BuildRequires : % { ? buildreq_python3_pyudev }
2013-05-08 14:33:11 +04:00
% description
LVM2 includes all of the support for handling read / write operations on
physical volumes ( hard disks , RAID - Systems , magneto optical , etc . ,
multiple devices ( MD ), see mdadd ( 8 ) or even loop devices , see
losetup ( 8 )), creating volume groups ( kind of virtual disks ) from one
or more physical volumes and creating one or more logical volumes
( kind of logical partitions ) in volume groups .