SPECS: lvm2.spec - update to 2.02.06 - use built libdevmapper.a in...

glen glen at pld-linux.org
Sat May 20 04:22:09 CEST 2006


Author: glen                         Date: Sat May 20 02:22:09 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- update to 2.02.06
- use built libdevmapper.a instead of assembling partial one
- default clvmd (if unspecified) used is cman, force gulm as it was here, but it fails bulding; disabled bcond
- dm updated to 1.02.07

---- Files affected:
SPECS:
   lvm2.spec (1.62 -> 1.63) 

---- Diffs:

================================================================
Index: SPECS/lvm2.spec
diff -u SPECS/lvm2.spec:1.62 SPECS/lvm2.spec:1.63
--- SPECS/lvm2.spec:1.62	Wed Oct 19 18:16:16 2005
+++ SPECS/lvm2.spec	Sat May 20 04:22:04 2006
@@ -1,26 +1,29 @@
 # $Revision$, $Date$
+# TODO
+# - use system dm
 #
 # Conditional build:
 %bcond_without	initrd	# don't build initrd version
 %bcond_without	uClibc	# link initrd version with static glibc instead of uClibc
-%bcond_without	clvmd	# do not build clvmd
+%bcond_with	clvmd	# build clvmd
 %bcond_without	selinux	# disable SELinux
 #
 %ifarch %{x8664} sparc64 sparc
 %undefine	with_uClibc
 %endif
+#
+%define	devmapper_ver	1.02.07
 Summary:	The new version of Logical Volume Manager for Linux
 Summary(pl):	Nowa wersja Logical Volume Managera dla Linuksa
 Name:		lvm2
-Version:	2.01.15
-Release:	1
+Version:	2.02.06
+Release:	0.1
 License:	GPL
 Group:		Applications/System
 Source0:	ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
-# Source0-md5:	c71654baff263254fb5a226624ee8ef3
-%define	devmapper_ver	1.01.05
+# Source0-md5:	35c232e771812700e0ca7225da1431b8
 Source1:	ftp://sources.redhat.com/pub/dm/device-mapper.%{devmapper_ver}.tgz
-# Source1-md5:	074cf116cc2c7194f2d100bc5f743833
+# Source1-md5:	460cc211b03af4048ec90c0de2ecd8f7
 URL:		http://sources.redhat.com/lvm2/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -44,6 +47,7 @@
 Obsoletes:	lvm
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_exec_prefix	/
 %define		_sbindir	/sbin
 %define		_libdir		/%{_lib}
 
@@ -86,14 +90,14 @@
 %{__aclocal}
 %{__autoconf}
 %configure \
-        %{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \
+	%{?with_uClibc:CC="%{_target_cpu}-uclibc-gcc"} \
 	--with-optimisation="-Os" \
-        --with-interface=ioctl \
+	--with-interface=ioctl \
 	--disable-nls
-unset CFLAGS || :
+sed -i -e 's#rpl_malloc#malloc#g' include/configure.h
+CFLAGS= \
 %{__make}
-ar cru libdevmapper.a lib/ioctl/*.o lib/*.o
-ranlib libdevmapper.a
+cp lib/ioctl/libdevmapper.a .
 cd ..
 %configure \
 	CFLAGS="-I$(pwd)/${dm}/include -DINITRD_WRAPPER=1" \
@@ -104,6 +108,7 @@
 	--with-lvm1=internal \
 	--disable-selinux \
 	--disable-nls
+sed -i -e 's#rpl_malloc#malloc#g' lib/misc/configure.h
 %{__make} \
 	LDFLAGS+="-L$(pwd)/${dm} -L$(pwd)/lib"
 mv -f tools/lvm.static initrd-lvm
@@ -114,7 +119,7 @@
 	CFLAGS="%{rpmcflags}" \
 	--enable-readline \
 	--enable-fsadm \
-	%{?with_clvmd:--with-clvmd} \
+	%{?with_clvmd:--with-clvmd=gulm} \
 	--with-lvm1=internal \
 	--with-pool=internal \
 	--with-cluster=internal \
@@ -160,6 +165,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.63  2006/05/20 02:22:04  glen
+- update to 2.02.06
+- use built libdevmapper.a instead of assembling partial one
+- default clvmd (if unspecified) used is cman, force gulm as it was here, but it fails bulding; disabled bcond
+- dm updated to 1.02.07
+
 Revision 1.62  2005/10/19 16:16:16  arekm
 - up to 2.01.15
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/lvm2.spec?r1=1.62&r2=1.63&f=u



More information about the pld-cvs-commit mailing list