Enable udev synchronisation code and install default udev rules.
This commit is contained in:
parent
b479632adf
commit
aecae5a082
21
lvm2.spec
21
lvm2.spec
@ -8,7 +8,7 @@
|
||||
Summary: Userland logical volume management tools
|
||||
Name: lvm2
|
||||
Version: 2.02.52
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: GPLv2
|
||||
Group: System Environment/Base
|
||||
URL: http://sources.redhat.com/lvm2
|
||||
@ -27,6 +27,7 @@ BuildRequires: corosynclib-devel >= %{corosync_version}
|
||||
BuildRequires: clusterlib-devel >= %{clusterlib_version}
|
||||
BuildRequires: module-init-tools
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: libudev-devel
|
||||
Requires: device-mapper >= %{device_mapper_version}-%{release}
|
||||
Requires: device-mapper-event >= %{device_mapper_version}-%{release}
|
||||
Requires: %{name}-libs = %{version}-%{release}
|
||||
@ -56,8 +57,9 @@ or more physical volumes and creating one or more logical volumes
|
||||
%define _bindir /bin
|
||||
%define _sbindir /sbin
|
||||
%define _libdir /%{_lib}
|
||||
%define _udevdir /%{_lib}/udev/rules.d
|
||||
|
||||
%configure --enable-lvm1_fallback --enable-fsadm --with-clvmd=cman,corosync --with-cluster=internal --with-pool=internal --with-user= --with-group= --with-usrlibdir=/usr/%{_lib} --with-usrsbindir=/usr/sbin --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --enable-pkgconfig --enable-applib --enable-cmdlib --enable-dmeventd
|
||||
%configure --enable-lvm1_fallback --enable-fsadm --with-clvmd=cman,corosync --with-cluster=internal --with-pool=internal --with-user= --with-group= --with-usrlibdir=/usr/%{_lib} --with-usrsbindir=/usr/sbin --with-udevdir=%{_udevdir} --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --enable-pkgconfig --enable-applib --enable-cmdlib --enable-dmeventd --enable-udev_sync
|
||||
|
||||
make %{?_smp_mflags}
|
||||
|
||||
@ -88,7 +90,7 @@ fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING COPYING.LIB INSTALL README VERSION WHATS_NEW
|
||||
%doc COPYING COPYING.LIB INSTALL README VERSION WHATS_NEW udev/12-dm-permissions.rules
|
||||
%{_sbindir}/fsadm
|
||||
%{_sbindir}/lvchange
|
||||
%{_sbindir}/lvconvert
|
||||
@ -180,6 +182,7 @@ fi
|
||||
%{_mandir}/man8/vgs.8.gz
|
||||
%{_mandir}/man8/vgscan.8.gz
|
||||
%{_mandir}/man8/vgsplit.8.gz
|
||||
%{_udevdir}/11-lvm.rules
|
||||
%dir /etc/lvm
|
||||
%ghost /etc/lvm/cache/.cache
|
||||
%config(noreplace) /etc/lvm/lvm.conf
|
||||
@ -281,6 +284,8 @@ License: GPLv2
|
||||
Group: System Environment/Base
|
||||
URL: http://sources.redhat.com/dm
|
||||
Requires: device-mapper-libs = %{device_mapper_version}-%{release}
|
||||
Requires: libudev
|
||||
Requires: util-linux-ng >= 2.15
|
||||
|
||||
%description -n device-mapper
|
||||
This package contains the supporting userspace utility, dmsetup,
|
||||
@ -291,6 +296,9 @@ for the kernel device-mapper.
|
||||
%doc COPYING COPYING.LIB WHATS_NEW_DM VERSION_DM README INSTALL
|
||||
%attr(755,root,root) /sbin/dmsetup
|
||||
%{_mandir}/man8/dmsetup.8.gz
|
||||
%{_udevdir}/10-dm.rules
|
||||
%{_udevdir}/12-dm-disk.rules
|
||||
%{_udevdir}/95-dm-notify.rules
|
||||
|
||||
%package -n device-mapper-devel
|
||||
Summary: Development libraries and headers for device-mapper
|
||||
@ -385,6 +393,13 @@ the device-mapper event library.
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Sep 21 2009 Peter Rajnoha <prajnoha@redhat.com> - 2.02.52-3
|
||||
- Enable udev synchronisation code
|
||||
- Install default udev rules for device-mapper and LVM2
|
||||
- Add BuildRequires: libudev-devel
|
||||
- Add Requires: libudev (to check udev is running)
|
||||
- Add Requires: util-linux-ng (blkid used in udev rules)
|
||||
|
||||
* Wed Sep 16 2009 Alasdair Kergon <agk@redhat.com> - 2.02.52-2
|
||||
- Build dmeventd and place into a separate set of subpackages.
|
||||
- Remove no-longer-needed BuildRoot tag and buildroot emptying at install.
|
||||
|
Loading…
Reference in New Issue
Block a user