[packages/python-progressbar] - initial

arekm arekm at pld-linux.org
Mon Mar 10 10:23:59 CET 2014


commit a91480fe94af77a88a0d1b4210a2e9d0631bdceb
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 10 10:23:48 2014 +0100

    - initial

 python-progressbar.spec | 95 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 95 insertions(+)
---
diff --git a/python-progressbar.spec b/python-progressbar.spec
new file mode 100644
index 0000000..34a9443
--- /dev/null
+++ b/python-progressbar.spec
@@ -0,0 +1,95 @@
+#
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_with	python3 # CPython 3.x module
+
+%define 	module	progressbar
+Summary:	Text progressbar library for python
+Name:		python-%{module}
+Version:	2.3
+Release:	1
+License:	LGPL
+Group:		Libraries/Python
+Source0:	https://python-progressbar.googlecode.com/files/progressbar-%{version}.tar.gz
+# Source0-md5:	4f904e94b783b4c6e71aa74fd2432c59
+URL:		https://code.google.com/p/python-progressbar/
+BuildRequires:	python-distribute
+BuildRequires:	rpm-pythonprov
+BuildRequires:	sed >= 4.0
+%if %{with python3}
+BuildRequires:	python3-devel
+BuildRequires:	python3-distribute
+BuildRequires:	python3-modules
+%endif
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+This library provides a text mode progressbar. This is tipically used
+to display the progress of a long running operation, providing a
+visual clue that processing is underway.
+
+%package -n python3-%{module}
+Summary:	Text progressbar library for python
+Group:		Libraries/Python
+
+%description -n python3-%{module}
+This library provides a text mode progressbar. This is tipically used
+to display the progress of a long running operation, providing a
+visual clue that processing is underway.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%if %{with python2}
+%{__python} setup.py build --build-base build-2 %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%{__python3} setup.py build --build-base build-3 %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%{__python} setup.py \
+	build --build-base build-2 \
+	install --skip-build \
+	--root=$RPM_BUILD_ROOT \
+	--optimize=2
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%{__python3} setup.py \
+	build --build-base build-3 \
+	install --skip-build \
+	--root=$RPM_BUILD_ROOT \
+	--optimize=2
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.txt
+%{py_sitescriptdir}/%{module}
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{module}-*.egg-info
+%endif
+%endif
+
+%if %{with python3}
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%doc README.txt
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-progressbar.git/commitdiff/a91480fe94af77a88a0d1b4210a2e9d0631bdceb



More information about the pld-cvs-commit mailing list