forked from pool/bcache-tools
Move udev rules to /usr/lib/udev/..
OBS-URL: https://build.opensuse.org/package/show/filesystems/bcache-tools?expand=0&rev=2
This commit is contained in:
parent
90eca80800
commit
e369fffdd9
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user