- Preserve permissions for /lib/udev in guestfsd subpackage

OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=217
This commit is contained in:
Olaf Hering 2013-08-05 15:17:23 +00:00 committed by Git OBS Bridge
parent 2f6028b8c2
commit 158ee81960
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 5 17:16:44 CEST 2013 - ohering@suse.de
- Preserve permissions for /lib/udev in guestfsd subpackage
-------------------------------------------------------------------
Tue Jul 30 20:57:39 CEST 2013 - ohering@suse.de

View File

@ -492,6 +492,14 @@ make \
export NO_BRP_STRIP_DEBUG=true
%endif
%makeinstall
if test -d $RPM_BUILD_ROOT/lib/udev
then
chmod --verbose --reference=/lib/udev $RPM_BUILD_ROOT/lib/udev
fi
if test -d $RPM_BUILD_ROOT/usr/lib/udev
then
chmod --verbose --reference=/usr/lib/udev $RPM_BUILD_ROOT/usr/lib/udev
fi
#remove ocaml bindings files if they are disable via rpm macro
%if !%{with ocaml_bindings}
rm -rfv $RPM_BUILD_ROOT%{_libdir}/ocaml