Bug 2009520 - Review Request: golang-github-charmbracelet-glamour - Stylesheet-based markdown rendering for your CLI apps
Summary: Review Request: golang-github-charmbracelet-glamour - Stylesheet-based markdo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Alejandro Sáez Morollón
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 2009487
Blocks: 1803302 2010367
TreeView+ depends on / blocked
 
Reported: 2021-09-30 20:33 UTC by Mikel Olasagasti Uranga
Modified: 2021-12-17 18:22 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-12-17 18:22:39 UTC
Type: ---
Embargoed:
asm: fedora-review+


Attachments (Terms of Use)

Description Mikel Olasagasti Uranga 2021-09-30 20:33:39 UTC
Spec URL: https://mikel.olasagasti.info/tmp/fedora/golang-github-charmbracelet-glamour.spec
SRPM URL: https://mikel.olasagasti.info/tmp/fedora/golang-github-charmbracelet-glamour-0.3.0-1.fc34.src.rpm
Description: Stylesheet-based markdown rendering for your CLI apps
Fedora Account System Username: mikelo2

Comment 1 Maxwell G 2021-12-05 04:14:21 UTC
> #disable temporary check, as doesn't work in copr, but does with mock

I'm not sure why that would be the case. Copr also uses Mock to build packages. Are you sure that you're using the same version of Fedora locally as you are on Copr?

Comment 2 Mikel Olasagasti Uranga 2021-12-06 20:24:34 UTC
Spec URL: https://mikel.olasagasti.info/tmp/fedora/golang-github-charmbracelet-glamour.spec
SRPM URL: https://mikel.olasagasti.info/tmp/fedora/golang-github-charmbracelet-glamour-0.3.0-1.fc35.src.rpm

Enabled %check again. Something strange happened back in September, but is working fine now.

Comment 3 Maxwell G 2021-12-10 03:07:53 UTC
(In reply to Mikel Olasagasti Uranga from comment #2)
> Spec URL:
> https://mikel.olasagasti.info/tmp/fedora/golang-github-charmbracelet-glamour.
> spec
> SRPM URL:
> https://mikel.olasagasti.info/tmp/fedora/golang-github-charmbracelet-glamour-
> 0.3.0-1.fc35.src.rpm
> 
> Enabled %check again. Something strange happened back in September, but is
> working fine now.

It looks like you didn't provide an updated specfile link.

Comment 4 Maxwell G 2021-12-10 03:13:52 UTC
> %patch0001 -p1

I would change this to `%autopatch -p1`, but either way should be fine.

Comment 5 Mikel Olasagasti Uranga 2021-12-10 10:09:03 UTC
Spec URL: https://mikel.olasagasti.info/tmp/fedora/golang-github-charmbracelet-glamour.spec
SRPM URL: https://mikel.olasagasti.info/tmp/fedora/golang-github-charmbracelet-glamour-0.3.0-1.fc35.src.rpm

- Updated spec with checks enabled, as tested in copr

Comment 6 Alejandro Sáez Morollón 2021-12-16 15:24:33 UTC
LGTM, although rpmlint complains about the word stylesheet



Package Review
==============

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


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

Generic:
[X]: Package successfully compiles and builds into binary rpms on at least
     one supported primary architecture.
     Note: Using prebuilt packages
[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: There is no build directory. Running licensecheck on vanilla
     upstream sources. Licenses found: "Unknown or generated", "MIT
     License". 124 files have unknown license, because they are assets and tests.
[X]: %build honors applicable compiler flags or justifies otherwise.
[X]: Package contains no bundled libraries without FPC exception.
[X]: Changelog in prescribed format.
[X]: Sources contain only permissible code or content.
[X]: Package contains desktop file if it is a GUI application.
[X]: 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.
[X]: 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.
[X]: Package contains systemd file(s) if in need.
[X]: Package is not known to require an ExcludeArch tag.
[X]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 10240 bytes in 1 files.
[X]: Package complies to the Packaging Guidelines
[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]: 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]: 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]: Packages must not store files under /srv, /opt or /usr/local

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

Generic:
[X]: Builds in mock.
[X]: Includes license text(s) as a separate file.
[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.
[X]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[X]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[X]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[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]: 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:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).


Rpmlint
-------
Checking: golang-github-charmbracelet-glamour-devel-0.3.0-1.fc36.noarch.rpm
          golang-github-charmbracelet-glamour-0.3.0-1.fc36.src.rpm
golang-github-charmbracelet-glamour-devel.noarch: W: spelling-error Summary(en_US) Stylesheet -> Style sheet, Style-sheet, Stylishness
golang-github-charmbracelet-glamour-devel.noarch: W: spelling-error %description -l en_US Stylesheet -> Style sheet, Style-sheet, Stylishness
golang-github-charmbracelet-glamour-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/charmbracelet/glamour/.goipath
golang-github-charmbracelet-glamour.src: W: spelling-error Summary(en_US) Stylesheet -> Style sheet, Style-sheet, Stylishness
golang-github-charmbracelet-glamour.src: W: spelling-error %description -l en_US Stylesheet -> Style sheet, Style-sheet, Stylishness
golang-github-charmbracelet-glamour.src:65: W: macro-in-%changelog %autochangelog
golang-github-charmbracelet-glamour.src: W: no-%build-section
2 packages and 0 specfiles checked; 0 errors, 7 warnings.




Rpmlint (installed packages)
----------------------------
Cannot parse rpmlint output:


Source checksums
----------------
https://github.com/charmbracelet/glamour/archive/v0.3.0/glamour-0.3.0.tar.gz :
  CHECKSUM(SHA256) this package     : 159a9fdbc95367ee014ef6eef76e2046f97eee78849234339f61f43a39af670c
  CHECKSUM(SHA256) upstream package : 159a9fdbc95367ee014ef6eef76e2046f97eee78849234339f61f43a39af670c


Requires
--------
golang-github-charmbracelet-glamour-devel (rpmlib, GLIBC filtered):
    go-filesystem
    golang(github.com/alecthomas/chroma)
    golang(github.com/alecthomas/chroma/quick)
    golang(github.com/alecthomas/chroma/styles)
    golang(github.com/microcosm-cc/bluemonday)
    golang(github.com/muesli/reflow/indent)
    golang(github.com/muesli/reflow/padding)
    golang(github.com/muesli/reflow/wordwrap)
    golang(github.com/muesli/termenv)
    golang(github.com/olekukonko/tablewriter)
    golang(github.com/yuin/goldmark)
    golang(github.com/yuin/goldmark-emoji)
    golang(github.com/yuin/goldmark-emoji/ast)
    golang(github.com/yuin/goldmark/ast)
    golang(github.com/yuin/goldmark/extension)
    golang(github.com/yuin/goldmark/extension/ast)
    golang(github.com/yuin/goldmark/parser)
    golang(github.com/yuin/goldmark/renderer)
    golang(github.com/yuin/goldmark/util)



Provides
--------
golang-github-charmbracelet-glamour-devel:
    golang(github.com/charmbracelet/glamour)
    golang(github.com/charmbracelet/glamour/ansi)
    golang-github-charmbracelet-glamour-devel
    golang-ipath(github.com/charmbracelet/glamour)

Comment 7 Gwyn Ciesla 2021-12-17 16:32:08 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/golang-github-charmbracelet-glamour

Comment 8 Fedora Update System 2021-12-17 16:45:13 UTC
FEDORA-2021-20bab3362a has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-20bab3362a

Comment 9 Fedora Update System 2021-12-17 18:22:39 UTC
FEDORA-2021-20bab3362a has been pushed to the Fedora 36 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.