#2 Stop building for 32-bit x86
Merged 2 months ago by pampelmuse. Opened 2 months ago by jjames.
rpms/ jjames/python-pyswip rawhide  into  rawhide

file modified
+17 -8
@@ -2,14 +2,17 @@ 

  

  Name:           python-%{srcname}

  Version:        0.2.10

- Release:        14%{?dist}

+ Release:        15%{?dist}

  Summary:        Python-SWI-Prolog bridge

  

  License:        MIT

  URL:            https://github.com/yuce/pyswip

  Source0:        https://github.com/yuce/pyswip/archive/v%{version}/%{srcname}-%{version}.tar.gz

  

+ # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval

+ ExcludeArch:    %{ix86}

  BuildArch:      noarch

+ 

  BuildRequires:  pl-devel

  BuildRequires:  python3-devel

  BuildRequires:  python3-setuptools
@@ -42,25 +45,31 @@ 

  %autosetup -n %{srcname}-%{version} -p1

  

  

+ %generate_buildrequires

+ %pyproject_buildrequires

+ 

+ 

  %build

- %py3_build

+ %pyproject_wheel

  

  

  %install

- %py3_install

+ %pyproject_install

+ %pyproject_save_files %{srcname}

  

  

  %check

- pytest-3 tests

+ %pytest

  

- %files -n python3-%{srcname}

- %license LICENSE

+ %files -n python3-%{srcname} -f %{pyproject_files}

  %doc README.md CHANGELOG.md

- %{python3_sitelib}/%{srcname}

- %{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info

  

  

  %changelog

+ * Thu Feb  1 2024 Jerry James <loganjerry@gmail.com> - 0.2.10-15

+ - Stop building for 32-bit x86

+ - Modernize the spec file

+ 

  * Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.10-14

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

  

I would like to stop building the pl package for 32-bit x86, but needs its consumers to do so first. Are you okay with not building for that platform anymore? See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval for the rationale.

This PR also moves from the deprecated %py_* macros to the modern %pyproject_* macros. Note that %license is no longer necessary because the license file is included in the python dist-info:

$ rpm -qLp python3-pyswip-0.2.10-15.fc40.noarch.rpm
/usr/lib/python3.12/site-packages/pyswip-0.2.10.dist-info/LICENSE

Finally, FYI, I am in the process of updating the pl package to version 9.2.0. A new build should appear in Rawhide shortly. I have already checked that this package still works with the new version.

Pull-Request has been merged by pampelmuse

2 months ago
Metadata