#1 Convert to pyproject macros
Merged a month ago by carlwgeorge. Opened a month ago by carlwgeorge.
rpms/ carlwgeorge/python-cbor2 pyproject  into  rawhide

file modified
+14 -17
@@ -1,9 +1,8 @@ 

- # Created by pyp2rpm-3.3.4

  %global pypi_name cbor2

  

  Name:           python-%{pypi_name}

  Version:        5.1.2

- Release:        11%{?dist}

+ Release:        12%{?dist}

  Summary:        Python CBOR (de)serializer with extensive tag support

  

  License:        MIT
@@ -18,13 +17,7 @@ 

  

  %package -n     python3-%{pypi_name}

  Summary:        %{summary}

- 

  BuildRequires:  python3-devel

- BuildRequires:  python3dist(pytest)

- BuildRequires:  python3dist(pytest-cov)

- BuildRequires:  python3dist(setuptools)

- BuildRequires:  python3dist(setuptools-scm)

- %{?python_provide:%python_provide python3-%{pypi_name}}

  

  %description -n python3-%{pypi_name}

  This library provides encoding and decoding for the Concise Binary Object
@@ -33,39 +26,43 @@ 

  %package -n python-%{pypi_name}-doc

  Summary:        cbor2 documentation

  BuildArch:      noarch

- 

  BuildRequires:  python3dist(sphinx)

  BuildRequires:  python3dist(sphinx-rtd-theme)

+ 

  %description -n python-%{pypi_name}-doc

  Documentation for cbor2.

  

  %prep

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

- rm -rf %{pypi_name}.egg-info

+ 

+ %generate_buildrequires

+ %pyproject_buildrequires -x test

  

  %build

- %py3_build

+ %pyproject_wheel

  

  %install

- %py3_install

+ %pyproject_install

+ %pyproject_save_files %{pypi_name}

  PYTHONPATH=${PWD} sphinx-build-3 docs html

  rm -rf html/.{doctrees,buildinfo}

  

  %check

  %pytest -v tests

  

- %files -n python3-%{pypi_name}

- %license LICENSE.txt

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

  %doc README.rst

- %{python3_sitearch}/%{pypi_name}/

- %{python3_sitearch}/_%{pypi_name}.*.so

- %{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

+ %{python3_sitearch}/_%{pypi_name}%{python3_ext_suffix}

  

  %files -n python-%{pypi_name}-doc

  %doc html

  %license LICENSE.txt

  

  %changelog

+ * Wed Aug 30 2023 Carl George <carlwgeorge@fedoraproject.org> - 5.1.2-12

+ - Convert to pyproject macros

+ - Validated license as SPDX identifier

+ 

  * Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 5.1.2-11

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

  

This updates the spec file to pyproject macros in accordance with the Fedora package guidelines. I'd like to do this in preparation of building the package in EPEL 9 (see rhbz#2235918). I also validated the license identifier as SPDX, which I mention in the changelog to confirm for people scanning for non-SPDX compliant packages in the future.

Pull-Request has been merged by carlwgeorge

a month ago
Metadata