https://bugzilla.redhat.com/show_bug.cgi?id=2567264
--- Comment #1 from Miro HronĨok <[email protected]> --- For educational purposes, here is the output of https://github.com/hroncok/llm-review verbatim, I'll add my response in another comment. ## Package Review: python-whoisdomain 2.20260806.3-1 ### Spec file ```spec %global pypi_name whoisdomain %global pypi_description %{expand: Python package for retrieving WHOIS information of domains (ONLY domains). This package does not support querying IP CIDR ranges or AS information.} Name: python-%{pypi_name} Summary: Python module for retrieving WHOIS information of domains License: MIT Version: 2.20260806.3 Release: 1%{?dist} URL: https://github.com/mboot-github/WhoisDomain/ Source0: %{URL}archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel %description %pypi_description %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} %pypi_description %prep %autosetup -p1 -n WhoisDomain-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{pypi_name} # Not interested in the CLI tool rm %{buildroot}%{_bindir}/%{pypi_name} %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %doc Future.txt Historical.txt README.md %changelog * Mon Aug 17 2026 Artur Frenszek-Iwicki <[email protected]> - 2.20260806.3-1 - Initial packaging ``` ### Evidence #### RPM metadata - python3-whoisdomain **Provides:** ``` python-whoisdomain = 2.20260806.3-1.fc46 python3-whoisdomain = 2.20260806.3-1.fc46 python3.15-whoisdomain = 2.20260806.3-1.fc46 python3.15dist(whoisdomain) = 2.20260806.3 python3dist(whoisdomain) = 2.20260806.3 ``` **Requires:** ``` /usr/bin/python3 python(abi) = 3.15 python3.15dist(tld) >= 0.13.2 python3.15dist(whodap) >= 0.1.16 rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsZstd) <= 5.4.18-1 ``` **Files (sample):** ``` /usr/lib/python3.15/site-packages/whoisdomain /usr/lib/python3.15/site-packages/whoisdomain-2.20260806.3.dist-info /usr/lib/python3.15/site-packages/whoisdomain/__init__.py /usr/lib/python3.15/site-packages/whoisdomain/__pycache__/__init__.cpython-315.pyc /usr/lib/python3.15/site-packages/whoisdomain/__pycache__/__init__.cpython-315.opt-1.pyc ... (105 files total including bytecode cache) /usr/share/doc/python3-whoisdomain/README.md /usr/share/licenses/python3-whoisdomain/LICENSE ``` **License field:** ``` MIT ``` #### rpmlint output Invocation: `rpmlint artifacts/*.spec artifacts/*.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 checks: 32, packages: 2 python-whoisdomain.spec: W: no-%check-section 2 packages and 0 specfiles checked; 0 errors, 1 warnings, 15 filtered, 0 badness; has taken 0.4 s ``` #### File conflict check Checked against Rawhide repository (8,918,046 files). No file conflicts found with existing packages. #### Build log verification Checked `build.noarch.log` (the real build log for noarch packages). Build completed successfully. The log shows: - Package files installed to `/usr/lib/python3.15/site-packages/whoisdomain/` - Bytecode compilation completed (36 files processed) - RPM generation successful - No %check section executed (no tests ran during build) Tail of build log shows successful RPM creation: ``` Processing files: python3-whoisdomain-2.20260806.3-1.fc46.noarch ... Provides: python-whoisdomain = 2.20260806.3-1.fc46 python3-whoisdomain = 2.20260806.3-1.fc46 python3.15-whoisdomain = 2.20260806.3-1.fc46 python3.15dist(whoisdomain) = 2.20260806.3 python3dist(whoisdomain) = 2.20260806.3 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 python(abi) = 3.15 python3.15dist(tld) >= 0.13.2 python3.15dist(whodap) >= 0.1.16 ... Wrote: /builddir/build/SRPMS/python-whoisdomain-2.20260806.3-1.fc46.src.rpm Wrote: /builddir/build/RPMS/python3-whoisdomain-2.20260806.3-1.fc46.noarch.rpm Child return code was: 0 ``` #### License findings **licensecheck output (sample):** ``` src/WhoisDomain-2.20260806.3//LICENSE: MIT src/WhoisDomain-2.20260806.3//pyproject.toml: *No copyright* MIT ``` **askalono output:** ``` src/WhoisDomain-2.20260806.3/LICENSE License: MIT (original text) Score: 1.000 ``` The LICENSE file contains the standard MIT License text with perfect match (score 1.000). Copyright holder is "Maarten Boot" (2023). **Fedora license status lookup:** Checked `license-data/data/MIT.toml`: ``` status = [ "allowed" ] ``` The MIT license is allowed for all uses in Fedora per [Allowed Licenses](https://docs.fedoraproject.org/en-US/legal/allowed-licenses/). **Dependencies from pyproject.toml:** ``` dependencies = [ "whodap>=0.1.16", "tld>=0.13.2", ] ``` Both dependencies are automatically detected and included in the RPM requires. **Bundled/vendored code check:** No minified JavaScript found. No bundled third-party libraries. This is a pure Python package with all original source code under MIT license. ### PASS 1. **Naming**: Package is correctly named `python-whoisdomain` for the SRPM and `python3-whoisdomain` for the binary RPM, following the [Python Packaging Guidelines](https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_naming) naming requirements. 2. **Spec file name**: The spec file is named `python-whoisdomain.spec`, matching the base package name per [Packaging Guidelines](https://docs.fedoraproject.org/en-US/packaging-guidelines/#_spec_file_naming). 3. **License**: The package is licensed under MIT, which is listed as "allowed" in the [Fedora License Data](https://gitlab.com/fedora/legal/fedora-license-data/-/blob/main/data/MIT.toml) repository. See license findings in Evidence section. 4. **License field accuracy**: The `License:` field correctly states "MIT", matching the actual license in the LICENSE file. Per [License Field guidelines](https://docs.fedoraproject.org/en-US/legal/license-field/), this is the appropriate SPDX identifier. 5. **License file inclusion**: The LICENSE file from the source is properly included and marked with `%license` in the spec file, as shown in the spec and RPM file list. 6. **BuildRequires**: Correctly includes `BuildRequires: python3-devel` as required by the [Python Packaging Guidelines](https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_build_time_dependency_on_python3_devel). Build dependencies are automatically generated via `%pyproject_buildrequires`. 7. **Successful build**: The package successfully builds on noarch architecture, as evidenced by the build log showing successful RPM creation. 8. **No file ownership conflicts**: No files owned by other packages are claimed by this package, per file conflict check against Rawhide repository. 9. **Proper provides/requires**: The RPM provides the correct `python3dist(whoisdomain)` and `python3.15dist(whoisdomain)` automatic provides per [Machine-readable provides](https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_machine_readable_provides). Dependencies on `python3.15dist(tld)` and `python3.15dist(whodap)` are automatically generated. 10. **Bytecode compilation**: Both source `.py` files and bytecode cache `.pyc` files (including optimized versions) are present in `/usr/lib/python3.15/site-packages/whoisdomain/__pycache__/` per [Python byte-compiling requirements](https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_source_files_and_bytecode_cache). 11. **Dist-info metadata**: Package includes proper `whoisdomain-2.20260806.3.dist-info/` directory with METADATA, WHEEL, and other required files per [Dist-info metadata requirements](https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_dist_info_metadata). 12. **Documentation**: README, Future.txt, and Historical.txt files are properly included as `%doc`. 13. **No bundled libraries**: No evidence of bundled third-party code or minified JavaScript. All code is original Python source under MIT license. 14. **Correct installation location**: Files are installed to the correct location `/usr/lib/python3.15/site-packages/whoisdomain/` per Python packaging standards. 15. **BuildArch**: Correctly set to `noarch` since this is a pure Python package with no compiled extensions. 16. **CLI tool handling**: The spec file appropriately removes the CLI tool (`whoisdomain` command) after installation with a comment explaining the decision, which is a valid packaging choice. ### ISSUES 1. **Should-fix**: No `%check` section - The spec file does not include a `%check` section to run tests during the build. While the package builds successfully, the upstream source includes a `tests/` directory with test files (testCache.py, testFR.py, testWithRedacted.py, etc.). Per [Python Packaging Guidelines on testing](https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_running_tests), if a test suite exists upstream, it SHOULD be run in the `%check` section. At minimum, a basic smoke test using `%pyproject_check_import whoisdomain` should be added to verify the module is importable. The rpmlint warning "no-%check-section" flags this issue. ### VERDICT needs fixes --- *model: claude-sonnet-4-5-20250929, cost: $1.1689, duration: 252.3s* -- You are receiving this mail because: You are always notified about changes to this product and component You are on the CC list for the bug. https://bugzilla.redhat.com/show_bug.cgi?id=2567264 Report this comment as SPAM: https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202567264%23c1 -- _______________________________________________ package-review mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected] Do not reply to spam, report it: https://forge.fedoraproject.org/infra/tickets/issues/new
