%define rc_version 0 %if 0%{?rc_version} %define release_prefix 0.rc%{rc_version}. %endif Name: sd-mux-ctrl Summary: Control software for sd-mux devices. Version: 0.0.1 Release: %{?release_prefix}%{?opensuse_bs:.}%{!?opensuse_bs:0} Group: Development/Tools License: Apache-2.0 URL: http://www.tizen.org Source0: %{name}_%{version}.tar.gz BuildRequires: cmake Requires: libftdi >= 1.2 Requires: popt BuildRoot: %{_tmppath}/%{name}_%{version}-build %description Tool for controlling multiple sd-mux devices. This tool allows: to connect SD card to DUT (Device Under Test) or to TS (Test Server) to connect one USB port to DUT or TS to power off or on DUT to reset DUT through power disconnecting and reconnecting %prep %setup -q -n %{name}-%{version} %build cmake -DCMAKE_INSTALL_PREFIX=/usr %__make %install rm -rf %{buildroot} %make_install %files %{_bindir}/%{name}