653ead
%global pypi_name autopep8
653ead
%global py3_name python3-%{pypi_name}
653ead
Nikola Dipanov f79434
Name:           python-autopep8
93b379
Version:        1.4.3
d85625
Release:        4%{?dist}
Nikola Dipanov f79434
Summary:        The package autopep8 formats Python code based on the output of the pep8 utility
Nikola Dipanov f79434
653ead
License:        MIT
Nikola Dipanov f79434
URL:            http://pypi.python.org/pypi/autopep8
858097
Source0:        https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Nikola Dipanov f79434
Nikola Dipanov f79434
BuildArch:      noarch
858097
858097
%description
858097
autopep8 formats Python code based on the output of the pep8 utility.
858097
653ead
%package -n %{py3_name}
653ead
Summary:        The package autopep8 formats Python code based on the output of the pep8 utility
Nikola Dipanov f79434
858097
%{?python_provide:%python_provide python3-%{pypi_name}}
653ead
BuildRequires:  python3-devel
93b379
BuildRequires:  python3-pycodestyle
93b379
Requires:       python3-pycodestyle
653ead
653ead
%description -n %{py3_name}
Nikola Dipanov f79434
autopep8 formats Python code based on the output of the pep8 utility.
Nikola Dipanov f79434
Nikola Dipanov f79434
Nikola Dipanov f79434
%prep
858097
%autosetup -n autopep8-%{version}
653ead
sed -i -e '1d' autopep8.py
Nikola Dipanov f79434
touch test/__init__.py #test needs to be a python module otherwise test will fial
Nikola Dipanov f79434
653ead
Nikola Dipanov f79434
%build
653ead
858097
%py3_build
653ead
Nikola Dipanov f79434
Nikola Dipanov f79434
%check
653ead
# rpmbuild forces the use of LANG=C which fails unit tests
653ead
aa9ba8
%{__python3} setup.py test
Nikola Dipanov f79434
653ead
Nikola Dipanov f79434
%install
93b379
%py3_install
653ead
mv %{buildroot}%{_bindir}/%{pypi_name} %{buildroot}%{_bindir}/%{py3_name}
858097
pushd %{buildroot}%{_bindir}
858097
ln -s %{py3_name} %{pypi_name}-3
858097
ln -s %{py3_name} %{pypi_name}-%{python3_version}
653ead
popd
653ead
653ead
653ead
%files -n %{py3_name}
858097
%license LICENSE
653ead
%doc README.rst
4d1171
%{python3_sitelib}/%{pypi_name}.py
4d1171
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
4d1171
%{python3_sitelib}/__pycache__/*
653ead
%{_bindir}/%{py3_name}
858097
%{_bindir}/%{pypi_name}-3
858097
%{_bindir}/%{pypi_name}-%{python3_version}
653ead
653ead
Nikola Dipanov f79434
Nikola Dipanov f79434
%changelog
d85625
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.4.3-4
d85625
- Rebuilt for Python 3.8
d85625
8a326e
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-3
8a326e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8a326e
e2358f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
e2358f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e2358f
93b379
* Tue Jan 29 2019 Matthias Runge <mrunge@redhat.com> - 1.4.3-1
93b379
- update to 1.4.3, drop python2 subpackage
93b379
aa9ba8
* Sun Nov 18 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2.4-10
aa9ba8
- Drop explicit locale setting for python3, use C.UTF-8 for python2
aa9ba8
  See https://fedoraproject.org/wiki/Changes/Remove_glibc-langpacks-all_from_buildroot
aa9ba8
3a59d4
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-9
3a59d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3a59d4
40d4c1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2.4-8
40d4c1
- Rebuilt for Python 3.7
40d4c1
6fdd7d
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-7
6fdd7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
6fdd7d
359efb
* Mon Jan 15 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2.4-6
359efb
- Update Python 2 dependency declarations to new packaging standards
359efb
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
359efb
7f0ca8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-5
7f0ca8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
7f0ca8
c470ae
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.4-4
c470ae
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c470ae
376591
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2.4-3
376591
- Rebuild for Python 3.6
376591
4d1171
* Fri Nov 25 2016 Matthias Runge <mrunge@redhat.com> - 1.2.4-2
4d1171
- fix __pycache__ ownership
4d1171
858097
* Tue Nov 01 2016 Matthias Runge <mrunge@redhat.com> - 1.2.4-1
858097
- update to 1.2.4
858097
- update python3 executable name in new style (rhbz#1341315)
858097
3ce2a9
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-3
3ce2a9
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
3ce2a9
67d7c4
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.1-2
67d7c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
67d7c4
Robert Kuska b56134
* Wed Jan 27 2016 Robert Kuska <rkuska@redhat.com> - 1.2.1-1
Robert Kuska b56134
- Update to 1.2.1
Robert Kuska b56134
83ed55
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
83ed55
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
83ed55
Nikola Dipanov cc274a
* Fri Aug 28 2015 Nikola Dipanov <ndipanov@redhat.com> - 1.2-1
Nikola Dipanov cc274a
- Update to upstream version 1.2
Nikola Dipanov cc274a
653ead
* Sat Jul 11 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 1.1.1-1
653ead
- Upstream 1.1.1
653ead
- Use python versioned macros
653ead
- Add missing dist in release tag
653ead
- Add python3 subpackage
653ead
3558a9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-3
3558a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3558a9
c11061
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
c11061
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c11061
653ead
* Tue Aug 13 2013 Nikola Dipanov <ndipanov@redhat.com> - 0.9.2-1
Nikola Dipanov a3dea0
- Update to upstream version 0.9.2
Nikola Dipanov a3dea0
58a5e2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-3
58a5e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
58a5e2
480c14
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-2
480c14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
480c14
653ead
* Thu Sep 06 2012 Nikola Dipanov <ndipanov@redhat.com> - 0.8-1
Nikola Dipanov f79434
- initial build