diff --git a/.gitignore b/.gitignore index e69de29..0432424 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/v0.1.tar.gz diff --git a/3dprinter-udev-rules.spec b/3dprinter-udev-rules.spec new file mode 100644 index 0000000..cb84ca8 --- /dev/null +++ b/3dprinter-udev-rules.spec @@ -0,0 +1,54 @@ +Name: 3dprinter-udev-rules +Version: 0.1 +Release: 1%{?dist} +Summary: Rules for udev to give regular users access to operate 3D printers +License: CC0 +URL: https://github.com/hroncok/%{name} +Source0: %{url}/archive/v%{version}.tar.gz +BuildArch: noarch + +# For the %%_udevrulesdir macro +BuildRequires: systemd + +# For the directory +Requires: systemd + +%global file_name 66-3dprinter.rules + +%description +Normally, when you connect a RepRap like 3D printer to a Linux machine by an +USB cable, you need to be in dialout or similar group to be able to control +it via OctoPrint, Printrun, Cura or any other control software. Not any more. + +Install this package to grant all users read and write access to +/dev/ttyUSB[0-9] and /dev/ttyACM[0-9]. + +Disclaimer: Such device might not be a 3D printer, it my be an Arduino, it +might be a modem and it might even be a blender. But normally you would +add your user to dialout and get access to all of those and more anyway. +So I guess be careful when some of the users should not get access to +your blenders. + +%prep +%setup -q + +%build +# nothing + +%install +install -D -p -m 644 %{file_name} %{buildroot}%_udevrulesdir/%{file_name} + +%post +%udev_rules_update + +%postun +%udev_rules_update + +%files +%doc README.md +%license LICENSE +%_udevrulesdir/%{file_name} + +%changelog +* Fri Feb 26 2016 Miro HronĨok - 0.1-1 +- Initial package diff --git a/sources b/sources index e69de29..18a7dd2 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e426194473e20c2c5b1a3b749346e54e v0.1.tar.gz