package created using the webbuild interface [release 20170922git-1mamba;Fri Sep 22 2017]
This commit is contained in:
parent
da2d689173
commit
a9bab07854
11
flirc_util-99-flirc.rules
Normal file
11
flirc_util-99-flirc.rules
Normal file
@ -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"
|
57
flirc_util.spec
Normal file
57
flirc_util.spec
Normal file
@ -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 <silvan.calarco@mambasoft.it>
|
||||
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 <silvan.calarco@mambasoft.it> 20170922git-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user