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
|
ln -sf mtp-connect mtp-sendtr
|
||||||
popd
|
popd
|
||||||
# Install udev rules file.
|
# Install udev rules file.
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
|
mkdir -p $RPM_BUILD_ROOT/lib/udev/rules.d
|
||||||
install -p -m 644 libmtp.rules $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/60-libmtp.rules
|
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
|
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
|
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
|
# Copy documentation to a good place
|
||||||
@ -100,8 +100,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files
|
%files
|
||||||
%defattr(-, root,root,-)
|
%defattr(-, root,root,-)
|
||||||
%{_libdir}/*.so.*
|
%{_libdir}/*.so.*
|
||||||
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
|
/lib/udev/rules.d/*
|
||||||
%config(noreplace) %{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
|
%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
|
||||||
|
|
||||||
%files examples
|
%files examples
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
Reference in New Issue
Block a user