Bug 1942126 - Review Request: rubygem-protobuf - Google Protocol Buffers serialization and RPC implementation for Ruby
Summary: Review Request: rubygem-protobuf - Google Protocol Buffers serialization and ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-23 17:40 UTC by Jarek Prokop
Modified: 2021-08-26 10:54 UTC (History)
2 users (show)

Fixed In Version: rubygem-protobuf-3.10.3-1.fc36
Clone Of:
Environment:
Last Closed: 2021-08-26 10:54:18 UTC
Type: ---
Embargoed:
eclipseo: fedora-review+


Attachments (Terms of Use)

Description Jarek Prokop 2021-03-23 17:40:18 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/pvalena/rubygems/fedora-rawhide-x86_64/02092607-rubygem-protobuf/rubygem-protobuf.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/pvalena/rubygems/fedora-rawhide-x86_64/02092607-rubygem-protobuf/rubygem-protobuf-3.10.3-1.13.fc35.src.rpm
Description: Google Protocol Buffers serialization and RPC implementation for Ruby.

Fedora Account System Username: jackorp

Built in copr successfully: https://copr.fedorainfracloud.org/coprs/pvalena/rubygems/build/2092607/

I intend to remove the teeny version before importing the package.

Comment 1 Robert-André Mauchin 🐧 2021-03-29 20:35:18 UTC
DEBUG util.py:446:  Last metadata expiration check: 0:00:02 ago on Mon Mar 29 22:31:49 2021.
DEBUG util.py:444:  No matching package to install: 'rubygem(middleware)'
DEBUG util.py:444:  Not all dependencies satisfied
DEBUG util.py:444:  Error: Some packages could not be found.

It has been orphaned for more than 2 years: https://src.fedoraproject.org/rpms/rubygem%2Dmiddleware

Comment 2 Jarek Prokop 2021-03-29 20:57:59 UTC
Yes I am aware of that, pvalena is planning to bring that package back: https://src.fedoraproject.org/rpms/rubygem-middleware/pull-request/1

Comment 3 Robert-André Mauchin 🐧 2021-03-29 21:07:13 UTC
 - Some file are BSD:

BSD 3-clause "New" or "Revised" License
---------------------------------------
protobuf-3.10.3/proto/google/protobuf/compiler/plugin.proto
protobuf-3.10.3/proto/google/protobuf/descriptor.proto


Add:

# MIT: main library
# BSD: proto/google/protobuf/compiler/plugin.proto
# and proto/google/protobuf/descriptor.proto
License: MIT and BSD

 - Fix the changelog release:

rubygem-protobuf.noarch: W: incoherent-version-in-changelog 3.10.3-1 ['3.10.3-1.13.fc35', '3.10.3-1.13']

 - Remove the tab line82:

rubygem-protobuf.src:82: W: mixed-use-of-spaces-and-tabs (spaces: line 53, tab: line 82)



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.
[!]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "Unknown or generated", "Expat License", "*No copyright*
     [generated file]", "BSD 3-clause "New" or "Revised" License". 177
     files have unknown license. Detailed output of licensecheck in
     /home/bob/packaging/review/rubygem-protobuf/review-rubygem-
     protobuf/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[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.
[-]: 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]: 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]: 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 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 0 bytes in 0 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

Ruby:
[x]: Platform dependent files must all go under %{gem_extdir_mri}, platform
     independent under %{gem_dir}.
[x]: Gem package must not define a non-gem subpackage
[x]: Macro %{gem_extdir} is deprecated.
[x]: Gem package is named rubygem-%{gem_name}
[x]: Package contains BuildRequires: rubygems-devel.
[x]: Gem package must define %{gem_name} macro.
[x]: Pure Ruby package must be built as noarch
[x]: Package does not contain Requires: ruby(abi).

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

Generic:
[-]: Avoid bundling fonts in non-fonts packages.
     Note: Package contains font files
[-]: 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.
[x]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: Sources are verified with gpgverify first in %prep if upstream
     publishes signatures.
     Note: gpgverify is not used.
[-]: 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]: 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]: Fully versioned dependency in subpackages if applicable.
[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.

Ruby:
[x]: Gem package should exclude cached Gem.
[x]: Gem should use %gem_install macro.
[x]: gems should not require rubygems package
[x]: Specfile should use macros from rubygem-devel package.
[x]: Test suite should not be run by rake.
[x]: Test suite of the library should be run.

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

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: rubygem-protobuf-3.10.3-1.13.fc35.noarch.rpm
          rubygem-protobuf-doc-3.10.3-1.13.fc35.noarch.rpm
          rubygem-protobuf-3.10.3-1.13.fc35.src.rpm
rubygem-protobuf.noarch: W: incoherent-version-in-changelog 3.10.3-1 ['3.10.3-1.13.fc35', '3.10.3-1.13']
rubygem-protobuf.noarch: W: no-documentation
rubygem-protobuf.noarch: W: no-manual-page-for-binary protoc-gen-ruby
rubygem-protobuf.noarch: W: no-manual-page-for-binary rpc_server
rubygem-protobuf-doc.noarch: E: zero-length /usr/share/gems/gems/protobuf-3.10.3/spec/lib/protobuf/generators/message_generator_spec.rb
rubygem-protobuf.src:82: W: mixed-use-of-spaces-and-tabs (spaces: line 53, tab: line 82)
3 packages and 0 specfiles checked; 1 errors, 5 warnings.

Comment 5 Robert-André Mauchin 🐧 2021-03-30 20:34:48 UTC
(In reply to Jarek Prokop from comment #4)
> Remarks fixed:
> 
> updated srpm:
> https://fedorapeople.org/cgit/jackorp/public_git/rubygem-protobuf.git/plain/
> rubygem-protobuf-3.10.3-1.fc35.src.rpm
> 
> updated spec:
> https://fedorapeople.org/cgit/jackorp/public_git/rubygem-protobuf.git/plain/
> rubygem-protobuf.spec

You need to add a comment explaining the license breakdown in the SPEC:

# MIT: main library
# BSD: proto/google/protobuf/compiler/plugin.proto
# and proto/google/protobuf/descriptor.proto
License: MIT and BSD


Package approved, please fix the aforementioned issue before import.

Comment 6 Gwyn Ciesla 2021-04-06 13:07:56 UTC
(fedscm-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/rubygem-protobuf


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