[packages/python-progress] - initial 1.3

arekm arekm at pld-linux.org
Thu Nov 9 08:20:04 CET 2017


commit ec6437d0b8da8c67c04d071e7b51c0756e39562f
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu Nov 9 08:19:50 2017 +0100

    - initial 1.3

 python-progress.spec | 84 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 84 insertions(+)
---
diff --git a/python-progress.spec b/python-progress.spec
new file mode 100644
index 0000000..4a6947f
--- /dev/null
+++ b/python-progress.spec
@@ -0,0 +1,84 @@
+# Conditional build:
+%bcond_without	tests	# do not perform "make test"
+%bcond_without	python2 # CPython 2.x module
+%bcond_without	python3 # CPython 3.x module
+
+%define		module		progress
+%define		egg_name	progress
+%define		pypi_name	progress
+Summary:	Easy to use progress bars
+Name:		python-%{pypi_name}
+Version:	1.3
+Release:	1
+License:	ISC
+Group:		Libraries/Python
+Source0:	https://github.com/verigak/progress/archive/%{version}.tar.gz
+# Source0-md5:	236c376f2c125428633ebf3fd3321471
+URL:		https://pypi.python.org/pypi/progress
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with python2}
+BuildRequires:	python-modules
+BuildRequires:	python-setuptools
+%endif
+%if %{with python3}
+BuildRequires:	python3-modules
+BuildRequires:	python3-setuptools
+%endif
+Requires:	python-modules
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Easy progress reporting for Python.
+
+%package -n python3-%{pypi_name}
+Summary:	Easy to use progress bars
+Group:		Libraries/Python
+Requires:	python3-modules
+
+%description -n python3-%{pypi_name}
+Easy progress reporting for Python.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+
+%build
+%if %{with python2}
+%py_build %{?with_tests:test}
+%endif
+
+%if %{with python3}
+%py3_build %{?with_tests:test}
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/%{module}
+%{py_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-%{pypi_name}
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{egg_name}-%{version}-py*.egg-info
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-progress.git/commitdiff/ec6437d0b8da8c67c04d071e7b51c0756e39562f



More information about the pld-cvs-commit mailing list