diff --git lvm2 spec lvm2 spec index a414e01 218a038 100644 --- lvm2 s

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
diff --git a/lvm2.spec b/lvm2.spec
index a414e01..218a038 100644
--- a/lvm2.spec
+++ b/lvm2.spec
@@ -8,6 +8,13 @@ Packager: Pavlov Konstantin <thresh@altlinux.ru>
Group: System/Base
Url: http://sources.redhat.com/lvm2
Source: %name.%version.tar.bz2
+
+Source1: dmcontrol_update
+Source2: device-mapper-%version-alt-sym
+
+Patch3: device-mapper.1.02.02-alt-verbose.patch
+Patch4: device-mapper.1.02.02-alt-LIB_VERSION.patch
+
Conflicts: liblvm
%define _sbindir /sbin
@@ -33,10 +40,68 @@ Requires: %name = %version-%release
%description static
This package contains statically linked LVM2 tool.
+### device-mapper subpackages go here.
+
+%package -n libdevmapper
+Summary: Library of routines for device-mapper management
+Group: System/Libraries
+
+%package -n libdevmapper-devel
+Summary: Header file for libdevmapper
+Group: System/Libraries
+Requires: libdevmapper = %version-%release
+
+%package -n libdevmapper-devel-static
+Summary: Static version of libdevmapper
+Group: System/Libraries
+Requires: libdevmapper-devel = %version-%release
+
+%package -n dmsetup
+Summary: Utilities for low level logical volume management
+Summary(ru_RU.KOI8-R): óÒÅÄÓÔ×Á ÎÉÚËÏÕÒÏ×ÎÅ×ÏÇÏ ÍÁÎÉÐÕÌÉÒÏ×ÁÎÉÑ device-mapper
+Group: System/Kernel and hardware
+Requires: libdevmapper = %version-%release
+
+%description
+This package contains the library and set of utilites for creating and
+managing of device-mapper logical volumes.
+
+%description -l ru_RU.KOI8-R
+óÒÅÄÓÔ×Á ÎÉÚËÏÕÒÏ×ÎÅ×ÏÇÏ ÍÁÎÉÐÕÌÉÒÏ×ÁÎÉÑ device-mapper.
+
+%description -n libdevmapper
+Library of routines for device-mapper management.
+
+%description -n libdevmapper -l ru_RU.KOI8-R
+âÉÂÌÉÏÔÅËÁ ÄÌÑ ÒÁÂÏÔÙ Ó device-mapper.
+
+%description -n libdevmapper-devel
+Header files for libdevmapper.
+
+%description -n libdevmapper-devel -l ru_RU.KOI8-R
+úÁÇÏÌÏ×ÏÞÎÙÅ ÆÁÊÌÙ ÄÌÑ libdevmapper.
+
+%description -n libdevmapper-devel-static
+Static version of libdevmapper.
+
+%description -n libdevmapper-devel-static -l ru_RU.KOI8-R
+÷ÅÒÓÉÑ ÂÉÂÌÉÏÔÅËÉ ÄÌÑ ÓÔÁÔÉÞÅÓËÏÊ ÌÉÎËÏ×ËÉ.
+
+%description -n dmsetup
+Utilities for low level logical volume management.
+
+%description -n dmsetup -l ru_RU.KOI8-R
+óÒÅÄÓÔ×Á ÎÉÚËÏÕÒÏ×ÎÅ×ÏÇÏ ÍÁÎÉÐÕÌÉÒÏ×ÁÎÉÑ device-mapper.
+
%prep
%setup -q -n %name.%version
%__subst -p 's/ncurses/tinfo &/' configure*
+%patch3 -B libdm -p1
+%patch4 -B libdm -p1
+
+install -m644 %_sourcedir/device-mapper-%version-alt-sym libdm/.export.sym
+
%build
export ac_cv_path_MODPROBE_CMD=/sbin/modprobe
@@ -51,6 +116,7 @@ export ac_cv_path_MODPROBE_CMD=/sbin/modprobe
--with-staticdir=/sbin \
--with-user= \
#
+%__make libdm
%__make lib
%__make -C tools lvm.static
mv tools/lvm.static .