Bug 2431662 - Review Request: python-shxparser - Pure Python Parser for SHX Hershey font files
Summary: Review Request: python-shxparser - Pure Python Parser for SHX Hershey font files
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Benson Muite
QA Contact: Fedora Extras Quality Assurance
URL: https://github.com/tatarize/shxparser
Whiteboard:
Depends On:
Blocks: 1684603
TreeView+ depends on / blocked
 
Reported: 2026-01-21 15:22 UTC by Jaroslav Škarvada
Modified: 2026-01-27 00:18 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:
benson_muite: fedora-review?


Attachments (Terms of Use)
The .spec file difference from Copr build 10042200 to 10065216 (1.14 KB, patch)
2026-01-27 00:18 UTC, Fedora Review Service
no flags Details | Diff

Description Jaroslav Škarvada 2026-01-21 15:22:39 UTC
Spec URL: https://jskarvad.fedorapeople.org/python-shxparser/python-shxparser.spec
SRPM URL: https://jskarvad.fedorapeople.org/python-shxparser/python-shxparser-0.0.2-1.fc44.src.rpm
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.
Fedora Account System Username: jskarvad

Comment 1 Fedora Review Service 2026-01-21 15:26:16 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10042200
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2431662-python-shxparser/fedora-rawhide-x86_64/10042200-python-shxparser/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.

Comment 2 Benson Muite 2026-01-23 05:05:41 UTC
Package Review
==============

Legend:
[x] = Pass, [!] = Fail, [-] = Not applicable, [?] = Not evaluated
[ ] = Manual review needed



===== MUST items =====

Generic:
[ ]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[ ]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "MIT License", "Unknown or generated", "*No copyright* MIT
     License". 575 files have unknown license. Detailed output of
     licensecheck in /home/fedora-packaging/reviews/python-
     shxparser/2431662-python-shxparser/licensecheck.txt
[ ]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/lib/python3.14/site-
     packages, /usr/lib/python3.14
[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[x]: Changelog in prescribed format.
[ ]: Sources contain only permissible code or content.
[x]: Macros in Summary, %description expandable at SRPM build time.
     Note: Macros in: python3-shxparser (description)
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package uses nothing in %doc for runtime.
[x]: Package consistently uses macros (instead of hard-coded directory
     names).
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
[x]: Package obeys FHS, except libexecdir and /usr/target.
[ ]: If the package is a rename of another package, proper Obsoletes and
     Provides are present.
[ ]: Requires correct, justified where necessary.
[ ]: Spec file is legible and written in American English.
[ ]: Package contains systemd file(s) if in need.
[ ]: Package is not known to require an ExcludeArch tag.
[ ]: Package complies to the Packaging Guidelines
[x]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
[x]: Package installs properly.
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: If (and only if) the source package includes the text of the
     license(s) in its own file, then that file, containing the text of the
     license(s) for the package is included in %license.
[x]: The License field must be a valid SPDX expression.
[x]: Package requires other packages for directories it uses.
[x]: Package does not own files or directories owned by other packages.
[x]: Package uses either %{buildroot} or $RPM_BUILD_ROOT
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Dist tag is present.
[x]: Package does not contain duplicates in %files.
[x]: Permissions on files are set properly.
[x]: Package must not depend on deprecated() packages.
[x]: Package use %makeinstall only when make install DESTDIR=... doesn't
     work.
[x]: Package is named using only allowed ASCII characters.
[x]: Package does not use a name that already exists.
[x]: Package is not relocatable.
[x]: Sources used to build the package match the upstream source, as
     provided in the spec URL.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[x]: File names are valid UTF-8.
[x]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 2648 bytes in 1 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

Python:
[-]: Python eggs must not download any dependencies during the build
     process.
[-]: A package which is used by another package via an egg interface should
     provide egg info.
[ ]: Package meets the Packaging Guidelines::Python
[x]: Package contains BR: python2-devel or python3-devel
[x]: Packages MUST NOT have dependencies (either build-time or runtime) on
     packages named with the unversioned python- prefix unless no properly
     versioned package exists. Dependencies on Python packages instead MUST
     use names beginning with python2- or python3- as appropriate.
[x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files
[x]: Binary eggs must be removed in %prep

===== SHOULD items =====

Generic:
[ ]: If the source package does not include license text(s) as a separate
     file from upstream, the packager SHOULD query upstream to include it.
[x]: Final provides and requires are sane (see attachments).
[ ]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[ ]: Package should compile and build into binary rpms on all supported
     architectures.
[ ]: %check is present and all tests pass.
[x]: Packages should try to preserve timestamps of original installed
     files.
[x]: Reviewer should test that the package builds in mock.
[x]: Buildroot is not present
[x]: Package has no %clean section with rm -rf %{buildroot} (or
     $RPM_BUILD_ROOT)
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

===== EXTRA items =====

Generic:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Spec file as given by url is not the same as in SRPM (see
     attached diff).
     See: (this test has no URL)
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).


Rpmlint
-------
Checking: python3-shxparser-0.0.2-1.fc44.noarch.rpm
          python-shxparser-0.0.2-1.fc44.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
rpmlintrc: [PosixPath('/tmp/tmpipypj1u6')]
checks: 32, packages: 2

python3-shxparser.noarch: W: unexpanded-macro %description -l C %{_description}
python-shxparser.spec: W: no-%check-section
python-shxparser.spec:69: W: mixed-use-of-spaces-and-tabs (spaces: line 69, tab: line 16)
python3-shxparser.noarch: W: description-shorter-than-summary
 2 packages and 0 specfiles checked; 0 errors, 4 warnings, 7 filtered, 0 badness; has taken 0.7 s 




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-spdx-licenses.toml
    /etc/xdg/rpmlint/fedora.toml
    /etc/xdg/rpmlint/scoring.toml
    /etc/xdg/rpmlint/users-groups.toml
    /etc/xdg/rpmlint/warn-on-functions.toml
checks: 32, packages: 1

python3-shxparser.noarch: W: unexpanded-macro %description -l C %{_description}
python3-shxparser.noarch: W: description-shorter-than-summary
 1 packages and 0 specfiles checked; 0 errors, 2 warnings, 3 filtered, 0 badness; has taken 0.1 s 



Source checksums
----------------
https://github.com/tatarize/shxparser/archive/4f18021e88c87f7c67473ff2a5792d7f3ec13459/shxparser-0.0.2.tar.gz :
  CHECKSUM(SHA256) this package     : b4bbf490062a5e5343f2798781f74c04e5ba065913af5f60fa32942aa59878d0
  CHECKSUM(SHA256) upstream package : b4bbf490062a5e5343f2798781f74c04e5ba065913af5f60fa32942aa59878d0


Requires
--------
python3-shxparser (rpmlib, GLIBC filtered):
    python(abi)



Provides
--------
python3-shxparser:
    python-shxparser
    python3-shxparser
    python3.14-shxparser
    python3.14dist(shxparser)
    python3dist(shxparser)



Diff spec file in url and in SRPM
---------------------------------
--- /home/benson/Projects/fedora-packaging/reviews/python-shxparser/2431662-python-shxparser/srpm/python-shxparser.spec	2026-01-21 20:23:50.676762133 +0300
+++ /home/benson/Projects/fedora-packaging/reviews/python-shxparser/2431662-python-shxparser/srpm-unpacked/python-shxparser.spec	2026-01-21 03:00:00.000000000 +0300
@@ -1,2 +1,12 @@
+## 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
@@ -67,3 +77,6 @@
 
 %changelog
-%autochangelog
+## START: Generated by rpmautospec
+* Wed Jan 21 2026 Jaroslav Škarvada <jskarvad> - 0.0.2-1
+- Uncommitted changes
+## END: Generated by rpmautospec


Generated by fedora-review 0.11.0 (05c5b26) last change: 2025-11-29
Command line :/usr/bin/fedora-review -b 2431662
Buildroot used: fedora-rawhide-x86_64
Active plugins: Python, Shell-api, Generic
Disabled plugins: fonts, Perl, R, Java, PHP, Ocaml, SugarActivity, Haskell, C/C++
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH


Comments:
a) Mostly seems ok. Do you know what license the shx test font files are under?
See for example:
https://github.com/mozman/ezdxf/tree/master/fonts
Raised an issue:
https://github.com/tatarize/shxparser/issues/6

You may need to remove the fonts and package without the tests, or find some
openly licensed shx fonts and use these for the tests instead.

Comment 4 Jaroslav Škarvada 2026-01-26 13:30:31 UTC
BTW, thanks for the review :)

Comment 5 Fedora Review Service 2026-01-27 00:18:10 UTC
Created attachment 2123870 [details]
The .spec file difference from Copr build 10042200 to 10065216

Comment 6 Fedora Review Service 2026-01-27 00:18:13 UTC
Copr build:
https://copr.fedorainfracloud.org/coprs/build/10065216
(succeeded)

Review template:
https://download.copr.fedorainfracloud.org/results/@fedora-review/fedora-review-2431662-python-shxparser/fedora-rawhide-x86_64/10065216-python-shxparser/fedora-review/review.txt

Please take a look if any issues were found.


---
This comment was created by the fedora-review-service
https://github.com/FrostyX/fedora-review-service

If you want to trigger a new Copr build, add a comment containing new
Spec and SRPM URLs or [fedora-review-service-build] string.


Note You need to log in before you can comment on or make changes to this bug.