# Created by pyp2rpm-1.1.2
%global pypi_name xonsh
Name: %{pypi_name}
Version: 0.3.3
Release: 1%{?dist}
Summary: A general purpose, Python-ish shell
License: BSD
URL: http://xon.sh
Source0: https://pypi.io/packages/source/x/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-ply
Requires: python3-ply
%description
xonsh is a Python-ish, BASHwards-compatible shell language and
command prompt. The language is a superset of Python 3.4 with
additional shell primitives. xonsh (pronounced *conch*) is
meant for the daily use of experts and novices alike.
%prep
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%setup -q -n %{pypi_name}-%{version}
%build
# Remove shebangs
sed --in-place "s:#!\s*/usr.*::" xonsh/xoreutils/_which.py
%{__python3} setup.py build
%install
%{__python3} setup.py install --skip-build --root %{buildroot}
%files
%doc README.rst
%{_bindir}/xonsh
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/xontrib
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%changelog
* Mon Jun 06 2016 Luke Macken <lmacken@redhat.com> - 0.3.3-1
- Latest upstream release
- Update the URL
* Fri Jun 03 2016 Luke Macken <lmacken@redhat.com> - 0.3.2-1
- Latest upstream release
- Update the Summary
* Mon Mar 16 2015 Robert Kuska <rkuska@redhat.com> - 0.1.2-1
- Initial package.