%define oname targetcli Name: targetcli License: AGPLv3 Group: Applications/System Summary: RisingTide Systems generic SCSI target CLI shell. Version: VERSION Release: 1%{?dist} URL: http://www.risingtidesystems.com/git/ Source: %{oname}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-rpmroot BuildArch: noarch BuildRequires: python-devel, python-rtslib, python-configshell Requires: python-rtslib, python-configshell, lio-utils Vendor: RisingTide Systems %description RisingTide Systems generic SCSI target CLI shell. %prep %setup -q -n %{oname}-%{version} %build %{__python} setup.py build %install rm -rf %{buildroot} %{__python} setup.py install --skip-build --root=%{buildroot} --prefix=usr %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %{python_sitelib} %{_bindir}/targetcli %doc COPYING README %changelog