2 %bcond_without tests # do not perform "make test"
3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
6 %define module progress
7 %define egg_name progress
8 %define pypi_name progress
9 Summary: Easy to use progress bars
10 Name: python-%{pypi_name}
14 Group: Libraries/Python
15 Source0: https://github.com/verigak/progress/archive/%{version}.tar.gz
16 # Source0-md5: 236c376f2c125428633ebf3fd3321471
17 URL: https://pypi.python.org/pypi/progress
18 BuildRequires: rpm-pythonprov
19 BuildRequires: rpmbuild(macros) >= 1.714
21 BuildRequires: python-modules
22 BuildRequires: python-setuptools
25 BuildRequires: python3-modules
26 BuildRequires: python3-setuptools
28 Requires: python-modules
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 Easy progress reporting for Python.
35 %package -n python3-%{pypi_name}
36 Summary: Easy to use progress bars
37 Group: Libraries/Python
38 Requires: python3-modules
40 %description -n python3-%{pypi_name}
41 Easy progress reporting for Python.
44 %setup -q -n %{pypi_name}-%{version}
48 %py_build %{?with_tests:test}
52 %py3_build %{?with_tests:test}
56 rm -rf $RPM_BUILD_ROOT
68 rm -rf $RPM_BUILD_ROOT
72 %defattr(644,root,root,755)
74 %{py_sitescriptdir}/%{module}
75 %{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
79 %files -n python3-%{pypi_name}
80 %defattr(644,root,root,755)
82 %{py3_sitescriptdir}/%{module}
83 %{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info