#2 Manually build-require python3-devel to fix FTBFS
Merged 3 years ago by churchyard. Opened 3 years ago by lbalhar.
rpms/ lbalhar/python-xmlschema master  into  master

file modified
+6 -2
@@ -1,13 +1,14 @@ 

  %global pypi_name xmlschema

  Name:           python-%{pypi_name}

  Version:        1.0.18

- Release:        4%{?dist}

+ Release:        5%{?dist}

  Summary:        A Python XML Schema validator and decoder

  

  License:        MIT

  URL:            https://github.com/brunato/xmlschema

  Source0:        %{pypi_source}

  BuildArch:      noarch

+ BuildRequires:  python3-devel

  BuildRequires:  pyproject-rpm-macros

  

  %global _description %{expand:
@@ -37,7 +38,7 @@ 

  %autosetup -n %{pypi_name}-%{version}

  sed -i 's/~=/>=/' setup.py tox.ini  # https://bugzilla.redhat.com/show_bug.cgi?id=1758141

  sed -i 's/==/>=/' tox.ini  # too strict test deps

- pathfix.py -pni %{python3} %{pypi_name}

+ %py3_shebang_fix %{pypi_name}

  

  %generate_buildrequires

  %pyproject_buildrequires -t
@@ -61,6 +62,9 @@ 

  

  

  %changelog

+ * Mon Sep 21 2020 Lumír Balhar <lbalhar@redhat.com> - 1.0.18-5

+ - Fix FTBFS by build-requiring python3-devel

+ 

  * Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.18-4

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

  

Without it, the package FTBFS because python3-devel provides pathfix.py:

+ pathfix.py -pni /usr/bin/python3 xmlschema
/var/tmp/rpm-tmp.Ghcm4u: line 47: pathfix.py: command not found
error: Bad exit status from /var/tmp/rpm-tmp.Ghcm4u (%prep)

Please bump the release and add changelog to satisfy Koschei.

Slightly related update suggestion: switch direct pathfix.py call to %py3_shebang_fix.

rebased onto f0feb7d

3 years ago

Pull-Request has been merged by churchyard

3 years ago