3 %bcond_without tests # do not perform "make test"
4 %bcond_without python2 # CPython 2.x module
5 %bcond_with python3 # CPython 3.x module
7 %define module progressbar
8 Summary: Text progressbar library for python
13 Group: Libraries/Python
14 Source0: https://python-progressbar.googlecode.com/files/progressbar-%{version}.tar.gz
15 # Source0-md5: 4f904e94b783b4c6e71aa74fd2432c59
16 URL: https://code.google.com/p/python-progressbar/
17 BuildRequires: rpmbuild(macros) >= 1.710
18 BuildRequires: python-distribute
19 BuildRequires: rpm-pythonprov
20 BuildRequires: sed >= 4.0
22 BuildRequires: python3-devel
23 BuildRequires: python3-modules
25 Requires: python-modules
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 This library provides a text mode progressbar. This is tipically used
31 to display the progress of a long running operation, providing a
32 visual clue that processing is underway.
34 %package -n python3-%{module}
35 Summary: Text progressbar library for python
36 Group: Libraries/Python
38 %description -n python3-%{module}
39 This library provides a text mode progressbar. This is tipically used
40 to display the progress of a long running operation, providing a
41 visual clue that processing is underway.
44 %setup -q -n %{module}-%{version}
48 %py_build %{?with_tests:test}
52 %py3_build %{?with_tests:test}
56 rm -rf $RPM_BUILD_ROOT
69 rm -rf $RPM_BUILD_ROOT
73 %defattr(644,root,root,755)
75 %{py_sitescriptdir}/%{module}
76 %if "%{py_ver}" > "2.4"
77 %{py_sitescriptdir}/%{module}-*.egg-info
82 %files -n python3-%{module}
83 %defattr(644,root,root,755)
85 %{py3_sitescriptdir}/%{module}
86 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info