Bug 1828968 - Review Request: python-oca - Bindings for XMLRPC OpenNebula Cloud API
Summary: Review Request: python-oca - Bindings for XMLRPC OpenNebula Cloud API
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nils Philippsen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-04-28 16:50 UTC by Vipul Siddharth
Modified: 2021-05-17 16:08 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2021-05-17 16:08:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Vipul Siddharth 2020-04-28 16:50:31 UTC
Spec URL: https://siddharthvipul1.fedorapeople.org/rpms/python-oca/python-oca.spec
SRPM URL: https://siddharthvipul1.fedorapeople.org/rpms/python-oca/python-oca-4.10.0-1.fc30.src.rpm
Description: Bindings for XMLRPC OpenNebula Cloud API

Fedora Account System Username: siddharthvipul1

Koji build link: http://koji.fedoraproject.org/koji/taskinfo?taskID=43880402

License was missing from the upstream, I have created an issue suggestion adding it.
Will update as soon as it's reflected on upstream

Comment 2 Nils Philippsen 2020-04-28 21:15:22 UTC
Package Review
==============

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


===== 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.
[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.
[-]: Requires correct, justified where necessary.
[!]: 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.
[-]: 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.
[!]: 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 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

Python:
[x]: Python eggs must not download any dependencies during the build
     process.
[x]: 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]: Packages MUST NOT have dependencies (either build-time or runtime) on
     packages named with the unversioned python- prefix unless no properly
     versioned package exists. Dependencies on Python packages instead MUST
     use names beginning with python2- or python3- as appropriate.
[x]: Python packages must not contain %{pythonX_site(lib|arch)}/* in %files
[x]: Binary eggs must be removed in %prep

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

Generic:
[x]: 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.
[?]: Latest version is packaged.
[!]: 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.
[-]: %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]: Spec use %global instead of %define unless justified.

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

Generic:
[!]: Spec file according to URL is the same as in SRPM.
     Note: Spec file as given by url is not the same as in SRPM (see
     attached diff).
     See: (this test has no URL)
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).


Rpmlint
-------
Checking: python3-oca-4.10.0-1.fc33.noarch.rpm
          python-oca-4.10.0-1.fc33.src.rpm
python3-oca.noarch: W: description-shorter-than-summary
python3-oca.noarch: W: invalid-license Apache License 2.0
python3-oca.noarch: E: useless-provides python-oca
python3-oca.noarch: E: useless-provides python38-oca
python-oca.src: W: description-shorter-than-summary
python-oca.src: W: invalid-license Apache License 2.0
2 packages and 0 specfiles checked; 2 errors, 4 warnings.




Rpmlint (installed packages)
----------------------------
python3-oca.noarch: W: description-shorter-than-summary
python3-oca.noarch: W: invalid-license Apache License 2.0
python3-oca.noarch: W: invalid-url URL: https://github.com/python-oca/python-oca <urlopen error [Errno -2] Name or service not known>
python3-oca.noarch: E: useless-provides python-oca
python3-oca.noarch: E: useless-provides python38-oca
1 packages and 0 specfiles checked; 2 errors, 3 warnings.



Source checksums
----------------
https://files.pythonhosted.org/packages/source/o/oca/oca-4.10.0.tar.gz :
  CHECKSUM(SHA256) this package     : d580a1f83206a51237642c18b17d89aaeed1f4d3590521e25432dfcae81d3699
  CHECKSUM(SHA256) upstream package : d580a1f83206a51237642c18b17d89aaeed1f4d3590521e25432dfcae81d3699


Requires
--------
python3-oca (rpmlib, GLIBC filtered):
    python(abi)



Provides
--------
python3-oca:
    python-oca
    python3-oca
    python3.8dist(oca)
    python38-oca
    python3dist(oca)



Diff spec file in url and in SRPM
---------------------------------
--- /home/nils/devel/reviews/fedora/1828968-python-oca/srpm/python-oca.spec 2020-04-28 22:29:31.442398536 +0200
+++ /home/nils/devel/reviews/fedora/1828968-python-oca/srpm-unpacked/python-oca.spec    2020-04-28 14:09:29.000000000 +0200
@@ -6,5 +6,5 @@
 Summary:        Python Bindings for XMLRPC OpenNebula Cloud API

-License:        ASL
+License:        Apache License 2.0
 URL:            https://github.com/python-oca/python-oca
 Source0:        https://files.pythonhosted.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz


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

====================================================

Summary:

- The license field should be the short name of the license as listed here: https://fedoraproject.org/wiki/Licensing:Main#Software_License_List
- The summary and description miss an article ("...the XMLRPC..."), the description is also shorter than the summary and weirdly wrapped.
- The patch you apply doesn't fix all things that need to be fixed for Python 3 (e.g. it still tries to import xmlrpclib which doesn't exist in Python 3), but the GitHub repo has a release 4.11.0 which contains this and other fixes (but for some reason isn't published on pypi): https://github.com/python-oca/python-oca/releases
- The linked spec file is not the same as in the SRPM, but this doesn't matter because the only difference is in the license field, "ASL" vs. "Apache License 2.0", neither of which is valid (see above).

==> This needs some work. ;)

Comment 3 Package Review 2021-04-29 00:45:24 UTC
This is an automatic check from review-stats script.

This review request ticket hasn't been updated for some time, but it seems
that the review is still being working out by you. If this is right, please
respond to this comment clearing the NEEDINFO flag and try to reach out the
submitter to proceed with the review.

If you're not interested in reviewing this ticket anymore, please clear the
fedora-review flag and reset the assignee, so that a new reviewer can take
this ticket.

Without any reply, this request will shortly be resetted.

Comment 4 Nils Philippsen 2021-05-17 16:08:59 UTC
Just checked back with Vipul, he's not interested in maintaining the package anymore.


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