]> sourceware.org Git - lvm2.git/blob
7b44ef152
[lvm2.git] /
1 %import macros.inc
2
3 ##############################################################
4 # Defaults (rawhide)...
5
6 %global enable_profiling 0
7 %global enable_testsuite 1
8 %global enable_dbusd 0
9 %global enable_udev 1
10 %global enable_systemd 1
11 %global enable_cmirror 1
12 %global enable_lvmlockd 1
13 %global enable_lvmpolld 1
14 %global enable_dmfilemapd 0
15 #%global enable_lvmlockd_dlm 0
16 #%global enable_lvmlockd_sanlock 0
17
18 %if %{enable_udev}
19 %service lvmpolld 1
20 %endif
21
22 ########################################################
23 # Normally clustering is maintained via resource agents
24 #
25 # enable service only if you know what you are doing
26 #
27 %if %{enable_cmirror}
28 #service cmirrord 1
29 %endif
30
31 %global buildreq_cluster corosync-devel >= 1.99.9-1, dlm-devel >= 3.99.1-1
32 %global req_cluster corosync >= 1.99.9-1, dlm >= 3.99.2-1
33
34 # TODO %global req_dm_persistent device-mapper-persistent-data >= 0.1.4
35 %with cache internal
36 %with thin internal
37 %with thin_check %{_sbindir}/thin_check
38 %with thin_repair %{_sbindir}/thin_repair
39 %with thin_dump %{_sbindir}/thin_dump
40 # TODO disable vdo and writecache for older releases
41 %with vdo internal
42 %with vdo-format %{_bindir}/vdoformat
43 %with writecache internal
44 %with integrity internal
45
46 %global buildreq_udev systemd-devel
47 %global req_udev udev >= 181-1
48
49
50 %if %{fedora} >= 35 || %{rhel} >= 9
51 %global enable_readline 0
52 %global enable_editline 1
53 %else
54 %global enable_readline 1
55 %global enable_editline 0
56 %endif
57
58 %if %{fedora} >= 24 || %{rhel} >= 7
59 %service lvmlockd 1
60 %global sanlock_version 3.3.0-1
61 %global enable_lvmlockd_dlm 1
62 %global enable_lvmlockd_sanlock 1
63 %if %{rhel}
64 %ifarch i686 x86_64 s390x
65 %global buildreq_lvmlockd_dlm dlm-devel >= %{dlm_version}
66 %else
67 %global enable_lvmlockd_dlm 0
68 %endif
69 %ifarch x86_64 ppc64le ppc64 aarch64
70 %global buildreq_lvmlockd_sanlock sanlock-devel >= %{sanlock_version}
71 %else
72 %global enable_lvmlockd_sanlock 0
73 %endif
74 %endif
75 %else
76 %if %{fedora} >= 22
77 %service lvmlockd 1
78 %global enable_lvmlockd_dlm 1
79 %endif
80 %endif
81
82 ##############################################################
83
84 %if %{rhel} >= 7 || %{fedora} >= 25
85 %global enable_dmfilemapd 1
86 %endif
87
88 ##############################################################
89
90 %if %{rhel} >= 8 || %{fedora} >= 23
91 %global enable_dbusd 1
92 %endif
93
94 %if %{enable_dbusd}
95 %global buildreq_python3_devel python3-devel
96 %global buildreq_python3_setuptools python3-setuptools
97 %global buildreq_python3_dbus python3-dbus
98 %global buildreq_python3_pyudev python3-pyudev
99 %endif
100
101 ##############################################################
102
103 %if %{fedora} == 16 || %{rhel} == 6
104 %global enable_systemd 0
105
106 %global buildreq_udev libudev-devel
107 %global buildreq_cluster openaislib-devel >= 1.1.1-1, clusterlib-devel >= 3.0.6-1, corosynclib-devel >= 1.2.0-1
108
109 %global req_udev udev >= 158-1
110 %global req_cluster openais >= 1.1.1-1, cman >= 3.0.6-1, corosync >= 1.2.0-1
111
112 %global _udevbasedir /lib/udev
113 %global _udevdir %{_udevbasedir}/rules.d
114 %endif
115
116 %if %{fedora} == 16
117 %with cache none
118 %with thin none
119 %with thin_check
120 %with thin_repair
121 %with thin_dump
122 %endif
123
124 %if %{rhel} >= 9
125 %with default-use-devices-file 1
126 %endif
127
128 ##############################################################
129
130 %if %{fedora} == 17
131 %global buildreq_udev systemd-devel
132 %global buildreq_cluster corosync-devel >= 1.99.9-1, dlm-devel >= 3.99.1-1
133
134 %global req_udev udev >= 181-1
135 %global req_dm_persistent device-mapper-persistent-data >= 0.1.4
136 %global req_cluster corosync >= 1.99.9-1, dlm >= 3.99.2-1
137 %endif
138
139 ##############################################################
140 # same as FC 16 above, only with older udev
141
142 %if %{rhel} == 6
143 %global req_udev udev >= 147-2
144 %global req_dm_persistent device-mapper-persistent-data >= 0.1.4
145 %endif
146
147 ##############################################################
148
149 # Do not reset Release to 1 unless both lvm2 and device-mapper
150 # versions are increased together.
151
152 %global device_mapper_version 1.02.97
153
154 Summary: Userland logical volume management tools
155 Name: lvm2
156 Version: 2.02.120
157 Release: 1%{?dist}
158 License: GPLv2
159 Group: System Environment/Base
160 URL: http://sources.redhat.com/lvm2
161 Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
162 Source91: source.inc
163 Source92: build.inc
164 Source93: packages.inc
165 Source94: macros.inc
166
167 BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
168 BuildRequires: ncurses-devel
169 %if %{enable_readline}
170 BuildRequires: readline-devel
171 %endif
172 %if %{enable_editline}
173 BuildRequires: libedit-devel
174 %endif
175 BuildRequires: module-init-tools
176 BuildRequires: pkgconfig
177
178 # Expands to nothing unless at least 2 arguments are given
179 %define maybe() \
180 %if %(test -n "%{?2}" && echo 1 || echo 0) \
181 %* \
182 %endif
183 %define ifwith() \
184 %if %(if echo %{with_flags} | grep -q %1; then echo 1; else echo 0; fi)
185
186 %maybe BuildRequires: %{?buildreq_udev}
187 %maybe BuildRequires: %{?buildreq_cluster}
188 %maybe BuildRequires: %{?buildreq_lvmlockd_dlm}
189 %maybe BuildRequires: %{?buildreq_lvmlockd_sanlock}
190 %maybe BuildRequires: %{?buildreq_python3_devel}
191 %maybe BuildRequires: %{?buildreq_python3_setuptools}
192
193 %description
194 LVM2 includes all of the support for handling read/write operations on
195 physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
196 multiple devices (MD), see mdadd(8) or even loop devices, see
197 losetup(8)), creating volume groups (kind of virtual disks) from one
198 or more physical volumes and creating one or more logical volumes
199 (kind of logical partitions) in volume groups.
This page took 0.043495 seconds and 4 git commands to generate.