diff --git a/README.md b/README.md index 0d6ad1d..e9a15cd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # flirc_util +Utility for the management of Flirc devices. + diff --git a/flirc_util-99-flirc.rules b/flirc_util-99-flirc.rules new file mode 100644 index 0000000..eb02f8a --- /dev/null +++ b/flirc_util-99-flirc.rules @@ -0,0 +1,11 @@ +# Flirc Devices + +# Bootloader +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0000", MODE="0666" +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0002", MODE="0666" +SUBSYSTEM=="hidraw", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="0005", MODE="0666" + +# Flirc Application +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0001", MODE="0666" +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="20a0", ATTR{idProduct}=="0004", MODE="0666" +SUBSYSTEM=="hidraw", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="0006", MODE="0666" diff --git a/flirc_util.spec b/flirc_util.spec new file mode 100644 index 0000000..0df8d29 --- /dev/null +++ b/flirc_util.spec @@ -0,0 +1,57 @@ +Name: flirc_util +Version: 20170922git +Release: 1mamba +Summary: Utility for the management of Flirc devices +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/flirc +## GITSOURCE https://github.com/flirc/sdk.git master +Source: https://github.com/flirc/sdk.git/master/sdk-%{version}.tar.bz2 +Source1: flirc_util-99-flirc.rules +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libhidapi-devel +BuildRequires: libreadline-devel +BuildRequires: libtermcap-devel +BuildRequires: libusb-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Utility for the management of Flirc devices. + +%debug_package + +%prep +%setup -q -n sdk-%{version} +sed -i "s|readline|readline termcap|" cli/targets/flirc_util.mk + +%build +cd cli +%make all + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%ifarch %{ix86} +flirc_target=Linux_i686 +%else +flirc_target=Linux_%{_target_cpu} +%endif +install -D -m0755 cli/buildresults/${flirc_target}/icecc/flirc_util/release/flirc_util \ + %{buildroot}%{_bindir}/flirc_util +install -D -m0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/99-flirc.rules + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/flirc_util +%{_udevrulesdir}/99-flirc.rules + +%changelog +* Fri Sep 22 2017 Silvan Calarco 20170922git-1mamba +- package created using the webbuild interface