Patch from Dan Nicholson to make udev rules unconfigurable

This commit is contained in:
Linus Walleij 2009-12-01 17:16:07 +00:00
parent 630065b71c
commit 6b5e6d9435

View File

@ -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,-)