9995678
Name:           python-box
9696810
Version:        3.4.5
9696810
Release:        1%{?dist}
9995678
Summary:        Python dictionaries with advanced dot notation access
9995678
9995678
License:        MIT
9995678
URL:            https://github.com/cdgriffith/Box
9995678
Source0:        %{pypi_source}
9995678
BuildArch:      noarch
9995678
9995678
BuildRequires: /usr/bin/pathfix.py
9995678
9995678
%description
9995678
%{summary}
9995678
9995678
%package -n python3-box
9995678
Summary:        %{summary}
9995678
BuildRequires:  python3-devel
9995678
BuildRequires:  python3-pytest-runner
9995678
%{?python_provide:%python_provide python3-box}
9995678
9995678
%description -n python3-box
9995678
%{summary}
9995678
9995678
%prep
9995678
%autosetup -n python-box-%{version}
9995678
9995678
%build
9995678
%py3_build
9995678
9995678
%install
9995678
%py3_install
9995678
9995678
# Make sure we don't have ambiguous python shebangs in bindir
9995678
# https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error
9995678
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/box.py
9995678
9995678
# Otherwise remove the shebang from site-packages
9995678
sed -i "\%#!/usr/bin/env python%d" %{buildroot}%{python3_sitelib}/box.py
9995678
9995678
%files -n python3-box
9995678
%license LICENSE
9995678
%doc README.rst
9995678
%{_bindir}/box.py
9995678
%{python3_sitelib}/box.py
9995678
%{python3_sitelib}/python_box-*.egg-info/
9995678
%{python3_sitelib}/__pycache__/*
9995678
9995678
%changelog
9696810
* Fri Oct 11 2019 David Moreau Simard <dmsimard@redhat.com> - 3.4.5-1
9696810
- Update to latest upstream release
9696810
205b398
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.4.2-2
205b398
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
205b398
9995678
* Fri Jul 5 2019 David Moreau Simard <dmsimard@redhat.com> - 3.4.1-1
9995678
- First version of the package