Bug 2036288 - Review Request: netrate - Network interface traffic meter
Summary: Review Request: netrate - Network interface traffic meter
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Artur Frenszek-Iwicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-31 00:47 UTC by Radu Rendec
Modified: 2023-07-05 09:03 UTC (History)
4 users (show)

Fixed In Version: netrate-0.1-4.fc39
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-07-05 09:03:25 UTC
Type: ---
Embargoed:
fedora: fedora-review+


Attachments (Terms of Use)

Description Radu Rendec 2021-12-31 00:47:16 UTC
Spec URL: https://download.copr.fedorainfracloud.org/results/rrendec/playground/fedora-35-x86_64/03107309-netrate/netrate.spec
SRPM URL: https://download.copr.fedorainfracloud.org/results/rrendec/playground/fedora-35-x86_64/03107309-netrate/netrate-0.1-1.fc35.src.rpm
Description: netrate is a simple program that displays real-time byte and packet count rate of network interfaces in Linux systems.
Fedora Account System Username: rrendec

This is my first official package submission to the Fedora Project, and I am kindly asking for a sponsor. I am the upstream maintainer of the netrate program.

As background information, I would like to add that I wrote my first spec file around 2004 and have maintained and/or contributed to several RPM packages for internal use, so I am not entirely new to RPM packaging. However, this is the first time I am submitting a package upstream.

Comment 1 Artur Frenszek-Iwicki 2022-01-03 20:32:58 UTC
> make CFLAGS="-g -O2" %{?_smp_mflags} -C src
This ignores Fedora's CFLAGS. You can use the following, instead:
> %set_build_flags
> %make_build -C src

Comment 3 Jun.Miao 2022-01-04 05:27:40 UTC
> Source0: https://github.com/mindbit/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz

Please use proper SourceURL form as proscribed in the Guidelines: https://docs.fedoraproject.org/en-US/packaging-guidelines/SourceURL/#_git_tags
In this case, that'd be "%{url}/archive/v%{version}/%{name}-%{version}.tar.gz"

Comment 4 Jun.Miao 2022-01-04 06:19:18 UTC
< BuildRequires: gcc, make
In general:
BuildRequires: gcc
BuildRequires: make

Comment 6 Artur Frenszek-Iwicki 2022-01-05 15:57:33 UTC
Package approved. I'd add some blank lines between Tags: to improve readability, but that's a matter of style/preference, so whatever.


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

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


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

C/C++:
[x]: Package does not contain kernel modules.
[x]: Package contains no static executables.
[x]: If your application is a C or C++ application you must list a
     BuildRequires against gcc, gcc-c++ or clang.
[x]: Header files in -devel subpackage, if present.
[x]: Package does not contain any libtool archives (.la)
[x]: Rpath absent or only used for internal libs.

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.
[x]: License file installed when any subpackage combination is installed.
[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.
[-]: 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]: Useful -debuginfo package or justification otherwise.
[x]: Package is not known to require an ExcludeArch tag.
[-]: 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 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 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]: 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.
[-]: 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.
     NOTE: Successful scratch build in koji can be found at:
     https://koji.fedoraproject.org/koji/taskinfo?taskID=80872375
[-]: %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.

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

Generic:
[x]: Rpmlint is run on debuginfo package(s).
     Note: No rpmlint messages.
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Large data in /usr/share should live in a noarch subpackage if package
     is arched.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: netrate-0.1-3.fc36.x86_64.rpm
          netrate-debuginfo-0.1-3.fc36.x86_64.rpm
          netrate-debugsource-0.1-3.fc36.x86_64.rpm
          netrate-0.1-3.fc36.src.rpm
netrate.x86_64: W: no-manual-page-for-binary netrate
4 packages and 0 specfiles checked; 0 errors, 1 warnings.




Rpmlint (debuginfo)
-------------------
Checking: netrate-debuginfo-0.1-3.fc36.x86_64.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.





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


Source checksums
----------------
https://github.com/mindbit/netrate/archive/v0.1/netrate-0.1.tar.gz :
  CHECKSUM(SHA256) this package     : c70432afdfff2453a72d92ce66dd1c1a1c50511ebe014e10be3853d5a80aeb0f
  CHECKSUM(SHA256) upstream package : c70432afdfff2453a72d92ce66dd1c1a1c50511ebe014e10be3853d5a80aeb0f


Requires
--------
netrate (rpmlib, GLIBC filtered):
    libc.so.6()(64bit)
    rtld(GNU_HASH)

netrate-debuginfo (rpmlib, GLIBC filtered):

netrate-debugsource (rpmlib, GLIBC filtered):



Provides
--------
netrate:
    netrate
    netrate(x86-64)

netrate-debuginfo:
    debuginfo(build-id)
    netrate-debuginfo
    netrate-debuginfo(x86-64)

netrate-debugsource:
    netrate-debugsource
    netrate-debugsource(x86-64)



Generated by fedora-review 0.7.6 (b083f91) last change: 2020-11-10
Command line :/usr/bin/fedora-review -b 2036288
Buildroot used: fedora-rawhide-x86_64
Active plugins: Shell-api, C/C++, Generic
Disabled plugins: Haskell, Python, PHP, Perl, SugarActivity, fonts, R, Java, Ocaml
Disabled flags: EPEL6, EPEL7, DISTTAG, BATCH, EXARCH

Comment 7 Radu Rendec 2022-01-06 01:24:45 UTC
Thank you so much for reviewing (and approving) the package.

Comment 8 Jun.Miao 2022-01-06 01:25:44 UTC
Hi @fedora 

I want to be a contributor for fedora features.
And I am helping other to review the spec/rpm. such as Bug 2036288 Bug 2036468 Bug 2028189.

Would it be possible to sponsor me into the packager group, in that case I can become a commit member to some package rpm.
If you find i am not enough i will continue to helping others rpm/spec. 

Thanks

Comment 9 Artur Frenszek-Iwicki 2022-01-06 09:39:45 UTC
Sponsor privileges are granted to a limited number of packagers, and I am not one of them.
You can find the full list of users here: https://accounts.fedoraproject.org/group/packager/

Also, a random bugzilla ticket isn't really the right place to ask for sponsorship.
You should head over to the devel@ mailing list and post a thread there.

Comment 10 Artur Frenszek-Iwicki 2022-06-28 00:29:26 UTC
The package was approved, but no repo has been requested.
Are you still interested in getting this into Fedora?

Comment 11 Radu Rendec 2022-06-28 02:38:44 UTC
OMG, I now realize it's been almost 6 months since I submitted this and you approved the package. I apologize for being completely silent for so long.

Yes, I am still interested in getting this into Fedora, but it looks like getting sponsored is much harder than I thought.

This page [ https://docs.fedoraproject.org/en-US/package-maintainers/How_to_Get_Sponsored_into_the_Packager_Group/ ] says that "Usually, a sponsor finds you through your sponsorship request in Bugzilla or the packager sponsors pagure instance". I did set this bug to block FE-NEEDSPONSOR, and I was hoping a sponsor would "find me" like the aforementioned page says, but obviously that hasn't happened. Is there anything obvious that I missed or did wrong?

Also, do you have any tips on getting sponsored? I did read the docs, but it looks like there is no clear way of getting there. There are a few different things you *can* do, and then you *may* get attention from a sponsor. The program I created this ticket for (netrate) is my own program, and I want to get it into Fedora. But having to get involved with and maintain a dozen other packages just to be able to do so doesn't seem very reasonable or fair.

Comment 12 Artur Frenszek-Iwicki 2022-07-08 14:10:43 UTC
Hoping someone will notice typically takes a long time, so I recomment going to IRC or the mailing list and finding someone willing to sponsor you.
Getting sponsored is subject to, well, the sponsor's personal judgement, that's why it's recommended to review some other package review requests,
or engage with the community in some other productive way, to convince people you understand the responsibilities involved. 

My question is, are you interested in *becoming a packager*, or *getting this particular program packaged*?
If it's the latter, then I'd be willing to just take this over and maintain the package myself.

Comment 13 Radu Rendec 2022-07-09 13:17:37 UTC
Thank you for the information and advice. Much appreciated!

To answer your question, I'm interested in both, but my priority is getting this particular program packaged. Therefore, I'm going to take you up on the offer to maintain the package. Please let me know if there's anything else you need from my side at this point - and thanks again! Needless to say, I will support you going forward in case there is any issue with the program itself and/or there are bug reports against the package.

The reason why I'm also interested in becoming a packager is because I have a few other programs I would like to get into Fedora, and I thought it would be easier if I became a packager myself. I started with netrate, well, because it's the simplest and I needed to start somewhere anyway. Maybe, if it's not too much to ask, you would be willing to take over the other programs as well. Of course, I would create the .spec files and run basic package tests to ease the burden on you.

Comment 14 Peter Robinson 2023-06-01 15:31:11 UTC
I'm sponsoring Radu so clearing

Comment 15 Artur Frenszek-Iwicki 2023-06-02 18:36:47 UTC
There's been no new upstream release, so the package is still latest version.
Some minor stuff needs updating:

> License: GPLv2
With the ongoing migration to SPDX identifiers, this should be changed to "GPL-2.0-only".

> %build
> %set_build_flags
Starting with Fedora 36, the %set_build_flags is now called automatically.
https://fedoraproject.org/wiki/Releases/36/ChangeSet#%set_build_flags_for_%build,_%check,_and_%install_phases

Also, recently the Packaging Guidelines have been changed to favour using %autorelease and %autochangelog
instead of manually editing those, but that's still optional.
https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/#_release_tag
https://docs.fedoraproject.org/en-US/packaging-guidelines/#changelogs

Comment 16 Radu Rendec 2023-06-02 20:08:14 UTC
Arthur, thanks for reviewing this (again) and for the suggestions and pointers to the documentation. I was about to add a new comment and say that fedpkg request-repo now complains that the review is older than 60 days. However, I was aware of the migration to SPDX identifiers and wanted to fix it first and post a new version of the spec. Then I saw your comment - perfect timing :)

So, I posted a new version of the spec here:
https://download.copr.fedorainfracloud.org/results/rrendec/staging/fedora-rawhide-x86_64/05999311-netrate/netrate.spec

The COPR build page is here:
https://copr.fedorainfracloud.org/coprs/rrendec/staging/build/5999311/

I did not switch to %autorelease and %autochangelog yet. It would require to set up the dist-git repo locally first. Before I switch, I would like to get this package included and get a feel of how dist-git and the whole process work. As far as I understand, I don't see any reason why switching later should not be possible.

Comment 17 Artur Frenszek-Iwicki 2023-06-08 11:28:46 UTC
The spec looks ok, the package builds fine in koji. Approved (again).

Comment 18 Fedora Admin user for bugzilla script actions 2023-06-12 19:22:56 UTC
The Pagure repository was created at https://src.fedoraproject.org/rpms/netrate

Comment 19 Artur Frenszek-Iwicki 2023-07-05 09:03:25 UTC
Closing this since netrate-0.1-4.fc39 has been built and is now available in the repo.


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