flirc_util/flirc_util.spec

58 lines
1.5 KiB
RPMSpec
Raw Normal View History

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