## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %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 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 # drop tests, no need to package them, also not processed by wheel rm -rf %{buildroot}%{python3_sitelib}/test %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 ## START: Generated by rpmautospec * Wed Jan 21 2026 Jaroslav Škarvada - 0.0.2-1 - Uncommitted changes ## END: Generated by rpmautospec