Bug 2537510 - Review Request: fnlfmt - A formatter for Fennel code
Summary: Review Request: fnlfmt - A formatter for Fennel code
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Davide Cavalca
QA Contact: Fedora Extras Quality Assurance
URL: https://fennel-lang.org/
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-21 17:00 UTC by Michel Lind
Modified: 2026-09-22 10:16 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2026-09-22 10:16:35 UTC
Type: ---
Embargoed:
davide: fedora-review+


Attachments (Terms of Use)

Description Michel Lind 2026-09-21 17:00:42 UTC
Spec URL: https://salimma.fedorapeople.org/fnlfmt.spec
SRPM URL: https://salimma.fedorapeople.org/fnlfmt-0.3.2-1.fc46.src.rpm
Upstream URL: https://fennel-lang.org/

Description:
Format your Fennel!

The goal of `fnlfmt` is *not* to be The One Formatter that all Fennel
programmers use to format their code. We assume that most of the time,
Fennel programmers will use a text editor that already knows how to
indent code correctly, and that `fnlfmt` supplements existing editor
support in cases where for whatever reason the editor functionality
cannot be used. This means that `fnlfmt` should be treated as one
implementation of the standard format rather than being canonical itself.

By design there is no way to configure it. When it comes to
indentation, the choices it makes should be correct other than bugs or
when new features are added to Fennel itself. When it comes to where
the line breaks are inserted, it tries its best, but there are
certainly cases where a human could do better. Sometimes when it comes
to line breaks it will defer to the existing code where possible.

Fedora Account System Username: salimma

Comment 1 Davide Cavalca 2026-09-21 21:07:24 UTC
Taking this review

Comment 2 Davide Cavalca 2026-09-21 21:16:50 UTC
Package Review
==============

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



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

Generic:
[x]: Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "*No copyright* MIT License", "MIT
     License", "MIT License and/or X11 License". 22 files have unknown
     license. Detailed output of licensecheck in
     /tmp/2537510-fnlfmt/licensecheck.txt
[x]: Package contains no bundled libraries or specifies bundled libraries
     with Provides: bundled(<libname>) if unbundling is not possible.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: 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.
[x]: Requires correct, justified where necessary.
[x]: Spec file is legible and written in American English.
[-]: Package contains systemd file(s) if in need.
[x]: Package is not known to require an ExcludeArch tag.
[x]: 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 must own all directories that it creates.
[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]: Macros in Summary, %description expandable at SRPM build time.
[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 4404 bytes in 1 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

===== 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).
[x]: 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.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[x]: %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: fnlfmt-0.3.2-1.fc46.noarch.rpm
          fnlfmt-0.3.2-1.fc46.src.rpm
============================ rpmlint session starts ============================
rpmlint: 2.8.0
configuration:
    /usr/lib/python3.14/site-packages/rpmlint/configdefaults.toml
    /etc/xdg/rpmlint/fedora-legacy-licenses.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/tmp6c6en9sj')]
checks: 32, packages: 2

fnlfmt.noarch: E: spelling-error ('formatter', 'Summary(en_US) formatter -> formatted, for matter, for-matter')
fnlfmt.src: E: spelling-error ('formatter', 'Summary(en_US) formatter -> formatted, for matter, for-matter')
 2 packages and 0 specfiles checked; 2 errors, 0 warnings, 7 filtered, 2 badness; has taken 0.2 s 




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.10.0
configuration:
    /usr/lib/python3.15/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: 33, packages: 1

fnlfmt.noarch: E: spelling-error ('formatter', 'Summary(en_US) formatter -> formatted, for matter, for-matter')
 1 packages and 0 specfiles checked; 1 errors, 0 warnings, 3 filtered, 1 badness; has taken 0.1 s 



Source checksums
----------------
https://git.sr.ht/~technomancy/fnlfmt/archive/0.3.2.tar.gz#/fnlfmt-0.3.2.tar.gz :
  CHECKSUM(SHA256) this package     : 646c9033481a70c4430ced7397f6bc04b1d214fd35bee1579dd4c7901b81ac94
  CHECKSUM(SHA256) upstream package : 646c9033481a70c4430ced7397f6bc04b1d214fd35bee1579dd4c7901b81ac94


Requires
--------
fnlfmt (rpmlib, GLIBC filtered):
    /usr/bin/lua
    lua(abi)



Provides
--------
fnlfmt:
    fnlfmt
    lua-antifennel



Diff spec file in url and in SRPM
---------------------------------
--- /tmp/2537510-fnlfmt/srpm/fnlfmt.spec	2026-09-21 14:07:02.221191223 -0700
+++ /tmp/2537510-fnlfmt/srpm-unpacked/fnlfmt.spec	2026-09-20 17:00:00.000000000 -0700
@@ -1,2 +1,12 @@
+## START: Set by rpmautospec
+## (rpmautospec version 0.8.4)
+## 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
+
 Name:           fnlfmt
 Version:        0.3.2
@@ -13,8 +23,9 @@
 BuildRequires:  fennel
 BuildRequires:  make
+# BuildRequires:  pandoc
 
-Provides:       lua-fnlfmt = %{version}-%{release}
+Provides:       lua-antifennel = %{version}-%{release}
 Recommends:     fennel
-Supplements:    fennel
+Recommends:     lua-readline
 
 %description
@@ -71,3 +82,6 @@
 
 %changelog
-%autochangelog
+## START: Generated by rpmautospec
+* Mon Sep 21 2026 John Doe <packager> - 0.3.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 2537510
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, Generic
Disabled plugins: R, Ocaml, Java, PHP, C/C++, Perl, SugarActivity, fonts, Haskell, Python
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Comment 3 Davide Cavalca 2026-09-21 21:17:19 UTC
This is fine but please double check the rpmlint diff before importing. APPROVED

Comment 4 Fedora Admin user for bugzilla script actions 2026-09-22 09:37:09 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/fnlfmt
Monitoring:
Wasn't able to create project in Anitya. You can create it manually on: `https://release-monitoring.org`

Comment 5 Fedora Update System 2026-09-22 10:11:42 UTC
FEDORA-2026-1b91e23b82 (fnlfmt-0.3.2-1.fc46) has been submitted as an update to Fedora 46.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-1b91e23b82

Comment 6 Fedora Update System 2026-09-22 10:16:35 UTC
FEDORA-2026-1b91e23b82 (fnlfmt-0.3.2-1.fc46) has been pushed to the Fedora 46 stable repository.
If problem still persists, please make note of it in this bug report.


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