From e369fffdd91ffc0a1f2546f2d51574eb7e5c531cb1c5a75c8a53ba0e0f83b1aa Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Wed, 26 Jun 2013 21:31:13 +0000 Subject: [PATCH] Move udev rules to /usr/lib/udev/.. OBS-URL: https://build.opensuse.org/package/show/filesystems/bcache-tools?expand=0&rev=2 --- bcache-tools.changes | 5 +++++ bcache-tools.spec | 17 ++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/bcache-tools.changes b/bcache-tools.changes index 036b97c..de6af37 100644 --- a/bcache-tools.changes +++ b/bcache-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 26 21:30:55 UTC 2013 - jengelh@inai.de + +- Move udev rules to /usr/lib/udev/rules.d + ------------------------------------------------------------------- Tue Feb 26 09:07:16 UTC 2013 - jengelh@inai.de diff --git a/bcache-tools.spec b/bcache-tools.spec index 102d2a3..7ce6ca0 100644 --- a/bcache-tools.spec +++ b/bcache-tools.spec @@ -40,19 +40,22 @@ make all CFLAGS="%optflags" %{?_smp_mflags} %install b="%buildroot" -mkdir -p "$b"/{sbin,usr/sbin,usr/share/man/man8,lib/udev/rules.d} -mkdir -p "$b/etc/initramfs-tools/scripts/init-premount" -mkdir -p "$b/etc/initramfs-tools/hooks" +# Without these existing, make install would fail +mkdir -p "$b"/{sbin,%_sbindir,%_mandir/man8,/lib/udev/rules.d} +mkdir -p "$b/%_sysconfdir/initramfs-tools/scripts/init-premount" +mkdir -p "$b/%_sysconfdir/initramfs-tools/hooks" make install DESTDIR="$b" -rm -Rf "$b/etc/initramfs-tools" +rm -Rf "$b/%_sysconfdir/initramfs-tools" +mkdir -p "$b/%_prefix/lib/udev/rules.d" +mv "$b/lib/udev/rules.d"/* "$b/%_prefix/lib/udev/rules.d/" %files %defattr(-,root,root) %_sbindir/make-bcache /sbin/probe-bcache -%dir /lib/udev -%dir /lib/udev/rules.d -/lib/udev/rules.d/61-bcache.rules +%dir %_prefix/lib/udev +%dir %_prefix/lib/udev/rules.d +%_prefix/lib/udev/rules.d/61-bcache.rules %_mandir/man8/*.8* %changelog