[packages/python3-zipp] - python-zipp.spec updated to 3.7.0 for python 3.7+

qboosh qboosh at pld-linux.org
Mon Mar 7 19:49:54 CET 2022


commit 64bd6f836b78c965e0df0f37646a061064042a7e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Mar 7 19:51:56 2022 +0100

    - python-zipp.spec updated to 3.7.0 for python 3.7+

 python-zipp.spec  | 148 ------------------------------------------------------
 python3-zipp.spec |  88 ++++++++++++++++++++++++++++++++
 2 files changed, 88 insertions(+), 148 deletions(-)
---
diff --git a/python-zipp.spec b/python-zipp.spec
deleted file mode 100644
index 890701a..0000000
--- a/python-zipp.spec
+++ /dev/null
@@ -1,148 +0,0 @@
-#
-# Conditional build:
-%bcond_without	doc	# Sphinx documentation
-%bcond_without	tests	# unit tests
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	pathlib-compatible Zipfile object wrapper
-Summary(pl.UTF-8):	Obiektowe obudowanie Zipfile zgodne z pathlib
-Name:		python-zipp
-# keep 1.x here for python2 support
-Version:	1.2.0
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/zipp/
-Source0:	https://files.pythonhosted.org/packages/source/z/zipp/zipp-%{version}.tar.gz
-# Source0-md5:	c25d36db01d011eb2067c722cbd56279
-URL:		https://pypi.org/project/zipp/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools >= 1:31.0.1
-BuildRequires:	python-setuptools_scm >= 1.15.0
-%if %{with tests}
-BuildRequires:	python-contextlib2
-BuildRequires:	python-func_timeout
-BuildRequires:	python-jaraco.itertools
-BuildRequires:	python-linecache2
-BuildRequires:	python-pathlib2
-BuildRequires:	python-traceback2
-BuildRequires:	python-unittest2
-%endif
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.2
-BuildRequires:	python3-setuptools >= 1:31.0.1
-BuildRequires:	python3-setuptools_scm >= 1.15.0
-%if %{with tests}
-BuildRequires:	python3-func_timeout
-BuildRequires:	python3-jaraco.itertools
-%endif
-%endif
-BuildRequires:	rpm-pythonprov
-BuildRequires:	rpmbuild(macros) >= 1.714
-%if %{with doc}
-BuildRequires:	python-jaraco.packaging >= 3.2
-BuildRequires:	python-rst.linker >= 1.9
-BuildRequires:	sphinx-pdg-2
-%endif
-Requires:	python-modules >= 1:2.7
-BuildArch:	noarch
-BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-pathlib-compatible Zipfile object wrapper - backport from Python 3.8
-zipfile module.
-
-%description -l pl.UTF-8
-Obiektowe obudowanie Zipfile zgodne z pathlib - backport z modułu
-zipfile Pythona 3.8.
-
-%package -n python3-zipp
-Summary:	pathlib-compatible Zipfile object wrapper
-Summary(pl.UTF-8):	Obiektowe obudowanie Zipfile zgodne z pathlib
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.2
-
-%description -n python3-zipp
-pathlib-compatible Zipfile object wrapper - backport from Python 3.8
-zipfile module.
-
-%description -n python3-zipp -l pl.UTF-8
-Obiektowe obudowanie Zipfile zgodne z pathlib - backport z modułu
-zipfile Pythona 3.8.
-
-%package apidocs
-Summary:	API documentation for Python zipp module
-Summary(pl.UTF-8):	Dokumentacja API modułu Pythona zipp
-Group:		Documentation
-
-%description apidocs
-API documentation for Python zipp module.
-
-%description apidocs -l pl.UTF-8
-Dokumentacja API modułu Pythona zipp.
-
-%prep
-%setup -q -n zipp-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-%{__python} -m unittest test_zipp
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-%{__python3} -m unittest test_zipp
-%endif
-%endif
-
-%if %{with doc}
-sphinx-build-2 -b html docs docs/_build/html
-%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 CHANGES.rst LICENSE README.rst
-%{py_sitescriptdir}/zipp.py[co]
-%{py_sitescriptdir}/zipp-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-zipp
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE README.rst
-%{py3_sitescriptdir}/zipp.py
-%{py3_sitescriptdir}/__pycache__/zipp.cpython-*.py[co]
-%{py3_sitescriptdir}/zipp-%{version}-py*.egg-info
-%endif
-
-%if %{with doc}
-%files apidocs
-%defattr(644,root,root,755)
-%doc docs/_build/html/{_static,*.html,*.js}
-%endif
diff --git a/python3-zipp.spec b/python3-zipp.spec
new file mode 100644
index 0000000..287669c
--- /dev/null
+++ b/python3-zipp.spec
@@ -0,0 +1,88 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+
+Summary:	pathlib-compatible Zipfile object wrapper
+Summary(pl.UTF-8):	Obiektowe obudowanie Zipfile zgodne z pathlib
+Name:		python3-zipp
+Version:	3.7.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/zipp/
+Source0:	https://files.pythonhosted.org/packages/source/z/zipp/zipp-%{version}.tar.gz
+# Source0-md5:	5a1fc692b57b348d1e259484b405ddf6
+URL:		https://pypi.org/project/zipp/
+BuildRequires:	python3-modules >= 1:3.7
+BuildRequires:	python3-setuptools >= 1:31.0.1
+BuildRequires:	python3-setuptools_scm >= 3.4.1
+BuildRequires:	python3-toml
+%if %{with tests}
+BuildRequires:	python3-func_timeout
+BuildRequires:	python3-jaraco.itertools
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	python3-jaraco.packaging >= 8.2
+BuildRequires:	python3-rst.linker >= 1.9
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.7
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pathlib-compatible Zipfile object wrapper - backport from Python 3.8
+zipfile module.
+
+%description -l pl.UTF-8
+Obiektowe obudowanie Zipfile zgodne z pathlib - backport z modułu
+zipfile Pythona 3.8.
+
+%package apidocs
+Summary:	API documentation for Python zipp module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona zipp
+Group:		Documentation
+
+%description apidocs
+API documentation for Python zipp module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona zipp.
+
+%prep
+%setup -q -n zipp-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+%{__python3} -m unittest test_zipp
+%endif
+
+%if %{with doc}
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGES.rst LICENSE README.rst
+%{py3_sitescriptdir}/zipp.py
+%{py3_sitescriptdir}/__pycache__/zipp.cpython-*.py[co]
+%{py3_sitescriptdir}/zipp-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-zipp.git/commitdiff/64bd6f836b78c965e0df0f37646a061064042a7e



More information about the pld-cvs-commit mailing list