%global srcname shxparser # Hardcoded version # https://github.com/tatarize/shxparser/issues/5 %global githash 4f18021e88c87f7c67473ff2a5792d7f3ec13459 Name: python-%{srcname} Version: 0.0.2 Release: %autorelease Summary: Pure Python Parser for SHX Hershey font files License: MIT URL: https://github.com/tatarize/shxparser # Hardcoded version # https://github.com/tatarize/shxparser/issues/5 #Source: %%{url}/archive/%%{version}/%%{srcname}-%%{version}.tar.gz #Source: %%{url}/archive/%%{githash}/%%{srcname}-0.0.2.tar.gz # Repacked without fonts until licensing is clear: # https://github.com/tatarize/shxparser/issues/6 Source: %{githash}/%{srcname}-0.0.2.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pytest # For tests, it will be enabled once # https://bugzilla.redhat.com/show_bug.cgi?id=2431608 gets in #BuildRequires: python3-svgelements %description Pure Python Parser for SHX Hershey font files. SHX files are an AutoCad format which can encode single line fonts. This format is used for many CNC and laser operations. %package -n python3-%{srcname} Summary: %{summary} %{?python_provide:%python_provide python3-%{srcname}} %description -n python3-%{srcname} %{_description} %prep %autosetup -p1 -n %{srcname}-%{githash} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l shxparser # requirement: https://bugzilla.redhat.com/show_bug.cgi?id=2431608 #%%check #%%pytest %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md %changelog %autochangelog