%global commit b603b8d2b2bf91b5b0823a8a619562de5fd756e7 %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global srcname pyembroidery %global forgeurl https://github.com/inkstitch/pyembroidery Version: 1.5.1^20240626.b603b8d %global tag %{version} %forgemeta Name: python-%{srcname} Release: 1%{?dist} Summary: Library for reading and writing a variety of embroidery formats License: MIT URL: %{forgeurl} # Use source from GitHub to get license files Source: %{forgeurl}/archive/%{commit}/%{srcname}-%{shortcommit}.tar.gz BuildRequires: python3-devel BuildArch: noarch %global _description %{expand: pyembroidery was coded from the ground up with all projects in mind. It includes a lot of higher level and middle level pattern composition abilities, and should accounts for any knowable error. If you know an error it does not account for, raise an issue. It should be highly robust with a simple api so as to be reasonable for any python embroidery project. It should be complex enough to go very easily from points to stitches, fine grained enough to let you control everything, and good enough that you shouldn't want to.} %description %_description %package -n python3-%{srcname} Summary: %{summary} %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{commit} %generate_buildrequires %pyproject_buildrequires %build # Fix incorrect line endings sed -i 's/\r$//' README.md %pyproject_wheel %install %pyproject_install %pyproject_save_files %{srcname} %check # Two tests fail # test_generic_write_gcode # test_jef_trims_commands #python3 -m unittest discover test %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %exclude %{python3_sitelib}/test %changelog * Sun Oct 20 2024 Benson Muite - 1.5.1^20240626.b603b8d-1 - Get Ink/Stitch version to enable building Ink/Stitch * Sun Oct 20 2024 Benson Muite - 1.5.1-1 - Upgrade to 1.5.1 * Fri Jul 19 2024 Fedora Release Engineering - 1.4.36-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 1.4.36-6 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 1.4.36-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 1.4.36-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jul 21 2023 Fedora Release Engineering - 1.4.36-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon Jun 26 2023 Python Maint - 1.4.36-2 - Rebuilt for Python 3.12 * Fri Jun 16 2023 Benson Muite - 1.4.36-1 - Initial packaging