commit ea74b73c651b533aae306de4d2fb46fcce6ad8ec Author: Jakub Bogusz <qbo...@pld-linux.org> Date: Sun Oct 29 20:33:48 2023 +0100
- python-PasteScript.spec updated to 3.3.0 for python 3.4+ ...python3-PasteScript-template_dir_assemble.patch | 0 ...on-PasteScript.spec => python3-PasteScript.spec | 43 +++++++++++----------- 2 files changed, 21 insertions(+), 22 deletions(-) --- diff --git a/python-PasteScript.spec b/python3-PasteScript.spec similarity index 72% rename from python-PasteScript.spec rename to python3-PasteScript.spec index fdc4d66..019a697 100644 --- a/python-PasteScript.spec +++ b/python3-PasteScript.spec @@ -5,29 +5,30 @@ Summary: A pluggable command-line tool Summary(pl.UTF-8): Narzędzie linii poleceń z obsługą wtyczek -Name: python-PasteScript -# keep <3.3 here for python2 support -Version: 2.0.2 +Name: python3-PasteScript +Version: 3.3.0 Release: 1 License: MIT Group: Libraries/Python #Source0Download: https://pypi.org/simple/pastescript/ Source0: https://files.pythonhosted.org/packages/source/P/PasteScript/PasteScript-%{version}.tar.gz -# Source0-md5: ccb3045445097192ca71a13b746c77b2 +# Source0-md5: f8a20ba18f7bb64d5c17ace06151181a Patch0: %{name}-template_dir_assemble.patch URL: https://pypi.org/project/pastescript/ -BuildRequires: python-devel >= 1:2.6 -BuildRequires: python-setuptools >= 0.6-0.a9.1 +BuildRequires: python3-devel >= 1:3.4 +BuildRequires: python3-setuptools >= 0.6-0.a9.1 %if %{with tests} -BuildRequires: python-Paste >= 1.3 -BuildRequires: python-PasteDeploy >= 1.3.3 -BuildRequires: python-cheetah -BuildRequires: python-nose >= 0.11 -BuildRequires: python-six +BuildRequires: python3-Paste >= 3.0 +BuildRequires: python3-PasteDeploy >= 1.3.3 +BuildRequires: python3-nose >= 0.11 +BuildRequires: python3-six %endif BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.714 -Requires: python-modules >= 1:2.6 +%if %{with doc} +BuildRequires: sphinx-pdg-3 +%endif +Requires: python3-modules >= 1:3.4 BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -65,35 +66,33 @@ Dokumentacja API modułu Pythona PasteScript. %patch0 -p1 %build -%py_build +%py3_build %if %{with tests} PYTHONPATH=$(pwd) \ -nosetests-%{py_ver} tests -e test_list +nosetests-%{py3_ver} tests -e test_list # test_list requires clean venv(?) %endif %if %{with doc} -sphinx-build-2 -b html docs docs/build/html +sphinx-build-3 -b html docs docs/build/html %endif %install rm -rf $RPM_BUILD_ROOT -%py_install - -find $RPM_BUILD_ROOT%{py_sitescriptdir} -name \*.py -and -not -path *templates* | xargs %{__rm} +%py3_install %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc README.rst +%doc AUTHORS README.rst %attr(755,root,root) %{_bindir}/paster -%{py_sitescriptdir}/paste/script -%{py_sitescriptdir}/PasteScript-%{version}-py*.egg-info -%{py_sitescriptdir}/PasteScript-%{version}-py*-nspkg.pth +%{py3_sitescriptdir}/paste/script +%{py3_sitescriptdir}/PasteScript-%{version}-py*.egg-info +%{py3_sitescriptdir}/PasteScript-%{version}-py*-nspkg.pth %if %{with doc} %files apidocs diff --git a/python-PasteScript-template_dir_assemble.patch b/python3-PasteScript-template_dir_assemble.patch similarity index 100% rename from python-PasteScript-template_dir_assemble.patch rename to python3-PasteScript-template_dir_assemble.patch ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/python3-PasteScript.git/commitdiff/ea74b73c651b533aae306de4d2fb46fcce6ad8ec _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit