#2 Convert to pyproject-macros
Merged 2 years ago by aekoroglu. Opened 2 years ago by cstratak.
rpms/ cstratak/python-libdiscid pyproject_setuptools  into  rawhide

file modified
+19 -14
@@ -2,7 +2,7 @@ 

  

  Name:           python-libdiscid

  Version:        2.0.1

- Release:        2%{?dist}

+ Release:        3%{?dist}

  Summary:        Python bindings for libdiscid

  

  License:        MIT
@@ -12,9 +12,8 @@ 

  BuildRequires:  gcc

  BuildRequires:  libdiscid-devel

  BuildRequires:  python%{python3_pkgversion}-devel

- BuildRequires:  python%{python3_pkgversion}-setuptools

+ BuildRequires:  pyproject-rpm-macros

  BuildRequires:  python%{python3_pkgversion}-sphinx

- BuildRequires:  python%{python3_pkgversion}-Cython >= 0.15

  

  %description

  python-libdiscid provides Python bindings for libdiscid. libdiscid's
@@ -30,35 +29,41 @@ 

  main purpose is the calculation of identifiers for audio discs to use

  for the MusicBrainz database.

  

+ %generate_buildrequires

+ %pyproject_buildrequires

  

  %prep

  %autosetup

- # Fix sys.path for docs build

- sed -i 's/..\/", b.build_lib/..\/build\/lib.%{python3_platform}-%{python3_version}"/' docs/conf.py

  

  

  %build

- %py3_build

- %{__python3} setup.py build_sphinx

- rm build/html/.buildinfo

+ %pyproject_wheel

+ PYTHONPATH="%{pyproject_build_lib}" sphinx-build-3 docs/ html

+ rm -rf html/.{doctrees,buildinfo}

  

  

  %install

- %py3_install

- 

+ %pyproject_install

+ %pyproject_save_files libdiscid

  

  %check

- %{__python3} -Wall setup.py test

+ pushd libdiscid

+ PYTHONPATH=%{buildroot}%{python3_sitearch}/ %{python3} -m unittest discover -v

+ popd

  

  

- %files -n python%{python3_pkgversion}-libdiscid

+ %files -n python%{python3_pkgversion}-libdiscid -f %{pyproject_files}

  %license LICENSE

- %doc changelog PKG-INFO build/html/

- %{python3_sitearch}/*libdiscid*/

+ %doc changelog PKG-INFO html

  %exclude %{python3_sitearch}/*libdiscid*/tests/

  

  

  %changelog

+ * Wed Jun 22 2022 Charalampos Stratakis <cstratak@redhat.com> - 2.0.1-3

+ - Convert to pyproject-rpm-macros

+ - Fixes FTBFS with setuptools >= 62.1

+ Resolves: rhbz#2097105

+ 

  * Sun Jun 19 2022 Python Maint <python-maint@redhat.com> - 2.0.1-2

  - Rebuilt for Python 3.11

  

Fixes FTBFS with setuptools >= 62.1

Resolves: rhbz#

rebased onto 7e7da89

2 years ago

Pull-Request has been merged by aekoroglu

2 years ago
Metadata