]> git.pld-linux.org Git - packages/python-distlib.git/blobdiff - python-distlib.spec
rebuild with python 3.10
[packages/python-distlib.git] / python-distlib.spec
index c589541c8d1f625da56160de6f4d4533a33c76b8..43098da04badbd5009c755c484e12f149a7a01c4 100644 (file)
@@ -7,15 +7,14 @@
 Summary:       Distribution utilities
 Summary(pl.UTF-8):     Narzędzia do dystrybuowania
 Name:          python-distlib
-Version:       0.3.0
-Release:       1
+Version:       0.3.4
+Release:       2
 License:       PSF v2
 Group:         Libraries/Python
 #Source0Download: https://pypi.org/simple/distlib/
 Source0:       https://files.pythonhosted.org/packages/source/d/distlib/distlib-%{version}.zip
-# Source0-md5: f92e0f3ac43397da86a82781117e8351
-Patch0:                %{name}-obsoletes.patch
-Patch1:                %{name}-sequencer.patch
+# Source0-md5: c886b7d99b4085c5d960e7435dcbd397
+Patch0:                %{name}-sequencer.patch
 URL:           https://pypi.org/project/distlib/
 %if %(locale -a | grep -q '^C\.utf8$'; echo $?)
 BuildRequires: glibc-localedb-all
@@ -24,10 +23,15 @@ BuildRequires:      glibc-localedb-all
 BuildRequires: python-modules >= 1:2.7
 %endif
 %if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
+BuildRequires: python3-modules >= 1:3.6
+%if %{with tests}
+BuildConflicts:        python3-astroid < 2.3.3-2
+BuildConflicts:        python3-pylint < 2.4.4-2
+%endif
 %endif
 BuildRequires: rpm-pythonprov
 BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
 BuildRequires: unzip
 Requires:      python-modules >= 1:2.7
 BuildArch:     noarch
@@ -45,7 +49,7 @@ wysokopoziomowe API ułatwiające pakietowanie.
 Summary:       Distribution utilities
 Summary(pl.UTF-8):     Narzędzia do dystrybuowania
 Group:         Libraries/Python
-Requires:      python3-modules >= 1:3.2
+Requires:      python3-modules >= 1:3.6
 
 %description -n python3-distlib
 Low-level components of distutils2/packaging, augmented with
@@ -58,7 +62,11 @@ wysokopoziomowe API ułatwiające pakietowanie.
 %prep
 %setup -q -n distlib-%{version}
 %patch0 -p1
-%patch1 -p1
+
+%if "%{_host_cpu}" == "x32"
+# distlib.wheel doesn't distinguish x32 from x86_64
+%{__sed} -i -e 's/test_mount_extensions/disabled&/' tests/test_wheel.py
+%endif
 
 %build
 %if %{with python2}
This page took 0.093241 seconds and 4 git commands to generate.