]> git.pld-linux.org Git - packages/python3-itsdangerous.git/commitdiff
Up to 2.0.1 (supports python 3.6+) auto/th/python3-itsdangerous-2.0.1-1
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 13 Oct 2021 10:21:42 +0000 (10:21 +0000)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 13 Oct 2021 10:21:42 +0000 (10:21 +0000)
python3-itsdangerous.spec [moved from python-itsdangerous.spec with 58% similarity]

similarity index 58%
rename from python-itsdangerous.spec
rename to python3-itsdangerous.spec
index 42c415358808c26fe79bb2eda5d4ccdb55fad3ce..34303bc4c72e96e1b3c82dd06f21a82f0b771218 100644 (file)
@@ -2,39 +2,27 @@
 # 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
 
 %define        module  itsdangerous
 Summary:       Various helpers to pass trusted data to untrusted environments and back
 Summary(pl.UTF-8):     Wspomaganie przekazywania danych do i z niezaufanych środowisk
-Name:          python-%{module}
-Version:       1.1.0
-Release:       3
+Name:          python3-%{module}
+Version:       2.0.1
+Release:       1
 License:       BSD
 Group:         Libraries/Python
 #Source0Download: https://pypi.python.org/simple/itsdangerous
 Source0:       https://pypi.python.org/packages/source/i/itsdangerous/%{module}-%{version}.tar.gz
-# Source0-md5: 9b7f5afa7f1e3acfb7786eeca3d99307
+# Source0-md5: 996b9763d1b4bd0edd6eb86f0a490629
 URL:           http://github.com/mitsuhiko/itsdangerous
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-freezegun
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-modules >= 1:3.6
 BuildRequires: python3-setuptools
 %if %{with tests}
 BuildRequires: python3-freezegun
 BuildRequires: python3-pytest
 %endif
-%endif
 %if %{with doc}
 BuildRequires: python3-pallets-sphinx-themes >= 1.1.0
 BuildRequires: sphinx-pdg-3 >= 1.8.0
@@ -51,20 +39,6 @@ back safe and sound.
 Funkcje pomocnicze do przekazywania danych do niezaufanych środowisk i
 pobierania ich w sposób bezpieczny.
 
-%package -n python3-%{module}
-Summary:       Various helpers to pass data to untrusted environments and to get it back safe and sound
-Summary(pl.UTF-8):     Wspomaganie przekazywania danych do i z niebezpiecznych środowisk
-Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.4
-
-%description -n python3-%{module}
-Various helpers to pass data to untrusted environments and to get it
-back safe and sound.
-
-%description -n python3-%{module} -l pl.UTF-8
-Funkcje pomocnicze do przekazywania danych do niezaufanych środowisk i
-pobierania ich w sposób bezpieczny.
-
 %package apidocs
 Summary:       Documentation for Python itsdangerous module
 Summary(pl.UTF-8):     Dokumentacja do moduły Pythona itsdangerous
@@ -80,17 +54,6 @@ Dokumentacja do moduły Pythona itsdangerous.
 %setup -q -n %{module}-%{version}
 
 %build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTHONPATH=$(pwd)/src \
-%{__python} -m pytest tests
-%endif
-%endif
-
-%if %{with python3}
 %py3_build
 
 %if %{with tests}
@@ -98,7 +61,6 @@ PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTHONPATH=$(pwd)/src \
 %{__python3} -m pytest tests
 %endif
-%endif
 
 %if %{with doc}
 PYTHONPATH=$(pwd)/src \
@@ -108,34 +70,16 @@ PYTHONPATH=$(pwd)/src \
 %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.rst README.rst
-%{py_sitescriptdir}/itsdangerous
-%{py_sitescriptdir}/itsdangerous-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc CHANGES.rst LICENSE.rst README.rst
 %{py3_sitescriptdir}/itsdangerous
 %{py3_sitescriptdir}/itsdangerous-%{version}-py*.egg-info
-%endif
 
 %if %{with doc}
 %files apidocs
This page took 0.1439 seconds and 4 git commands to generate.