From 1a1e56b0fd409fbf846e2875dab84f8dd27e7a90 Mon Sep 17 00:00:00 2001 From: topazus Date: Jan 12 2024 12:33:24 +0000 Subject: update to 2.4.0; switch to use pyproject related macros --- diff --git a/.gitignore b/.gitignore index 6d218f1..9cf7c0d 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ /python-freetype-2.2.0.tar.gz /freetype-py-2.2.0.zip /freetype-py-2.3.0.zip +/freetype-py-2.4.0.zip diff --git a/python-freetype.spec b/python-freetype.spec index 1b7f358..b2214cd 100644 --- a/python-freetype.spec +++ b/python-freetype.spec @@ -1,22 +1,20 @@ %global pypi_name freetype-py Name: python-freetype -Version: 2.3.0 +Version: 2.4.0 Release: %autorelease Summary: Python binding for the freetype library -License: BSD +License: BSD-3-Clause URL: https://github.com/rougier/freetype-py Source0: %{pypi_source %{pypi_name} %{version} zip} BuildArch: noarch BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-setuptools_scm # tests use tox BuildRequires: python3dist(tox-current-env) BuildRequires: python3dist(pytest) -BuildRequires: python3dist(wheel) + BuildRequires: freetype %description @@ -38,20 +36,25 @@ Summary: %{summary} rm -r freetype_py.egg-info +sed -i 's/"setuptools_scm\[toml\]>=3.4",//' pyproject.toml +sed -i 's/"certifi",//' pyproject.toml +sed -i 's/"cmake"//' pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires + %build -%py3_build +%pyproject_wheel %install -%py3_install +%pyproject_install +%pyproject_save_files freetype %check %tox -%files -n python3-freetype +%files -n python3-freetype -f %{pyproject_files} %doc examples README.rst -%license LICENSE.txt -%{python3_sitelib}/freetype/ -%{python3_sitelib}/freetype_py-%{version}-py%{python3_version}.egg-info/ %changelog %autochangelog diff --git a/sources b/sources index 961cbfb..38a54ea 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (freetype-py-2.3.0.zip) = f00754415e6b10e4cc62f96b6c52b437041ad1aaedae206aa8fedbe583243f38703b24e53b791e9afdcea66d67d108b492d55f4c7fdd31cec9542a8398191bb7 +SHA512 (freetype-py-2.4.0.zip) = f9ddde5c9a96f75df96b13f7d021916b748c625c876b4f752fe28d93c1a5ceffea514e120f3f9a98955b89bb01d9892b1c38a3cee79737c0fb61a857c055b012