Bug 2241602 - Review Request: golang-github-sabhiram-gitignore - Gitignore parser for Go
Summary: Review Request: golang-github-sabhiram-gitignore - Gitignore parser for Go
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Navid Yaghoobi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-10-01 07:26 UTC by Robert-André Mauchin 🐧
Modified: 2024-11-09 08:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-11-09 08:35:22 UTC
Type: ---
Embargoed:
n.yaghoobi.s: fedora-review+


Attachments (Terms of Use)

Comment 2 Navid Yaghoobi 2023-10-15 06:09:15 UTC
Hi

Attaching the raw review result:

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

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


Issues:
=======
- Package does not use a name that already exists.
  Note: A package with this name already exists. Please check
  https://src.fedoraproject.org/rpms/golang-github-sabhiram-gitignore
  See: https://docs.fedoraproject.org/en-US/packaging-
  guidelines/Naming/#_conflicting_package_names


===== 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.
[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: "MIT License", "Unknown or
     generated". 8 files have unknown license.

[ ]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by:
     /usr/share/gocode/src/github.com(golang-github-containerd-continuity-
     devel, golang-github-schollz-progressbar-3-devel, golang-github-
     ....
     ....
     ....
     ....
     golang-github-hokaccha-prettyjson-devel, golang-
     github-aalpar-deheap-devel, golang-github-containernetworking-plugins-
     devel, golang-github-oj-gobuster-3-devel)
[ ]: %build honors applicable compiler flags or justifies otherwise.
[ ]: Package contains no bundled libraries without FPC exception.
[ ]: Changelog in prescribed format.
[ ]: 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
[ ]: Package uses nothing in %doc for runtime.
[ ]: Package consistently uses macros (instead of hard-coded directory
     names).
[ ]: Package is named according to the Package Naming Guidelines.
[ ]: Package does not generate any conflict.
[ ]: 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 must own all directories that it creates.
[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 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 567 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.
[ ]: Final provides and requires are sane (see attachments).
[ ]: Package functions as described.
[ ]: Latest version is packaged.
[ ]: 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.
[ ]: %check is present and all tests pass.
[ ]: 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]: Package should compile and build into binary rpms on all supported
     architectures.
[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-sabhiram-gitignore-devel-1.0.2-1.20231015git525f6e1.fc40.noarch.rpm
          golang-github-sabhiram-gitignore-1.0.2-1.20231015git525f6e1.fc40.src.rpm
============================================================= rpmlint session starts =============================================================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/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/tmpl8m_f9gz')]
checks: 31, packages: 2

golang-github-sabhiram-gitignore.spec: W: no-%build-section
golang-github-sabhiram-gitignore-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/sabhiram/go-gitignore/.goipath
golang-github-sabhiram-gitignore-devel.noarch: W: files-duplicate /usr/share/gocode/src/github.com/sabhiram/go-gitignore/README.md /usr/share/doc/golang-github-sabhiram-gitignore-devel/README.md
============================== 2 packages and 0 specfiles checked; 0 errors, 3 warnings, 0 badness; has taken 0.8 s ==============================




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.12/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
checks: 31, packages: 1

golang-github-sabhiram-gitignore-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/sabhiram/go-gitignore/.goipath
golang-github-sabhiram-gitignore-devel.noarch: W: files-duplicate /usr/share/gocode/src/github.com/sabhiram/go-gitignore/README.md /usr/share/doc/golang-github-sabhiram-gitignore-devel/README.md
 1 packages and 0 specfiles checked; 0 errors, 2 warnings, 0 badness; has taken 0.1 s 



Source checksums
----------------
https://github.com/sabhiram/go-gitignore/archive/525f6e181f062064d83887ed2530e3b1ba0bc95a/go-gitignore-525f6e181f062064d83887ed2530e3b1ba0bc95a.tar.gz :
  CHECKSUM(SHA256) this package     : 01457f188bec07a44dcbc5ec99a6d16e1972e903e28a3c3f709d03dc36193712
  CHECKSUM(SHA256) upstream package : 01457f188bec07a44dcbc5ec99a6d16e1972e903e28a3c3f709d03dc36193712


Requires
--------
golang-github-sabhiram-gitignore-devel (rpmlib, GLIBC filtered):
    go-filesystem



Provides
--------
golang-github-sabhiram-gitignore-devel:
    golang(github.com/sabhiram/go-gitignore)
    golang(github.com/sabhiram/go-gitignore)(commit=525f6e181f062064d83887ed2530e3b1ba0bc95a)
    golang-github-sabhiram-gitignore-devel
    golang-ipath(github.com/sabhiram/go-gitignore)
    golang-ipath(github.com/sabhiram/go-gitignore)(commit=525f6e181f062064d83887ed2530e3b1ba0bc95a)



Generated by fedora-review 0.10.0 (e79b66b) last change: 2023-07-24
Command line :/usr/bin/fedora-review -rn /home/navid/rpmbuild/SRPMS/golang-github-sabhiram-gitignore-1.0.2-1.20231015git525f6e1.fc38.src.rpm
Buildroot used: fedora-rawhide-x86_64
Active plugins: Generic, Shell-api
Disabled plugins: Ocaml, C/C++, fonts, Python, R, Haskell, SugarActivity, PHP, Java, Perl
Disabled flags: EXARCH, EPEL6, EPEL7, DISTTAG, BATCH

Comment 3 Navid Yaghoobi 2023-10-15 07:14:51 UTC
===== 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: There is no build directory. Running licensecheck on vanilla
     upstream sources. Licenses found: "MIT License", "Unknown or
     generated". 8 files have unknown license.

[X]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by:
     /usr/share/gocode/src/github.com(golang-github-containerd-continuity-
     devel, golang-github-schollz-progressbar-3-devel, golang-github-
     ....
     ....
     ....
     ....
     golang-github-hokaccha-prettyjson-devel, golang-
     github-aalpar-deheap-devel, golang-github-containernetworking-plugins-
     devel, golang-github-oj-gobuster-3-devel)
[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.
[-]: 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.
[-]: 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 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 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 567 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]: %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]: Package should compile and build into binary rpms on all supported
     architectures.
[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-sabhiram-gitignore-devel-1.0.2-1.20231015git525f6e1.fc40.noarch.rpm
          golang-github-sabhiram-gitignore-1.0.2-1.20231015git525f6e1.fc40.src.rpm
============================================================= rpmlint session starts =============================================================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.11/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/tmpl8m_f9gz')]
checks: 31, packages: 2

golang-github-sabhiram-gitignore.spec: W: no-%build-section
golang-github-sabhiram-gitignore-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/sabhiram/go-gitignore/.goipath
golang-github-sabhiram-gitignore-devel.noarch: W: files-duplicate /usr/share/gocode/src/github.com/sabhiram/go-gitignore/README.md /usr/share/doc/golang-github-sabhiram-gitignore-devel/README.md
============================== 2 packages and 0 specfiles checked; 0 errors, 3 warnings, 0 badness; has taken 0.8 s ==============================




Rpmlint (installed packages)
----------------------------
============================ rpmlint session starts ============================
rpmlint: 2.4.0
configuration:
    /usr/lib/python3.12/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
checks: 31, packages: 1

golang-github-sabhiram-gitignore-devel.noarch: W: hidden-file-or-dir /usr/share/gocode/src/github.com/sabhiram/go-gitignore/.goipath
golang-github-sabhiram-gitignore-devel.noarch: W: files-duplicate /usr/share/gocode/src/github.com/sabhiram/go-gitignore/README.md /usr/share/doc/golang-github-sabhiram-gitignore-devel/README.md
 1 packages and 0 specfiles checked; 0 errors, 2 warnings, 0 badness; has taken 0.1 s 



Source checksums
----------------
https://github.com/sabhiram/go-gitignore/archive/525f6e181f062064d83887ed2530e3b1ba0bc95a/go-gitignore-525f6e181f062064d83887ed2530e3b1ba0bc95a.tar.gz :
  CHECKSUM(SHA256) this package     : 01457f188bec07a44dcbc5ec99a6d16e1972e903e28a3c3f709d03dc36193712
  CHECKSUM(SHA256) upstream package : 01457f188bec07a44dcbc5ec99a6d16e1972e903e28a3c3f709d03dc36193712


Requires
--------
golang-github-sabhiram-gitignore-devel (rpmlib, GLIBC filtered):
    go-filesystem



Provides
--------
golang-github-sabhiram-gitignore-devel:
    golang(github.com/sabhiram/go-gitignore)
    golang(github.com/sabhiram/go-gitignore)(commit=525f6e181f062064d83887ed2530e3b1ba0bc95a)
    golang-github-sabhiram-gitignore-devel
    golang-ipath(github.com/sabhiram/go-gitignore)
    golang-ipath(github.com/sabhiram/go-gitignore)(commit=525f6e181f062064d83887ed2530e3b1ba0bc95a)

Comment 4 Navid Yaghoobi 2023-10-15 07:27:36 UTC
Hi

It showing issue that similar package name exists: https://src.fedoraproject.org/rpms/golang-github-sabhiram-gitignore
Everything else looks fine (I think its ok to ignore those 2 rpmlink warnings).

Comment 5 Navid Yaghoobi 2023-10-20 08:06:06 UTC
Hi(In reply to Navid Yaghoobi from comment #4)
> Hi
> 
> It showing issue that similar package name exists:
> https://src.fedoraproject.org/rpms/golang-github-sabhiram-gitignore
> Everything else looks fine (I think its ok to ignore those 2 rpmlink
> warnings).

Hi 
Since it was an orphan package and doing repackaging then it should be OK.
LGTM.

Comment 6 Package Review 2024-11-09 08:35:22 UTC
Package is now in repositories, closing review.


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