Marian Csontos
28786f826a
spec: Uncomment some globals
...
These were incorrectly commented out, after escaping '%' these no longer
compile on some older machines.
2023-11-29 15:26:03 +01:00
Marian Csontos
8edc60ffdd
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-11-15 10:37:57 +01:00
Marian Csontos
4e6ed2c458
spec: use --with-default-use-devices-file=1 for rhel9+
2022-08-09 16:17:43 +02:00
Marian Csontos
9cdd258646
spec: Use libedit for newer distributions
2022-08-09 16:17:36 +02:00
Marian Csontos
33265467f9
spec: Enable integrity
2020-05-05 14:12:32 +02:00
Marian Csontos
90fe4b106b
spec: enable writecache
2019-09-25 08:40:30 +02:00
Marian Csontos
fc35a9169e
spec: lvmdbusd requires python3 setuptools
2018-10-22 12:51:51 +02:00
Marian Csontos
279f3bfdc0
spec: Add vdo files
2018-07-24 15:41:30 +02:00
Marian Csontos
7709b70f97
spec: Remove unsupported config options
2018-07-24 15:00:12 +02:00
Marian Csontos
86c3940537
spec: Remove python bindings
2018-07-24 14:55:32 +02:00
Marian Csontos
bf4be80669
spec: Remove lvmetad
2018-07-24 14:50:52 +02:00
Zdenek Kabelac
27c647d6ce
rpm: drop no longer present clvmd, lvm2app
2018-06-15 00:47:35 +02:00
David Teigland
a5256d1353
spec: rename lockd to lvmlockd
2017-04-18 11:22:07 -05:00
Marian Csontos
162552041f
spec: Add dmfilemapd
2017-03-28 21:52:50 +02:00
Marian Csontos
a87715b6fd
spec: Disable sanlock only, keep lockd_dlm enabled
2017-03-16 13:03:25 +01:00
Marian Csontos
7067514c9b
spec: Use %global instead of %define for constants
...
Using %define is now discouraged by Fedora Packaging Guidelines
2017-03-16 13:03:24 +01:00
Marian Csontos
5ba82a16db
spec: Update requirements for lockd
...
lockd requires sanlock >= 3.3.0
2017-03-16 13:03:24 +01:00
Marian Csontos
04ab1fa572
spec: Update python bindings and dbus-service
...
The workaround for python3 is no longer needed.
2016-02-18 20:46:03 +01:00
Marian Csontos
89574055f7
spec: Add python bindings
2015-11-02 12:42:32 +01:00
Zdenek Kabelac
0889cff5d5
spec: upgrade
...
Upgrade spec rules to be in touch with recent code.
Provide services and proper postin/preun/postun scriplets.
2015-09-10 17:28:47 +02:00
Marian Csontos
181e701cc5
spec: Update to use enable_lockd_*
2015-07-07 16:53:19 +02:00
Marian Csontos
dd385eb5ac
Build lockd only for Fedora >= 22 and RHEL >= 7
2015-07-04 14:36:57 +02:00
David Teigland
fe70b03de2
Add lvmlockd
2015-07-02 15:42:26 -05:00
Zdenek Kabelac
1b43d63368
spec: packaging polld
...
Package lvmpolld
Drop legacy SysV init subpackage.
2015-05-13 13:18:59 +02:00
Zdenek Kabelac
b5b3ad14a8
spec: now generated
2015-05-11 14:40:54 +02:00
Petr Rockai
d5537e7d6b
spec: Add an (optional) lvm2-testsuite subpackage.
2015-02-05 13:47:18 +01:00
Zdenek Kabelac
e538354e28
spec: configurable cache build
...
Install lvmcache man page when being configured with cache support.
Install lvmthin man page only with thin support.
2014-05-20 21:50:30 +02:00
Petr Rockai
c69d37d126
spec: udev rules don't live under %{_prefix} on fc16/rhel6
2014-02-28 14:18:15 +01:00
Petr Rockai
cc6ed8fa66
spec: We do want thin support on RHEL 6.
2014-02-28 11:23:52 +01:00
Petr Rockai
581eeaf950
spec: Explicitly disable thin when we don't want it.
2014-02-28 11:23:51 +01:00
Petr Rockai
5f60d53fcc
NIX: Add %with thin_dump to the specfile.
2014-02-28 11:23:51 +01:00
Petr Rockai
bf67c0b393
NIX: Add %with thin_repair to the specfile.
2014-02-28 11:23:50 +01:00
Petr Rockai
2fbc94f974
nix: Import the modular specfile we use for nix-driven builds.
2014-02-28 11:23:49 +01:00