avatar
Rosa has added f38824e01c
initial: add from SRPM
... ... --- /dev/null
... ... +++ b/.abf.yml
... ... @@ -0,0 +1,2 @@
1
sources:
2
  "LVM2.2.02.85.tgz": 43ba2a3be84b2e897ae6b47b0b0be7e212216be7
view file @ f38824e01c
... ... --- /dev/null
... ... +++ b/LVM2.2.02.85.tgz.asc
... ... @@ -0,0 +1,7 @@
1
-----BEGIN PGP SIGNATURE-----
2
Version: GnuPG v1.2.1 (GNU/Linux)
3
4
iD8DBQBNuuuwIoGRwVZ+LBcRAn0eAKD/LFhVcw2ScY1jrcKi2l/tBp83lACeKWU9
5
2at+mmZ+cLL9kdpZemXNu9E=
6
=DvHM
7
-----END PGP SIGNATURE-----
view file @ f38824e01c
... ... --- /dev/null
... ... +++ b/lvm2-2.02.53-alternatives.patch
... ... @@ -0,0 +1,23 @@
1
diff -p -up LVM2.2.02.53/tools/lvmcmdline.c.alternatives LVM2.2.02.53/tools/lvmcmdline.c
2
--- tools/lvmcmdline.c.alternatives	2009-09-15 00:47:49.000000000 +0200
3
+++ LVM2.2.02.53/tools/lvmcmdline.c	2009-09-26 11:14:20.000000000 +0200
4
@@ -1285,7 +1285,7 @@ static void _exec_lvm1_command(char **ar
5
 {
6
 	char path[PATH_MAX];
7
 
8
-	if (dm_snprintf(path, sizeof(path), "%s.lvm1", argv[0]) < 0) {
9
+	if (dm_snprintf(path, sizeof(path), "lvm1-%s", argv[0]) < 0) {
10
 		log_error("Failed to create LVM1 tool pathname");
11
 		return;
12
 	}
13
@@ -1308,7 +1308,9 @@ int lvm2_main(int argc, char **argv)
14
 
15
 	base = last_path_component(argv[0]);
16
 	if (strcmp(base, "lvm") && strcmp(base, "lvm.static") &&
17
-	    strcmp(base, "initrd-lvm"))
18
+ 	    strcmp(base, "lvm2") && strcmp(base, "lvm2.static") &&
19
+ 	    strcmp(base, "lvm-static") && strcmp(base, "lvm2-static") &&
20
+ 	    strcmp(base, "initrd-lvm") && strcmp(base, "initrd-lvm2"))
21
 		alias = 1;
22
 
23
 	_close_stray_fds(base);
view file @ f38824e01c
... ... --- /dev/null
... ... +++ b/lvm2-2.02.53-vgmknodes-man.patch
... ... @@ -0,0 +1,11 @@
1
diff -p -up LVM2.2.02.53/man/vgmknodes.8.in.vgmknodes-man LVM2.2.02.53/man/vgmknodes.8.in
2
--- LVM2.2.02.53/man/vgmknodes.8.in.vgmknodes-man	2009-09-26 11:30:28.000000000 +0200
3
+++ LVM2.2.02.53/man/vgmknodes.8.in	2009-09-26 11:31:24.000000000 +0200
4
@@ -5,6 +5,7 @@ vgmknodes \- recreate volume group direc
5
 .B vgmknodes
6
 .RB [ \-d | \-\-debug]
7
 .RB [ \-h | \-\-help]
8
+.RB [ \-\-ignorelockingfailure]
9
 .RB [ \-\-refresh]
10
 .RB [ \-v | \-\-verbose]
11
 [[VolumeGroupName | LogicalVolumePath]...]
view file @ f38824e01c
... ... --- /dev/null
... ... +++ b/lvm2-2.02.77-preferred_names.patch
... ... @@ -0,0 +1,15 @@
1
--- LVM2.2.02.58/doc/example.conf.in	2010-01-07 19:54:21.000000000 +0000
2
+++ LVM2.2.02.58-new/doc/example.conf.in	2010-01-20 18:30:32.000000000 +0000
3
@@ -23,10 +23,10 @@
4
     # same block device and the tools need to display a name for device,
5
     # all the pathnames are matched against each item in the following
6
     # list of regular expressions in turn and the first match is used.
7
-    preferred_names = [ ]
8
+    # preferred_names = [ ]
9
 
10
     # Try to avoid using undescriptive /dev/dm-N names, if present.
11
-    # preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
12
+    preferred_names = [ "^/dev/mpath/", "^/dev/mapper/mpath", "^/dev/[hs]d" ]
13
 
14
     # A filter that tells LVM2 to only use a restricted set of devices.
15
     # The filter consists of an array of regular expressions.  These
view file @ f38824e01c
... ... --- /dev/null
... ... +++ b/lvm2-2.02.77-qdiskd.patch
... ... @@ -0,0 +1,22 @@
1
diff -p -up LVM2.2.02.77/configure.in.qdiskd LVM2.2.02.77/configure.in
2
--- LVM2.2.02.77/configure.in.qdiskd	2010-11-05 16:18:38.000000000 +0000
3
+++ LVM2.2.02.77/configure.in	2010-12-11 17:22:52.158759026 +0000
4
@@ -424,7 +424,6 @@ fi
5
 if [[ `expr x"$CLVMD" : '.*cman.*'` != 0 ]]; then
6
 	BUILDCMAN=yes
7
 	CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
8
-	CLVMD_NEEDS_QDISKD=yes
9
 fi
10
 if [[ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]]; then
11
 	BUILDCOROSYNC=yes
12
diff -p -up LVM2.2.02.77/configure.qdiskd LVM2.2.02.77/configure
13
--- LVM2.2.02.77/configure.qdiskd	2010-11-09 11:14:06.000000000 +0000
14
+++ LVM2.2.02.77/configure	2010-12-11 17:22:57.208759003 +0000
15
@@ -11573,7 +11573,6 @@ fi
16
 if [ `expr x"$CLVMD" : '.*cman.*'` != 0 ]; then
17
 	BUILDCMAN=yes
18
 	CLVMD_CMANAGERS="$CLVMD_CMANAGERS cman"
19
-	CLVMD_NEEDS_QDISKD=yes
20
 fi
21
 if [ `expr x"$CLVMD" : '.*corosync.*'` != 0 ]; then
22
 	BUILDCOROSYNC=yes
... ... --- /dev/null
... ... +++ b/lvm2.spec
... ... @@ -0,0 +1,876 @@
1
%define	name	lvm2
2
%define	lvmversion	2.02.85
3
%define	dmversion	1.02.64
4
%define	release		3
5
%define	_usrsbindir	%{_prefix}/sbin
6
%define	_sbindir	/sbin
7
%define	_udevdir	/lib/udev/rules.d
8
%define	dmmajor		1.02
9
%define	cmdmajor	2.02
10
%define	appmajor	2.2
11
12
%define	dmlibname	%mklibname devmapper %dmmajor
13
%define	dmdevelname	%mklibname devmapper -d
14
%define	event_libname	%mklibname devmapper-event %dmmajor
15
%define	event_develname	%mklibname devmapper-event -d
16
%define cmdlibname	%mklibname lvm2cmd %cmdmajor
17
%define cmddevelname	%mklibname lvm2cmd -d
18
19
#requirements for cluster
20
%define corosync_version 1.2.0
21
%define openais_version 1.1.1
22
%define cluster_version 3.0.6
23
24
# use bcond_with if default is disabled
25
# use bcond_without if default is enabled
26
%define bcond_with()       %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
27
%define bcond_without()    %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
28
%define with()     %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
29
%define without()  %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
30
31
%bcond_without	lvm2app
32
%bcond_without	cluster
33
%bcond_without	dmeventd
34
%bcond_with	static
35
%bcond_without	uclibc
36
37
%if %{with lvm2app}
38
%define	applibname	%mklibname lvm2app %{appmajor}
39
%define appdevelname	%mklibname -d lvm2
40
%endif
41
42
%if %{with dmeventd}
43
%define dm_req	%{event_libname}
44
%define dm_req_d	%{event_develname}
45
%else
46
%define dm_req	%{dmlibname}
47
%define dm_req_d	%{dmdevelname}
48
%endif
49
50
Summary:	Logical Volume Manager administration tools
51
Name:		%{name}
52
Version:	%{lvmversion}
53
Release:	%{release}
54
Source0:	ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvmversion}.tgz
55
Source1:	ftp://sources.redhat.com/pub/lvm2/LVM2.%{lvmversion}.tgz.asc
56
Patch0:		lvm2-2.02.53-alternatives.patch
57
Patch1:		lvm2-2.02.77-qdiskd.patch
58
Patch2:		lvm2-2.02.53-vgmknodes-man.patch
59
Patch5:		lvm2-2.02.77-preferred_names.patch
60
License:	GPL
61
Group:		System/Kernel and hardware
62
BuildRoot:	%{_tmppath}/%{name}-%{lvmversion}-%{release}-buildroot
63
URL:		http://sources.redhat.com/lvm2/
64
BuildConflicts:	device-mapper-devel < %{dmversion}
65
BuildRequires:	readline-devel
66
BuildRequires:	ncurses-devel
67
BuildRequires:	sed
68
%if %{with static}
69
BuildRequires:	glibc-static-devel
70
%if %{with uclibc}
71
BuildRequires:	uClibc-devel
72
%endif
73
%endif
74
%if %{with dmeventd}
75
# install plugins as well
76
Requires:	%{cmdlibname} = %{lvmversion}-%{release}
77
%endif
78
Requires:	%{dm_req} >= %{dmversion}
79
80
%description
81
LVM includes all of the support for handling read/write operations on
82
physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
83
multiple devices (MD), see mdadm(8) or even loop devices, see losetup(8)),
84
creating volume groups (kind of virtual disks) from one or more physical
85
volumes and creating one or more logical volumes (kind of logical partitions)
86
in volume groups.
87
88
%package -n	%{cmdlibname}
89
Summary:	LVM2 command line library
90
Group:		System/Kernel and hardware
91
Requires:	%{dm_req} >= %{dmversion}
92
# Avoid devel deps on library due to autoreq picking these plugins up as devel libs
93
%define _exclude_files_from_autoreq libdevmapper-event-.\\+\\.so$
94
95
%description -n	%{cmdlibname}
96
The lvm2 command line library allows building programs that manage
97
lvm devices without invoking a separate program.
98
99
%package -n	%{cmddevelname}
100
Summary:	Development files for LVM2 command line library
101
Group:		System/Kernel and hardware
102
Requires:	%{cmdlibname} = %{lvmversion}-%{release}
103
Requires:	%{dm_req_d} = %{dmversion}-%{release}
104
Provides:	liblvm2cmd-devel = %{lvmversion}-%{release}
105
Obsoletes:	%{mklibname lvm2cmd %cmdmajor -d}
106
107
%description -n	%{cmddevelname}
108
The lvm2 command line library allows building programs that manage
109
lvm devices without invoking a separate program.
110
This package contains the header files for building with lvm2cmd and lvm2app.
111
112
%if %{with lvm2app}
113
%package -n	%{applibname}
114
Summary:	LVM2 application api library
115
Group:		System/Kernel and hardware
116
Requires:	%{dm_req} >= %{dmversion}
117
118
%description -n	%{applibname}
119
LVM2 application API
120
121
%package -n	%{appdevelname}
122
Summary:	Development files for LVM2 command line library
123
Group:		System/Kernel and hardware
124
Requires:	pkgconfig
125
Requires:	%{applibname} = %{lvmversion}-%{release}
126
Requires:	%{dm_req_d} = %{dmversion}-%{release}
127
Provides:	liblvm2app-devel = %{lvmversion}-%{release}
128
Obsoletes:	%{mklibname lvm2app %appmajor -d}
129
130
%description -n	%{appdevelname}
131
LVM2 application API
132
This package contains the header files for building with lvm2app.
133
%endif
134
135
%if %{with cluster}
136
%package -n	clvmd
137
Summary:	cluster LVM daemon
138
Group:		System/Kernel and hardware
139
BuildRequires:	cluster-devel >= %{cluster_version}
140
BuildRequires:	openais-devel >= %{openais_version}
141
BuildRequires:	corosync-devel >= %{corosync_version}
142
Requires:	cman >= %{cluster_version}
143
Requires:	%{dm_req} >= %{dmversion}
144
145
%description -n	clvmd
146
clvmd is the daemon that distributes LVM metadata updates around a
147
cluster. It must be running on all nodes in the cluster and will give
148
an error if a node in the cluster does not have this daemon running.
149
150
%package -n	cmirror
151
Summary: Daemon for device-mapper-based clustered mirrors
152
Group:		System/Kernel and hardware
153
BuildRequires:	cluster-devel >= %{cluster_version}
154
BuildRequires:	openais-devel >= %{openais_version}
155
BuildRequires:	corosync-devel >= %{corosync_version}
156
Requires:	cman >= %{cluster_version}
157
Requires:	openais >= %{openais_version}
158
Requires:	corosync >= %{corosync_version}
159
Requires:	%{dmlibname} >= %{dmversion}
160
161
%description -n	cmirror
162
Daemon providing device-mapper-based mirrors in a shared-storage cluster.
163
%endif
164
165
%package -n	dmsetup
166
Summary:	Device mapper setup tool
167
Version:	%{dmversion}
168
Group:		System/Kernel and hardware
169
Provides:	device-mapper = %{dmversion}-%{release}
170
%if %{with dmeventd}
171
Provides:	dmeventd = %{dmversion}-%{release}
172
%endif
173
Requires:	%{dm_req} = %{dmversion}-%{release}
174
BuildRequires:	udev-devel
175
Requires:	udev
176
177
%description -n	dmsetup
178
Dmsetup manages logical devices that use the device-mapper driver.  
179
Devices are created by loading a table that specifies a target for
180
each sector (512 bytes) in the logical device.
181
182
%package -n	%{dmlibname}
183
Summary:	Device mapper library
184
Version:	%{dmversion}
185
Group:		System/Kernel and hardware
186
187
%description -n	%{dmlibname}
188
The device-mapper driver enables the definition of new block
189
devices composed of ranges of sectors of existing devices.  This
190
can be used to define disk partitions - or logical volumes.
191
192
This package contains the shared libraries required for running
193
programs which use device-mapper.
194
195
%package -n	%{dmdevelname}
196
Summary:	Device mapper development library
197
Version:	%{dmversion}
198
Group:		Development/C
199
Provides:	device-mapper-devel = %{dmversion}-%{release}
200
Provides:	libdevmapper-devel = %{dmversion}-%{release}
201
Requires:	%{dmlibname} = %{dmversion}-%{release}
202
Requires:	pkgconfig
203
Conflicts:	device-mapper-devel < %{dmversion}-%{release}
204
Obsoletes:	%{mklibname devmapper %dmmajor -d}
205
206
%description -n	%{dmdevelname}
207
The device-mapper driver enables the definition of new block
208
devices composed of ranges of sectors of existing devices.  This
209
can be used to define disk partitions - or logical volumes.
210
211
This package contains the header files and development libraries
212
for building programs which use device-mapper.
213
214
%if %{with dmeventd}
215
216
%package -n	%{event_libname}
217
Summary:	Device mapper event library
218
Version:	%{dmversion}
219
Group:		System/Kernel and hardware
220
Provides:	device-mapper-event = %{dmversion}-%{release}
221
Provides:	libdevmapper-event = %{dmversion}-%{release}
222
Requires:	%{dmlibname} >= %{dmversion}
223
224
%description -n	%{event_libname}
225
The device-mapper-event library allows monitoring of active mapped devices.
226
227
This package contains the shared libraries required for running
228
programs which use device-mapper-event.
229
230
%package -n	%{event_develname}
231
Summary:	Device mapper event development library
232
Version:	%{dmversion}
233
Group:		Development/C
234
Provides:	device-mapper-event-devel = %{dmversion}-%{release}
235
Provides:	libdevmapper-event-devel = %{dmversion}-%{release}
236
Requires:	%{event_libname} = %{dmversion}-%{release}
237
Requires:	%{dmdevelname} = %{dmversion}-%{release}
238
Requires:	pkgconfig
239
Conflicts:	device-mapper-event-devel < %{dmversion}-%{release}
240
Obsoletes:	%{mklibname devmapper-event %dmmajor -d}
241
242
%description -n	%{event_develname}
243
The device-mapper-event library allows monitoring of active mapped devices.
244
245
This package contains the header files and development libraries
246
for building programs which use device-mapper-event.
247
%endif
248
249
%prep
250
%setup -q -n LVM2.%{lvmversion}
251
%patch0 -p1 -b .alternatives
252
%patch1 -p1 -b .qdiskd
253
%patch2 -p1 -b .vgmknodes-man
254
%patch5 -p1 -b .preferred
255
256
%build
257
datelvm=`awk -F '[.() ]*' '{printf "%s.%s.%s:%s\n", $1,$2,$3,$(NF-1)}' VERSION`
258
datedm=`awk -F '[.() ]*' '{printf "%s.%s.%s:%s\n", $1,$2,$3,$(NF-1)}' VERSION_DM`
259
if [ "${datelvm%:*}" != "%{lvmversion}" -o "${datedm%:*}" != "%{dmversion}" -o \
260
 "%{release}" = "%{manbo_mkrel 1}" -a "${datelvm#*:}" != "${datedm#*:}" ]; then
261
	echo "ERROR:	you should not be touching this package" 1>&2
262
	echo "	without full understanding of relationship between device-mapper" 1>&2
263
	echo "	and lvm2 versions" 1>&2
264
	exit 1
265
fi
266
%if %{with dmeventd}
267
%define _disable_ld_as_needed 1
268
%endif
269
%define common_configure_parameters --with-user=`id -un` --with-group=`id -gn` --disable-selinux --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660
270
export MODPROBE_CMD=/sbin/modprobe
271
export CONFIGURE_TOP=".."
272
273
%if %{with static}
274
export ac_cv_lib_dl_dlopen=no
275
mkdir -p static
276
cd static
277
%configure2_5x %{common_configure_parameters} \
278
	--enable-static_link --disable-readline \
279
	--with-cluster=none --with-pool=none
280
sed -ie 's/\ -static/ -static -Wl,--no-export-dynamic/' tools/Makefile
281
%if %{with uclibc}
282
%make libdm.device-mapper
283
cd ..
284
285
mkdir -p uclibc
286
cd uclibc
287
%configure2_5x CFLAGS="%{uclibc_cflags}" CC="%{uclibc_cc}" %{common_configure_parameters} \
288
	--enable-static_link --disable-readline \
289
	--with-cluster=none --with-pool=none
290
%endif
291
sed -ie 's/\ -static/ -static -Wl,--no-export-dynamic/' tools/Makefile
292
%make
293
cd ..
294
unset ac_cv_lib_dl_dlopen
295
%endif
296
297
mkdir -p shared
298
cd shared
299
%configure2_5x %{common_configure_parameters} \
300
	--disable-static_link --enable-readline \
301
	--enable-fsadm --enable-pkgconfig \
302
	--with-usrlibdir=%{_libdir} --libdir=/%{_lib} \
303
	--enable-cmdlib \
304
%if %{with lvm2app}
305
	--enable-applib \
306
%endif
307
%if %{with cluster}
308
	--with-clvmd=cman,openais,corosync \
309
	--enable-cmirrord \
310
%else
311
	--with-cluster=none \
312
	--with-pool=none \
313
%endif
314
%if %{with dmeventd}
315
	--enable-dmeventd \
316
	--with-dmeventd-path=/sbin/dmeventd \
317
%endif
318
	--enable-udev_sync --enable-udev_rules \
319
	--with-udevdir=%{_udevdir} \
320
# 20090926 no translations yet:	--enable-nls
321
# end of configure options
322
%make
323
cd ..
324
325
%install
326
rm -rf %{buildroot}
327
cd shared
328
%makeinstall_std
329
cd ..
330
331
install -d %{buildroot}/etc/lvm/archive
332
install -d %{buildroot}/etc/lvm/backup
333
install -d %{buildroot}/etc/lvm/cache
334
touch %{buildroot}/etc/lvm/cache/.cache
335
336
install -d %{buildroot}/var/lock/lvm
337
338
install -d %{buildroot}/%{_initrddir}
339
340
install shared/scripts/lvm2_monitoring_init_red_hat %{buildroot}/%{_initrddir}/lvm2-monitor
341
%if %{with cluster}
342
install shared/scripts/clvmd_init_red_hat %{buildroot}/%{_initrddir}/clvmd
343
install shared/scripts/cmirrord_init_red_hat %{buildroot}/%{_initrddir}/cmirrord
344
install -m 0755 scripts/lvmconf.sh %{buildroot}/%{_usrsbindir}/lvmconf
345
%endif
346
347
%if %{with static}
348
%if %{with uclibc}
349
install uclibc/tools/lvm.static %{buildroot}%{_sbindir}/lvm.static
350
install uclibc/tools/dmsetup.static %{buildroot}%{_sbindir}/dmsetup.static
351
install -m644 uclibc/libdm/ioctl/libdevmapper.a -D %{buildroot}%{uclibc_root}%{_libdir}/libdevmapper.a
352
%else
353
install static/tools/lvm.static %{buildroot}/%{_sbindir}/lvm.static
354
install static/tools/dmsetup.static %{buildroot}/%{_sbindir}/dmsetup.static
355
%endif
356
357
#install -d %{buildroot}/%{_libdir}/
358
install -m 644 static/libdm/ioctl/libdevmapper.a %{buildroot}/%{_libdir}
359
#compatibility links
360
ln %{buildroot}/%{_sbindir}/lvm.static %{buildroot}/%{_sbindir}/lvm2-static
361
ln %{buildroot}/%{_sbindir}/dmsetup.static %{buildroot}/%{_sbindir}/dmsetup-static
362
%endif
363
364
#compatibility links
365
ln %{buildroot}/%{_sbindir}/lvm %{buildroot}/%{_sbindir}/lvm2
366
367
#move .so links in /usr/lib
368
for solink in %{buildroot}/%{_lib}/*.so; do
369
	if [ "${solink%%libdevmapper-event-lvm2*.so}" == "${solink}" ]; then
370
		_target=`readlink ${solink}`
371
		ln -s ../../%{_lib}/${_target##*/} %{buildroot}/%{_libdir}/${solink##*/}
372
		rm ${solink}
373
	fi
374
done
375
376
#hack permissions of libs
377
chmod u+w %{buildroot}/%{_lib}/*.so.* %{buildroot}/%{_sbindir}/* %{buildroot}/%{_usrsbindir}/*
378
379
%find_lang %name
380
381
#hack trick strip_and_check_elf_files
382
export LD_LIBRARY_PATH=%{buildroot}/%{_lib}:${LD_LIBRARY_PATH}
383
384
%pre
385
if [ -L /sbin/lvm -a -L /etc/alternatives/lvm ]; then
386
	update-alternatives --remove lvm /sbin/lvm2
387
fi
388
389
%if %{with cluster}
390
%post -n clvmd
391
%_post_service clvmd
392
%{_usrsbindir}/lvmconf --lockinglibdir %{_libdir}
393
394
%preun -n clvmd
395
%_preun_service clvmd
396
if [ "$1" = 0 ]; then
397
        %{_usrsbindir}/lvmconf --disable-cluster
398
fi
399
400
%post -n cmirror
401
%_post_service cmirror
402
403
%preun -n cmirror
404
%_preun_service cmirror
405
%endif
406
407
%clean
408
rm -rf %{buildroot}
409
410
%files -f %name.lang
411
%defattr(644,root,root,755)
412
%doc INSTALL README VERSION WHATS_NEW
413
%attr(755,root,root) %{_sbindir}/fsadm
414
%attr(755,root,root) %{_sbindir}/lv*
415
%attr(755,root,root) %{_sbindir}/pv*
416
%attr(755,root,root) %{_sbindir}/vg*
417
%config(noreplace) %attr(755,root,root) %{_initrddir}/lvm2-monitor
418
%dir %{_sysconfdir}/lvm
419
%config(noreplace) %{_sysconfdir}/lvm/lvm.conf
420
%attr(700,root,root) %dir %{_sysconfdir}/lvm/archive
421
%attr(700,root,root) %dir %{_sysconfdir}/lvm/backup
422
%attr(700,root,root) %dir %{_sysconfdir}/lvm/cache
423
%attr(600,root,root) %ghost %{_sysconfdir}/lvm/cache/.cache
424
%attr(700,root,root) %dir /var/lock/lvm
425
%{_mandir}/man5/*
426
%{_mandir}/man8/fsadm*
427
%{_mandir}/man8/lv*
428
%{_mandir}/man8/pv*
429
%{_mandir}/man8/vg*
430
%{_udevdir}/11-dm-lvm.rules
431
432
%files -n %{cmdlibname}
433
%defattr(644,root,root,755)
434
/%{_lib}/liblvm2cmd.so.*
435
%if %{with dmeventd}
436
%dir /%{_lib}/device-mapper
437
/%{_lib}/device-mapper/libdevmapper-event-lvm2mirror.so
438
/%{_lib}/device-mapper/libdevmapper-event-lvm2snapshot.so
439
/%{_lib}/libdevmapper-event-lvm2.so.*
440
/%{_lib}/libdevmapper-event-lvm2mirror.so
441
/%{_lib}/libdevmapper-event-lvm2snapshot.so
442
%endif
443
444
%files -n %{cmddevelname}
445
%defattr(644,root,root,755)
446
%{_includedir}/lvm2cmd.h
447
%attr(755,root,root) %{_libdir}/liblvm2cmd.so
448
449
%if %{with lvm2app}
450
%files -n %{applibname}
451
%defattr(644,root,root,755)
452
/%{_lib}/liblvm2app.so.*
453
454
%files -n %{appdevelname}
455
%defattr(644,root,root,755)
456
%{_includedir}/lvm2app.h
457
%attr(755,root,root) %{_libdir}/liblvm2app.so
458
%{_libdir}/pkgconfig/lvm2app.pc
459
%endif
460
461
%if %{with cluster}
462
%files -n clvmd
463
%defattr(755, root,root)
464
%config(noreplace) %{_initrddir}/clvmd
465
%{_usrsbindir}/clvmd
466
%{_usrsbindir}/lvmconf
467
%attr(644,root,root) %{_mandir}/man8/clvmd.8*
468
469
%files -n cmirror
470
%defattr(755,root,root,-)
471
%config(noreplace) %{_initrddir}/cmirrord
472
%{_usrsbindir}/cmirrord
473
%attr(644,root,root) %{_mandir}/man8/cmirrord.8*
474
%endif
475
476
%files -n dmsetup
477
%defattr(644,root,root,755)
478
%doc INSTALL README VERSION_DM WHATS_NEW_DM
479
%attr(755,root,root) %{_sbindir}/dmsetup
480
%if %{with static}
481
%attr(755,root,root) %{_sbindir}/dmsetup.static
482
%attr(755,root,root) %{_sbindir}/dmsetup-static
483
%endif
484
%if %{with dmeventd}
485
%attr(755,root,root) %{_sbindir}/dmeventd
486
%attr(755,root,root) %{_mandir}/man8/dmeventd.8*
487
%endif
488
%{_mandir}/man8/dmsetup.8*
489
%{_udevdir}/10-dm.rules
490
%{_udevdir}/13-dm-disk.rules
491
%{_udevdir}/95-dm-notify.rules
492
493
%files -n %{dmlibname}
494
%defattr(755,root,root)
495
/%{_lib}/libdevmapper.so.*
496
497
%files -n %{dmdevelname}
498
%defattr(644,root,root,755)
499
%{_libdir}/libdevmapper.so
500
%if %{with static}
501
%{_libdir}/libdevmapper.a*
502
%if %{with uclibc}
503
%{uclibc_root}%{_libdir}/libdevmapper.a
504
%endif
505
%endif
506
%{_includedir}/libdevmapper.h
507
%{_libdir}/pkgconfig/devmapper.pc
508
509
%if %{with dmeventd}
510
%defattr(755,root,root)
511
%files -n %{event_libname}
512
/%{_lib}/libdevmapper-event.so.*
513
514
%files -n %{event_develname}
515
%defattr(644,root,root,755)
516
%{_includedir}/libdevmapper-event.h
517
%{_libdir}/libdevmapper-event.so
518
%{_libdir}/libdevmapper-event-lvm2.so
519
%{_libdir}/pkgconfig/devmapper-event.pc
520
%endif
521
522
523
%changelog
524
* Sun Jun 12 2011 Funda Wang <fwang@mandriva.org> 2.02.85-3
525
+ Revision: 684305
526
- always create symlink for lvm2
527
528
* Sun Jun 12 2011 Eugeni Dodonov <eugeni@mandriva.com> 2.02.85-2
529
+ Revision: 684300
530
- Rebuild as BS seems to have eaten the latest package.
531
532
* Sat Jun 11 2011 Luca Berra <bluca@mandriva.org> 2.02.85-1
533
+ Revision: 684241
534
- update to lvm2-2.02.85 and device-mapper 1.02.64
535
- disable static build
536
- remove compatibility hack for mdv < 2009.0
537
- fix man page packaging
538
539
* Sun May 22 2011 Oden Eriksson <oeriksson@mandriva.com> 2.02.78-4
540
+ Revision: 677163
541
- rebuild
542
543
* Wed May 04 2011 Oden Eriksson <oeriksson@mandriva.com> 2.02.78-3
544
+ Revision: 666107
545
- mass rebuild
546
547
* Thu Dec 23 2010 Luca Berra <bluca@mandriva.org> 2.02.78-2mnb2
548
+ Revision: 624115
549
- add some requires to ensure consistency between device-mapper and lvm
550
551
* Sun Dec 12 2010 Luca Berra <bluca@mandriva.org> 2.02.78-1mnb2
552
+ Revision: 620610
553
- update to lvm2-2.02.78 and device-mapper 1.02.59
554
- really update tarballs
555
- remove obsolete patches
556
- p1 qdiskd is started as part of cman
557
- fix static build (bor)
558
- clvmd now requires openais and corosync (bor)
559
560
  + Götz Waschk <waschk@mandriva.org>
561
    - update to new version 2.02.77
562
563
  + Oden Eriksson <oeriksson@mandriva.com>
564
    - fix typo
565
    - sync with MDVSA-2010:171
566
567
* Mon Mar 01 2010 Thomas Backlund <tmb@mandriva.org> 2.02.61-5mnb2
568
+ Revision: 513264
569
- fix udev rule to add symlinks in /dev/mapper/
570
571
* Mon Mar 01 2010 Luca Berra <bluca@mandriva.org> 2.02.61-4mnb2
572
+ Revision: 513116
573
- enable liblvm2app
574
575
* Sat Feb 20 2010 Luca Berra <bluca@mandriva.org> 2.02.61-3mnb2
576
+ Revision: 508818
577
- update dm version
578
579
* Fri Feb 19 2010 Thomas Backlund <tmb@mandriva.org> 2.02.61-2mnb2
580
+ Revision: 508449
581
- make lib(64)devmapper-event1.02 provide device-mapper-event (for dmraid-event)
582
583
* Tue Feb 16 2010 Funda Wang <fwang@mandriva.org> 2.02.61-1mnb2
584
+ Revision: 506589
585
- New version 2.02.61
586
587
  + Luca Berra <bluca@mandriva.org>
588
    - fix permissions on lvm2-monitor initscript
589
    - make dmeventd require same EVR libdevmapper-event
590
    - enable loading of dm target modules as needed
591
    - fix dmeventd not linking against libdevmapper-event
592
    - fix static lib build on x86_64
593
    - fix location of dmeventd binary
594
    - update to lvm2 2.02.60/device-mapper 1.02.43
595
    - build cluster mirror daemon
596
    - enable udev integration
597
    - set default preferred names in configuration (fedora)
598
599
  + Per Øyvind Karlsen <peroyvind@mandriva.org>
600
    - build a uclibc linked static library as well
601
    - link static binaries against uclibc rather than glibc
602
    - do static and shared builds in separate directories
603
    - link against libraries from where they're actually built at (P5)
604
605
* Fri Nov 06 2009 Frederik Himpe <fhimpe@mandriva.org> 2.02.54-1mnb2
606
+ Revision: 462071
607
- Really update to 2.02.54
608
- update to new version 2.02.54
609
610
* Tue Oct 13 2009 Buchan Milne <bgmilne@mandriva.org> 2.02.53-5mnb2
611
+ Revision: 457026
612
- Re-fix lsb headers in clvmd init (to require cman)
613
614
* Wed Oct 07 2009 Anssi Hannula <anssi@mandriva.org> 2.02.53-4mnb2
615
+ Revision: 455711
616
- modify _exclude_files_from_autoreq to only match the .so symlink so
617
  that automatic dependencies continue working, and remove the then
618
  unneeded explicit require that was added for this issue
619
620
* Tue Oct 06 2009 Anssi Hannula <anssi@mandriva.org> 2.02.53-3mnb2
621
+ Revision: 455260
622
- fix versioned requires added in previous release
623
624
* Tue Oct 06 2009 Buchan Milne <bgmilne@mandriva.org> 2.02.53-2mnb2
625
+ Revision: 454651
626
- Put an explicit requires back in for the valid dependency that was a victim of
627
  the previous fix
628
629
  + Christophe Fergeau <cfergeau@mandriva.com>
630
    - make sure liblvm2cmd2.02 don't requires devel packages
631
632
* Thu Oct 01 2009 Buchan Milne <bgmilne@mandriva.org> 2.02.53-1mnb2
633
+ Revision: 452390
634
- Buildrequire cluster-devel 3.0.3, openais-devel 1.1.0, corosync-devel 1.1.0
635
- put explicit versioned requires on libdevmapper on lvm to ensure lvm works
636
- Fix build on x86_64
637
638
  + Luca Berra <bluca@mandriva.org>
639
    - New version 2.02.53
640
      device-mapper is now built from lvm2 spec file
641
      dietlibc static binaries have been removed
642
      cluster support for openais/corosync is not built
643
644
* Sun Sep 27 2009 Olivier Blin <oblin@mandriva.com> 2.02.33-9mnb2
645
+ Revision: 450120
646
- use dietlibc on arm and mips too (from Arnaud Patard)
647
648
* Wed Apr 08 2009 Buchan Milne <bgmilne@mandriva.org> 2.02.33-8mnb2
649
+ Revision: 365105
650
- Fix LSB headers in clvmd init script (incl to require cman to be started for clvmd)
651
- Drop unused source file
652
653
* Tue Apr 07 2009 Buchan Milne <bgmilne@mandriva.org> 2.02.33-7mnb2
654
+ Revision: 364814
655
- Remove conflict between lvm2 and clvmd (/sbin/lvmconf)
656
657
* Wed Feb 25 2009 Thierry Vignaud <tv@mandriva.org> 2.02.33-6mnb2
658
+ Revision: 344660
659
- rebuild for new libreadline
660
661
* Tue Jan 06 2009 Buchan Milne <bgmilne@mandriva.org> 2.02.33-5mnb2
662
+ Revision: 325771
663
- Enable cluster support by default
664
665
* Sun Dec 21 2008 Oden Eriksson <oeriksson@mandriva.com> 2.02.33-4mnb2
666
+ Revision: 317041
667
- rediffed some fuzzy patches
668
669
  + Buchan Milne <bgmilne@mandriva.org>
670
    - Fix clvmd (compilation with --with cluster)
671
672
* Wed Aug 06 2008 Thierry Vignaud <tv@mandriva.org> 2.02.33-3mnb2
673
+ Revision: 265035
674
- rebuild early 2009.0 package (before pixel changes)
675
676
* Tue Jun 10 2008 Oden Eriksson <oeriksson@mandriva.com> 2.02.33-2mnb2
677
+ Revision: 217575
678
- rebuilt against dietlibc-devel-0.32
679
680
  + Pixel <pixel@mandriva.com>
681
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers
682
683
* Mon Feb 18 2008 Thierry Vignaud <tv@mandriva.org> 2.02.33-1mnb1
684
+ Revision: 170654
685
- replace %%mkrel with %%manbo_mkrel for Manbo Core 1
686
687
* Wed Feb 06 2008 Olivier Blin <oblin@mandriva.com> 2.02.33-1mdv2008.1
688
+ Revision: 163060
689
- 2.02.33
690
691
* Tue Feb 05 2008 Olivier Blin <oblin@mandriva.com> 2.02.31-2mdv2008.1
692
+ Revision: 162814
693
- build with ncurses instead of deprecated termcap
694
695
* Wed Jan 23 2008 Olivier Blin <oblin@mandriva.com> 2.02.31-1mdv2008.1
696
+ Revision: 157141
697
- do not install fsadm manually (now done by Makefile)
698
- define UINT64_MAX when building with dietlibc
699
- buildrequire device-mapper-devel >= 1.02.23 (for readahead support)
700
- 2.02.31
701
702
* Tue Jan 15 2008 Thierry Vignaud <tv@mandriva.org> 2.02.27-3mdv2008.1
703
+ Revision: 152884
704
- rebuild
705
706
* Tue Jan 15 2008 Thierry Vignaud <tv@mandriva.org> 2.02.27-2mdv2008.1
707
+ Revision: 152882
708
- rebuild
709
- kill re-definition of %%buildroot on Pixel's request
710
711
  + Olivier Blin <oblin@mandriva.com>
712
    - restore BuildRoot
713
714
* Wed Aug 22 2007 Adam Williamson <awilliamson@mandriva.org> 2.02.27-1mdv2008.0
715
+ Revision: 69193
716
- fix typo
717
- disable stack protector (build fails if enabled)
718
- update buildrequires for dmeventd build (still disabled by default)
719
- add patch6 to fix a conflicting types error when building with dietlibc
720
- rediff and update patch0 and patch1
721
- new devel policy
722
- new release 2.02.27
723
724
725
* Mon Sep 11 2006 Luca Berra <bluca@comedia.it>
726
+ 2006-09-11 11:06:54 (60771)
727
New release 2.02.09
728
729
* Tue Jul 11 2006 Luca Berra <bluca@comedia.it>
730
+ 2006-07-11 22:16:08 (38858)
731
remove alternatives, but still keep lvm2 and lvm2-static links for compatibility with existing tools
732
733
* Tue Jul 11 2006 Luca Berra <bluca@comedia.it>
734
+ 2006-07-11 20:55:25 (38791)
735
create backup file when applying p6
736
737
* Tue Jul 11 2006 Pixel <pixel@mandriva.com>
738
+ 2006-07-11 13:01:44 (38772)
739
really apply patch6
740
741
* Tue Jul 11 2006 Pixel <pixel@mandriva.com>
742
+ 2006-07-11 12:30:34 (38771)
743
release fixed vgs for DrakX
744
745
* Tue Jul 11 2006 Pixel <pixel@mandriva.com>
746
+ 2006-07-11 12:29:14 (38770)
747
fix exit code for VG not found (bug #22968)
748
749
* Wed Jul 05 2006 Luca Berra <bluca@comedia.it>
750
+ 2006-07-05 09:11:45 (38381)
751
import lvm2-2.02.06-1mdv2007.0
752
753
* Sun May 28 2006 Luca Berra <bluca@vodka.it> 2.02.06-1mdv2007.0
754
- New release 2.02.06
755
- build against dietlibc on ppc64
756
- add an option for dietlibc build
757
- require new device-mapper
758
759
* Thu Apr 20 2006 Per yvind Karlsen <pkarlsen@mandriva.com> 2.01.15-4mdk
760
- build against dietlibc on sparc too
761
762
* Sun Jan 29 2006 Olivier Blin <oblin@mandriva.com> 2.01.15-3mdk
763
- fix 2.01.09-2mdk changelog date to match current lvm2 package in main i586
764
765
* Fri Jan 27 2006 Luca Berra <bluca@vodka.it> 2.01.15-2mdk
766
- Rebuild
767
768
* Sat Jan 21 2006 Luca Berra <bluca@vodka.it> 2.01.15-1mdk
769
- New release 2.01.15
770
- update p1 (diet)
771
- add missing defines in dietlibc (p2)
772
773
* Sun Jan 01 2006 Mandriva Linux Team <http://www.mandrivaexpert.com/> 2.01.09-2mdk
774
- Rebuild
775
776
* Sun Apr 17 2005 Luca Berra <bluca@vodka.it> 2.01.09-1mdk 
777
- 2.01.09
778
- part of p4 (ignorelockingfailure) was merged
779
- rediffed p5 (File descriptor left open)
780
- added support for GFS pool format
781
- added cluster build option and clvmd subpackage
782
783
* Tue Apr 05 2005 Luca Berra <bluca@vodka.it> 2.00.33-4mdk 
784
- add --ignorelockingfailure to vgmknodes (p4)
785
- silence annoyng "File descriptor left open" messages (p5)
786
787
* Sat Mar 05 2005 Luca Berra <bluca@vodka.it> 2.00.33-3mdk 
788
- remove require for libdevmapper1.00
789
790
* Sat Mar 05 2005 Luca Berra <bluca@vodka.it> 2.00.33-2mdk 
791
- rebuild for new libdevmapper
792
793
* Sat Jan 29 2005 Luca Berra <bluca@vodka.it> 2.00.33-1mdk 
794
- 2.00.33
795
796
* Thu Jan 20 2005 Per yvind Karlsen <peroyvind@linux-mandrake.com> 2.00.32-2mdk
797
- rebuild for new readline
798
799
* Sat Jan 15 2005 Luca Berra <bluca@vodka.it> 2.00.32-1mdk 
800
- 2.0.32
801
- do not link static binary with libdl
802
803
* Fri Dec 24 2004 Per yvind Karlsen <peroyvind@linux-mandrake.com> 2.00.31-1mdk
804
- 2.00.31
805
- cosmetics
806
807
* Sun Nov 28 2004 Luca Berra <bluca@vodka.it> 2.00.27-1mdk 
808
- 2.0.27
809
810
* Sun Nov 14 2004 Luca Berra <bluca@vodka.it> 2.00.25-1mdk 
811
- 2.0.25
812
- added fsadm
813
- enabled nls
814
- added support for building the command line library
815
816
* Tue Sep 07 2004 Luca Berra <bluca@mandrakesoft.com> 2.00.22-1mdk
817
- 2.00.22
818
- define _BSD_SOURCE when building with dietlibc
819
- drop p4 no longer needed
820
821
* Sun Aug 01 2004 Christiaan Welvaart <cjw@daneel.dyndns.org> 2.00.20-2mdk
822
- use dietlibc for static build on ppc as well
823
- add BuildRequires: glibc-static-devel for other archs
824
825
* Thu Jul 22 2004 Luca Berra <bluca@vodka.it> 2.00.20-1mdk 
826
- 2.00.20
827
- disabled selinux build
828
- added workaround for including fs.h with glibc 2.3.3 (p4)
829
830
* Tue Jun 29 2004 Luca Berra <bluca@vodka.it> 2.00.19-2mdk 
831
- really fix alternatives patch
832
833
* Tue Jun 29 2004 Luca Berra <bluca@vodka.it> 2.00.19-1mdk 
834
- 2.00.19
835
- rediffed p0 (alternatives) and p1 (diet)
836
837
* Mon May 24 2004 Luca Berra <bluca@vodka.it> 2.00.16-1mdk 
838
- 2.00.16
839
840
* Sat Apr 17 2004 Luca Berra <bluca@vodka.it> 2.00.14-1mdk 
841
- 2.00.14
842
- rediffed p0, p1, p3
843
- removed p2, p4, p5 merged upstream
844
845
* Sun Jan 25 2004 Luca Berra <bluca@vodka.it> 2.00.08-8mdk 
846
- patch to ignore devices that have an md superblock on them
847
848
* Fri Jan 23 2004 Luca Berra <bluca@vodka.it> 2.00.08-7mdk
849
- patch to fix uidless PVs created during 9.2 installation
850
851
* Sun Jan 04 2004 Luca Berra <bluca@vodka.it> 2.00.08-6mdk
852
- DIRM: /etc/lvm
853
- build vs termcap, not ncurses
854
855
* Mon Dec 29 2003 Stefan van der Eijk <stefan@eijk.nu> 2.00.08-5mdk
856
- BuildRequires
857
858
* Sat Dec 20 2003 Luca Berra <bluca@vodka.it> 2.00.08-4mdk
859
- fix annoying "setlocale failed" message in dietlibc version
860
861
* Sun Dec 14 2003 Luca Berra <bluca@vodka.it> 2.00.08-3mdk
862
- added vgmknodes to static/diet binary
863
- imported blksize64 patch from fedora
864
- use %%post -f for alternatives script
865
- lvm.conf is a config file
866
867
* Sat Nov 22 2003 Luca Berra <bluca@vodka.it> 2.00.08-2mdk
868
- built against device-mapper 1.00.07
869
870
* Thu Nov 20 2003 Luca Berra <bluca@vodka.it> 2.00.08-1mdk
871
- 2.0.08 stable
872
- added static/dietlibc version for initrd
873
874
* Tue Sep 16 2003 Luca Berra <bluca@vodka.it> 2.00.07-1mdk
875
- 2.00.07 stable
876

Comments