From: Krzysztof Jackiewicz Date: Fri, 26 May 2017 08:57:45 +0000 (+0200) Subject: Install udev rules for device mapper X-Git-Tag: accepted/tizen/unified/20170926.062005^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F131319%2F4;p=platform%2Fupstream%2Fdevice-mapper.git Install udev rules for device mapper It's not possible to get information about device mapper devices from udev because of missing udev rules. Add rules to device-mapper package. Change-Id: Id3c9a4189044676f456f18993422687832cd9cba --- diff --git a/packaging/device-mapper.spec b/packaging/device-mapper.spec index b004fd3..1946fb8 100644 --- a/packaging/device-mapper.spec +++ b/packaging/device-mapper.spec @@ -39,13 +39,23 @@ Obsoletes: device-mapper < 1.02.17-6 %description -n libdevmapper This package contains the device-mapper shared library, libdevmapper. +%global udev_dir %{_prefix}/lib/udev/rules.d + %prep %setup -q -n LVM2.%{lvm2_version} cp %{SOURCE1001} . %build %define _exec_prefix "" -%configure --with-user= --with-group= --with-device-uid=0 --with-device-gid=6 --with-device-mode=0660 --enable-pkgconfig +%configure --with-user= \ + --with-group= \ + --with-device-uid=0 \ + --with-device-gid=6 \ + --with-device-mode=0660 \ + --enable-pkgconfig \ + --enable-udev_rules \ + --with-udevdir=%{udev_dir} + %define _exec_prefix / make device-mapper @@ -64,6 +74,7 @@ sed -i 's/ (.*)//g' %{buildroot}%{_libdir}/pkgconfig/*.pc %license COPYING COPYING.LIB %attr(755,root,root) %{_sbindir}/dmsetup %{_mandir}/man8/dmsetup.8.gz +%attr(644,-,-) %{udev_dir}/*.rules %files devel %manifest %{name}.manifest