9e6777
%if 0%{?fedora}
9e6777
  %bcond_without python3
9e6777
  %if 0%{?fedora} > 29
9e6777
    %bcond_with python2
9e6777
  %else
9e6777
    %bcond_without python2
9e6777
  %endif
9e6777
%else
9e6777
  %if 0%{?rhel} > 7
9e6777
    %bcond_with    python2
9e6777
    %bcond_without python3
9e6777
  %else
9e6777
    %bcond_without python2
9e6777
    %bcond_with    python3
9e6777
  %endif
9e6777
%endif
9e6777
75755b
# Created by pyp2rpm-0.5.2
75755b
%global pypi_name progress
75755b
75755b
Name:           python-%{pypi_name}
e39309
Version:        1.5
c326a7
Release:        3%{?dist}
75755b
Summary:        Easy to use progress bars
75755b
75755b
License:        ISC
75755b
URL:            http://github.com/verigak/progress/
22856f
Source0:        %pypi_source
75755b
BuildArch:      noarch
9e6777
9e6777
%if %{with python2}
75755b
BuildRequires:  python2-devel
bb4ece
BuildRequires:  python2-setuptools
9e6777
%endif
9e6777
9e6777
%if %{with python3}
75755b
BuildRequires:  python3-devel
75755b
BuildRequires:  python3-setuptools
9e6777
%endif
75755b
22856f
Patch1:         0001-fixup-moving-average-window.patch
2e851c
fa4712
%global _description\
fa4712
Collection of easy to use progress bars and spinners.\
fa4712
fa4712
fa4712
%description %_description
75755b
9e6777
9e6777
%if 0%{with python2}
fa4712
%package -n python2-%{pypi_name}
fa4712
Summary: %summary
fa4712
%{?python_provide:%python_provide python2-%{pypi_name}}
fa4712
fa4712
%description -n python2-%{pypi_name} %_description
9e6777
%endif # python2
75755b
9e6777
9e6777
%if 0%{with python3}
75755b
%package -n     python3-%{pypi_name}
75755b
Summary:        Easy to use progress bars
75755b
75755b
%description -n python3-%{pypi_name}
75755b
Collection of easy to use progress bars and spinners.
9e6777
%endif # python3
75755b
75755b
75755b
%prep
2e851c
%autosetup -p1 -n %{pypi_name}-%{version}
0fe14e
75755b
# Remove bundled egg-info
75755b
rm -rf %{pypi_name}.egg-info
75755b
75755b
75755b
%build
9e6777
%{?with_python2: %py2_build}
9e6777
%{?with_python3: %py3_build}
75755b
75755b
75755b
%install
9e6777
%{?with_python2: %py2_install}
9e6777
%{?with_python3: %py3_install}
75755b
75755b
9e6777
%if 0%{with python2}
fa4712
%files -n python2-%{pypi_name}
75755b
%doc README.rst LICENSE
75755b
%{python2_sitelib}/%{pypi_name}
75755b
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
9e6777
%endif
75755b
9e6777
%if 0%{with python3}
75755b
%files -n python3-%{pypi_name}
75755b
%doc README.rst LICENSE
75755b
%{python3_sitelib}/%{pypi_name}
75755b
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
9e6777
%endif
9e6777
75755b
75755b
%changelog
c326a7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.5-3
c326a7
- Rebuilt for Python 3.8
c326a7
ac8738
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-2
ac8738
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
ac8738
e39309
* Mon Mar 18 2019 Pavel Raiskup <praiskup@redhat.com> - 1.5-1
e39309
- the latest upstream release
e39309
46094e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
46094e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
46094e
22856f
* Tue Dec 11 2018 Pavel Raiskup <praiskup@redhat.com> - 1.4-2
22856f
- followup for previous commit, PR#3
22856f
58de28
* Wed Dec 05 2018 Gwyn Ciesla <limburgher@gmail.com> - 1.4-1
58de28
- 1.4
58de28
9e6777
* Wed Oct 03 2018 Pavel Raiskup <praiskup@redhat.com> - 1.2-19
9e6777
- no python2 in f30+ (rhbz#1634951)
0fe14e
- fix el6 build (rhbz#1310704)
9e6777
650981
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-18
650981
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
650981
8148da
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.2-17
8148da
- Rebuilt for Python 3.7
8148da
88c608
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-16
88c608
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
88c608
bb4ece
* Sat Jan 27 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.2-15
bb4ece
- Update Python 2 dependency declarations to new packaging standards
bb4ece
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
bb4ece
fa4712
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.2-14
fa4712
- Python 2 binary package renamed to python2-progress
fa4712
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
fa4712
3ac39b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-13
3ac39b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3ac39b
8ece51
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-12
8ece51
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
8ece51
70654b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.2-11
70654b
- Rebuild for Python 3.6
70654b
7e487e
* Thu Dec 08 2016 Pavel Raiskup <praiskup@redhat.com> - 1.2-10
7e487e
- keep enabled python3 subpackage only in fedora, and merge into epel7
7e487e
2e851c
* Tue Nov 01 2016 Pavel Raiskup <praiskup@redhat.com> - 1.2-9
2e851c
- fix avg counter for copr-cli (rhbz#1299634)
2e851c
7a1218
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-8
7a1218
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
7a1218
87a905
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-7
87a905
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
87a905
5664ed
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-6
5664ed
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
5664ed
b079a9
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
b079a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
b079a9
44a95e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
44a95e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
44a95e
b96a49
* Tue May 13 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2-3
b96a49
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
b96a49
75755b
* Tue Feb 18 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2-2
75755b
- Add missing BR: python{,3}-setuptools
75755b
75755b
* Tue Feb 18 2014 Bohuslav Kabrda <bkabrda@redhat.com> - 1.2-1
75755b
- Initial package.