diff --git a/50-wedo.rules b/50-wedo.rules new file mode 100644 index 0000000..90c9286 --- /dev/null +++ b/50-wedo.rules @@ -0,0 +1,2 @@ +# Lego WeDo +ATTRS{idVendor}=="0694", ATTRS{idProduct}=="0003", SUBSYSTEMS=="usb", ACTION=="add", MODE="0666", GROUP="plugdev" diff --git a/scratch.spec b/scratch.spec index 749c0f5..14b1ce4 100644 --- a/scratch.spec +++ b/scratch.spec @@ -12,6 +12,7 @@ Source0: http://download.scratch.mit.edu/%{name}-%{version}.src.tar.gz # of modification -- see the included README. This file is under the MIT # and Apache 2.0 licenses. Source1: http://ftp.squeak.org/2.0/SqueakV2.sources.gz +Source2: 50-wedo.rules Patch0: scratch-1.4.0.7-use-fedora-squeak.patch Patch1: scratch-1.4.0.6-desktopfile-semicolon.patch @@ -167,6 +168,8 @@ install -m 644 src/icons/128x128/gnome-mime-application-x-scratch-project.png %{ install -m 755 -d %{buildroot}%{_datadir}/mime/packages install -m 644 src/%{name}.xml %{buildroot}%{_datadir}/mime/packages/ +install -m 755 -d %{buildroot}%{_udevrulesdir} +install -m 644 %{source0} %{buildroot}%{_udevrulesdir}/ %post /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : @@ -199,6 +202,7 @@ rm -rf %{buildroot} %{_datadir}/icons/hicolor/48x48/mimetypes/* %{_datadir}/icons/hicolor/128x128/apps/* %{_datadir}/icons/hicolor/128x128/mimetypes/* +%{_udevrulesdir}/50-wedo.rules %files image %defattr(-,root,root,-)