%if 0%{?rhel} && 0%{?rhel} <= 6 %{!?__python2: %global __python2 /usr/bin/python2} %{!?python2_sitelib: %global python2_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %{!?python2_sitearch: %global python2_sitearch %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} %endif Name: ansible-shell Version: 0.0.2 Release: 1%{?dist} Summary: Interactive shell for Ansible with built-in tab completion for all the modules. Group: Applications/System License: GPLv3 URL: https://github.com/dominis/ansible-shell Source0: https://pypi.python.org/packages/source/a/ansible-shell/ansible-shell-0.0.2.tar.gz # License merged upstream # https://github.com/dominis/ansible-shell/issues/24 # https://github.com/dominis/ansible-shell/commit/5c296cc Source1: ansible-shell-0.0.2-COPYING Patch0: ansible-GPLv3-PKG-INFO.patch BuildRequires: python2-devel BuildRequires: python-setuptools Requires: ansible >= 1.3 %description Interactive shell for Ansible with built-in tab completion for all the modules. %prep %setup -q cp %{SOURCE1} ./COPYING %patch0 -p0 %build CFLAGS="$RPM_OPT_FLAGS" %{__python2} setup.py build %install rm -rf %{buildroot} %{__python2} setup.py install --skip-build --root $RPM_BUILD_ROOT %files %doc COPYING PKG-INFO %{_bindir}/%{name} %{python2_sitelib}/* %changelog * Thu May 22 2014 Adam Miller - 0.0.2-1 - First package for Fedora