Bug 1300003 - Review Request: fleet-commander - Admin interface for Fleet Commander
Summary: Review Request: fleet-commander - Admin interface for Fleet Commander
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David King
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-19 17:47 UTC by Alberto Ruiz
Modified: 2016-02-13 10:33 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-02-13 10:33:45 UTC
Type: ---
amigadave: fedora-review+


Attachments (Terms of Use)

Description Alberto Ruiz 2016-01-19 17:47:09 UTC
Spec URL: https://github.com/fleet-commander/fc-admin/blob/0.7.0/fleet-commander.spec
SRPM URL: https://github.com/fleet-commander/fc-admin/releases/download/0.7.0/fleet-commander-0.7.0-1.fc23.src.rpm
Description: Admin interface for Fleet Commander, a system to manage desktop configurations in large deployments
Fedora Account System Username: aruiz

Comment 1 Alberto Ruiz 2016-01-19 17:52:51 UTC
This is the first package (alongside the one in #1300005) that I submit, even though I already maintain the package ino, so I am probably going to need a sponsor, I am also the maintainer of the upstream Fleet Commander project.

Comment 3 Brandon Thomas 2016-01-24 18:13:14 UTC
This is an unofficial review, and will not effect the status of this review request.
* I believe the spec file should be named fleet-commander-admin.spec, since fleet-commander only exists as two separate projects (fleet-commander-client and fleet-commander-admin).
* As a corollary to that, since the package "fleet-commander" does not exist, the subpackage fleet-commander-admin should be the main packages name.
* You probably want more information in your summaries and descriptions, since a user probably doesn't know what fleet commander is.
* You should probably use "%make_build" over "make".
* It is not necessary to have a "%clean" section.
* Including fonts should be avoided. I'm not sure if this is because of some technical restriction, but if possible, you should use the fonts provided in Fedora.

Comment 4 Oliver Gutiérrez 2016-01-25 18:19:51 UTC
Thank you Brandon. We have revised our specfile and added the sugggestions you gave us about it.

Thanks for your help :)

Comment 6 David King 2016-01-27 17:38:19 UTC
I ran this through fedora-review, and came up with another list of things to fix:

* the "Spec URL" should link to the spec file, not a link to a page that shows the spec file (otherwise fedora-review -b <bugnumber> fails)
* python-devel should be either python2-devel or python3-devel
* the %defattr line in the files section is useless (also, why have an executable desktop file?): https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/KEO7AX3JXR2TY6OVL4M7HDISZ6YIJNKU/
* missing a changelog entry for the 0.7.1-1 release
* duplicates in the files list: /var/lib/fleet-commander-admin/profiles
* unowned directories: /usr/share/fleet-commander-admin /usr/lib64/fleet-commander/fleetcommander (and several others)
* config files need to be marked "noreplace" or clearly marked otherwise
* using libdir in a noarch package suggests that the package should not be noarch (probably means that you need to read https://fedoraproject.org/wiki/Packaging:Python#Macros if you haven't already)
* the description should be split over multipled lines, and not be one long line

There are probably some other things, but fixing those should get me to the next round of fedora-review warnings. :-)

Comment 7 Alberto Ruiz 2016-02-03 16:18:32 UTC
(In reply to David King from comment #6)
> * the %defattr line in the files section is useless (also, why have an
> executable desktop file?):
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/
> thread/KEO7AX3JXR2TY6OVL4M7HDISZ6YIJNKU/

spice-html5 works as a submodule and most of those files come as 755, that's why we need the %defattr otherwise we get even more problems with the linter/reviewer complaining about scripts without a #! header

Comment 10 David King 2016-02-04 14:30:58 UTC
Package Review
==============

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


Issues:
=======
- Package installs a %{name}.desktop using desktop-file-install or desktop-file-validate if there is such a file. https://fedoraproject.org/wiki/Packaging:Guidelines#desktop-file-install_usage (I am not sure if this is necessary any more, with file triggers found in recent rpm versions.)
- The %license macro must be used to list the COPYING* files. https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#License_Text
- The License tag mentions that the package is under LGPLv2+, but there are some files which are GPLv2+. https://fedoraproject.org/wiki/Packaging:LicensingGuidelines#Multiple_Licensing_Scenarios
- File/directory ownership, as listed below
- Bundles spice-html5 without a Provides (also some fonts, according to fedora-review): https://fedoraproject.org/wiki/Packaging:Guidelines#Bundling_and_Duplication_of_system_libraries


===== 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.
[!]: 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.
[!]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "LGPL", "GPL (v2 or later)", "Unknown or generated", "MIT/X11
     (BSD like)", "LGPL (v3 or later)", "BSD (3 clause)", "MIT/X11 (BSD
     like) LGPL (v3 or later)". 21 files have unknown license. Detailed
     output of licensecheck in /home/david/checkout/rpms/1300003-fleet-
     commander-admin/licensecheck.txt
[!]: License file installed when any subpackage combination is installed.
[!]: If the package is under multiple licenses, the licensing breakdown
     must be documented in the spec.
[x]: Package requires other packages for directories it uses.
     Note: No known owner of /usr/share/fleet-commander-admin,
     /etc/dbus-1/system.d, /usr/share/fleet-commander-
     admin/python/fleetcommander, /usr/share/fleet-commander-admin/python
[!]: Package must own all directories that it creates.
     Note: Directories without known owners: /etc/dbus-1/system.d,
     /usr/share/fleet-commander-admin, /usr/share/fleet-commander-
     admin/python, /usr/share/fleet-commander-admin/python/fleetcommander
[!]: Package contains no bundled libraries without FPC exception.
[x]: Changelog in prescribed format.
[x]: Sources contain only permissible code or content.
[-]: Development files must be in a -devel package
[-]: 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.
[x]: 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]: Package does not own files or directories owned by other packages.
[x]: All build dependencies are listed in BuildRequires, except for any
     that are listed in the exceptions section of Packaging Guidelines.
[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]: %config files are marked noreplace or the reason is justified.
[x]: Macros in Summary, %description expandable at SRPM build time.
[x]: Package contains desktop file if it is a GUI application.
[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]: No %config files under /usr.
[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

Python:
[x]: Python eggs must not download any dependencies during the build
     process.
[-]: A package which is used by another package via an egg interface should
     provide egg info.
[x]: Package meets the Packaging Guidelines::Python
[x]: Package contains BR: python2-devel or python3-devel
[x]: Binary eggs must be removed in %prep

===== 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).
[x]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in fleet-
     commander-logger
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[-]: Description and summary sections in the package spec file contains
     translations for supported Non-English languages, if available.
[?]: Package should compile and build into binary rpms on all supported
     architectures.
[!]: %check is present and all tests pass.
[?]: Packages should try to preserve timestamps of original installed
     files.
[x]: Packager, Vendor, PreReq, Copyright tags should not be in spec file
[x]: Sources can be downloaded from URI in Source: tag
[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]: 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).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: fleet-commander-admin-0.7.2-1.fc24.noarch.rpm
          fleet-commander-logger-0.7.2-1.fc24.noarch.rpm
          fleet-commander-admin-0.7.2-1.fc24.src.rpm
fleet-commander-admin.noarch: W: no-documentation
fleet-commander-admin.noarch: W: non-standard-uid /var/lib/fleet-commander-admin fleet-commander-admin
fleet-commander-admin.noarch: W: non-standard-uid /var/lib/fleet-commander-admin/profiles fleet-commander-admin
fleet-commander-admin.noarch: W: no-manual-page-for-binary fleet-commander-standalone
fleet-commander-logger.noarch: E: explicit-lib-dependency json-glib
fleet-commander-logger.noarch: E: explicit-lib-dependency libsoup
fleet-commander-logger.noarch: W: no-documentation
fleet-commander-logger.noarch: W: non-conffile-in-etc /etc/xdg/autostart/fleet-commander-logger.desktop
fleet-commander-admin.src: W: invalid-url Source0: https://github.com/fleet-commander/fc-admin/releases/download/0.7.2/fleet-commander-admin-0.7.2.tar.xz HTTP Error 403: Forbidden
3 packages and 0 specfiles checked; 2 errors, 7 warnings.




Rpmlint (installed packages)
----------------------------
fleet-commander-logger.noarch: E: explicit-lib-dependency json-glib
fleet-commander-logger.noarch: E: explicit-lib-dependency libsoup
fleet-commander-logger.noarch: W: no-documentation
fleet-commander-logger.noarch: W: non-conffile-in-etc /etc/xdg/autostart/fleet-commander-logger.desktop
fleet-commander-admin.noarch: W: no-documentation
fleet-commander-admin.noarch: W: non-standard-uid /var/lib/fleet-commander-admin fleet-commander-admin
fleet-commander-admin.noarch: W: non-standard-uid /var/lib/fleet-commander-admin/profiles fleet-commander-admin
fleet-commander-admin.noarch: W: no-manual-page-for-binary fleet-commander-standalone
2 packages and 0 specfiles checked; 2 errors, 6 warnings.



Requires
--------
fleet-commander-logger (rpmlib, GLIBC filtered):
    /usr/bin/gjs
    gjs
    json-glib
    libsoup

fleet-commander-admin (rpmlib, GLIBC filtered):
    /bin/sh
    /usr/bin/python
    config(fleet-commander-admin)
    dbus-python
    dconf
    httpd
    libvirt-python
    mod_wsgi
    numpy
    pygobject2
    python
    python-crypto
    python-websockify
    systemd



Provides
--------
fleet-commander-logger:
    fleet-commander-logger

fleet-commander-admin:
    config(fleet-commander-admin)
    fleet-commander-admin



Source checksums
----------------
https://github.com/fleet-commander/fc-admin/releases/download/0.7.2/fleet-commander-admin-0.7.2.tar.xz :
  CHECKSUM(SHA256) this package     : ba9ebf71d2a95a478233f76be166e76984db12520d7f9204b8404a652571348a
  CHECKSUM(SHA256) upstream package : ba9ebf71d2a95a478233f76be166e76984db12520d7f9204b8404a652571348a


Generated by fedora-review 0.6.0 (3c5c9d7) last change: 2015-05-20
Command line :/usr/bin/fedora-review -b 1300003
Buildroot used: fedora-rawhide-x86_64
Active plugins: Python, Generic, Shell-api
Disabled plugins: Java, C/C++, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP, Ruby
Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6

Comment 12 David King 2016-02-05 10:54:54 UTC
Some of the tests fail (and so the package does not build in koji nor mock):

http://koji.fedoraproject.org/koji/taskinfo?taskID=12890833
https://kojipkgs.fedoraproject.org//work/tasks/839/12890839/build.log

Comment 14 David King 2016-02-05 18:47:20 UTC
Package review approved.

Comment 15 Gwyn Ciesla 2016-02-08 15:08:52 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/fleet-commander

Comment 16 Gwyn Ciesla 2016-02-09 17:22:08 UTC
Package request has been approved: https://admin.fedoraproject.org/pkgdb/package/fleet-commander-admin

Comment 17 Alberto Ruiz 2016-02-13 10:33:45 UTC
Package is in


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