diff --git a/README.md b/README.md index 6d3ba2d..ef005fe 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # footswitch +Command line utility for programming foot switches sold by PCsensor. It works for both single pedal devices and three pedal devices. + diff --git a/footswitch.spec b/footswitch.spec new file mode 100644 index 0000000..ec0a7f1 --- /dev/null +++ b/footswitch.spec @@ -0,0 +1,46 @@ +Name: footswitch +Version: 20170201git +Release: 1mamba +Summary: Command line utility for programming foot switches sold by PCsensor +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/rgerganov/footswitch.git +## GITSOURCE https://github.com/rgerganov/footswitch.git master +Source: https://github.com/rgerganov/footswitch.git/master/footswitch-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libhidapi-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Command line utility for programming foot switches sold by PCsensor. It works for both single pedal devices and three pedal devices. + +%debug_package + +%prep +%setup -q + +%build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -D -m0755 footswitch %{buildroot}%{_bindir}/footswitch +install -D -m0644 19-footswitch.rules %{buildroot}%{_udevrulesdir}/19-footswitch.rules + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/footswitch +%{_udevrulesdir}/19-footswitch.rules +%doc LICENSE + +%changelog +* Wed Feb 01 2017 Silvan Calarco 20170201git-1mamba +- package created using the webbuild interface