diff options
author | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2017-05-26 10:57:45 +0200 |
---|---|---|
committer | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2017-09-13 14:14:02 +0200 |
commit | 4e811d1e073dfb90ad6200d56d6cdebeff0577e7 (patch) | |
tree | 33b80fcac1708ac94e5b3c0096105e1b3e9d8e04 | |
parent | e29457ea27c58183f3babc960f233a05d2b69e38 (diff) | |
download | device-mapper-4e811d1e073dfb90ad6200d56d6cdebeff0577e7.tar.gz device-mapper-4e811d1e073dfb90ad6200d56d6cdebeff0577e7.tar.bz2 device-mapper-4e811d1e073dfb90ad6200d56d6cdebeff0577e7.zip |
Install udev rules for device mappersubmit/tizen/20170925.104235accepted/tizen/unified/20170926.062005
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
-rw-r--r-- | packaging/device-mapper.spec | 13 |
1 files changed, 12 insertions, 1 deletions
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 |