diff --git a/lvm2.spec b/lvm2.spec index 1190840..c28e970 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -44,12 +44,15 @@ or more physical volumes and creating one or more logical volumes %build %define _exec_prefix / +%define _bindir /bin +%define _sbindir /sbin +%define _libdir %{_lib} cd device-mapper.%{device_mapper_version} -%configure --with-user= --with-group= --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --enable-pkgconfig --with-usrlibdir=/usr/%{_lib} --with-usrsbindir=/usr/sbin --bindir=/bin --sbindir=/sbin --libdir=/%{_lib} +%configure --with-user= --with-group= --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --enable-pkgconfig --with-usrlibdir=/usr/%{_lib} --with-usrsbindir=/usr/sbin cd .. -%configure --enable-lvm1_fallback --enable-fsadm --with-clvmd=cman --with-cluster=internal --with-pool=internal --with-user= --with-group= --with-dmdir=device-mapper.%{device_mapper_version} --with-usrlibdir=/usr/%{_lib} --with-usrsbindir=/usr/sbin --bindir=/bin --sbindir=/sbin --libdir=/%{_lib} +%configure --enable-lvm1_fallback --enable-fsadm --with-clvmd=cman --with-cluster=internal --with-pool=internal --with-user= --with-group= --with-dmdir=device-mapper.%{device_mapper_version} --with-usrlibdir=/usr/%{_lib} --with-usrsbindir=/usr/sbin cd device-mapper.%{device_mapper_version} make DESTDIR=$RPM_BUILD_ROOT