Patch from Dan Nicholson to make udev rules unconfigurable
This commit is contained in:
parent
630065b71c
commit
6b5e6d9435
@ -70,8 +70,8 @@ ln -sf mtp-connect mtp-sendfile
|
||||
ln -sf mtp-connect mtp-sendtr
|
||||
popd
|
||||
# Install udev rules file.
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
|
||||
install -p -m 644 libmtp.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libmtp.rules
|
||||
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d
|
||||
install -p -m 644 libmtp.rules $RPM_BUILD_ROOT/lib/udev/rules.d/60-libmtp.rules
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop
|
||||
install -p -m 644 libmtp.fdi $RPM_BUILD_ROOT%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
|
||||
# Copy documentation to a good place
|
||||
@ -100,8 +100,8 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%files
|
||||
%defattr(-, root,root,-)
|
||||
%{_libdir}/*.so.*
|
||||
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
|
||||
%config(noreplace) %{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
|
||||
/lib/udev/rules.d/*
|
||||
%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
|
||||
|
||||
%files examples
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
Reference in New Issue
Block a user