[Bug 1671787] Review Request: python-cursor - python package for hiding terminal cursor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1671787

Jan Macku <jamacku@xxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pkopkan@xxxxxxxxxx
              Flags|                            |needinfo?(pkopkan@xxxxxxxxx
                   |                            |m)



--- Comment #5 from Jan Macku <jamacku@xxxxxxxxxx> ---
(In reply to Patrik Kopkan from comment #4)
> Spec URL: https://pagure.io/python-cursor/raw/master/f/python-cursor.spec
> SRPM URL:
> https://pagure.io/python-cursor/raw/master/f/python-cursor-1.2.0-1.fc29.src.
> rpm

Hi Patrik,

There are some issues:

* You can't use GitHub master branch as a source, because master is changing
with every commit. This cause that source hash and upstream hash doesn't match.
  Also you link whole master branch only for two files (README and COPYING),
this cause growing of srpm file.
  - Solution: Link README and COPYING files directly as Source X a Y and
instead of referencing to master branch refer to commit.
    -
https://raw.githubusercontent.com/GijsTimmers/cursor/f40edcd7677f9912a042fee76653a41fefe7dac7/LICENSE
    -
https://raw.githubusercontent.com/GijsTimmers/cursor/f40edcd7677f9912a042fee76653a41fefe7dac7/README.md 

* Your spec file doesn't match spec file from srpm (different changelog).

* There is also problem with description. You use two different macros
%{summary} and %{Summary}. The problem is that %{Summary} macro doesn't exist.
  If I run rpm -pqi python3-cursor-1.2.0-1.fc29.noarch.rpm, it shows:
"Description : %{Summary}".
  - Solution: The best solution would be write an extended version of summary
instead of using macro. 

* Remove (patch) shebang from cursor.py.

* Try to contact upstream via mail or create an Issue on GitHub and ask them
about man pages. 


Full output from fedora-review tool:

--------------------------------------------

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

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


Issues:
=======
- Sources used to build the package match the upstream source, as provided
  in the spec URL.
  Note: Upstream MD5sum check error, diff is in
  /home/jamacku/Tmp/cursor/review/python-cursor/diff.txt
  See: http://fedoraproject.org/wiki/Packaging/SourceURL


===== 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.
[ ]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses
     found: "*No copyright* Creative Commons Attribution-ShareAlike Public
     License (v2.5)", "Unknown or generated". 15 files have unknown
     license. Detailed output of licensecheck in
     /home/jamacku/Tmp/cursor/review/python-cursor/licensecheck.txt
[ ]: Package contains no bundled libraries without FPC exception.
[ ]: Changelog in prescribed format.
[ ]: Sources contain only permissible code or content.
[ ]: Macros in Summary, %description expandable at SRPM build time.
     Note: Macros in: python3-cursor (description)
[ ]: 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.
[ ]: 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]: 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]: 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]: 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]: 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:
[ ]: 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.
[ ]: 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:
[ ]: 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.
[ ]: 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]: 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:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).


Rpmlint
-------
Checking: python3-cursor-1.2.0-1.fc29.noarch.rpm
          python-cursor-1.2.0-1.fc29.src.rpm
python3-cursor.noarch: W: unexpanded-macro %description -l C %{Summary}
python3-cursor.noarch: E: wrong-script-interpreter
/usr/lib/python3.7/site-packages/cursor/cursor.py /usr/bin/env python2
python3-cursor.noarch: E: non-executable-script
/usr/lib/python3.7/site-packages/cursor/cursor.py 644 /usr/bin/env python2
python3-cursor.noarch: W: no-manual-page-for-binary cursor_hide
python3-cursor.noarch: W: no-manual-page-for-binary cursor_show
2 packages and 0 specfiles checked; 2 errors, 3 warnings.




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


Requires
--------
python3-cursor (rpmlib, GLIBC filtered):
    /usr/bin/python3
    python(abi)



Provides
--------
python3-cursor:
    python3-cursor
    python3.7dist(cursor)
    python3dist(cursor)



Source checksums
----------------
https://files.pythonhosted.org/packages/source/c/cursor/cursor-1.2.0.tar.gz :
  CHECKSUM(SHA256) this package     :
8ee9fe5b925e1001f6ae6c017e93682583d2b4d1ef7130a26cfcdf1651c0032c
  CHECKSUM(SHA256) upstream package :
8ee9fe5b925e1001f6ae6c017e93682583d2b4d1ef7130a26cfcdf1651c0032c
https://github.com/GijsTimmers/cursor/archive/master.zip :
  CHECKSUM(SHA256) this package     :
aba7ac45dd64d601da5519f9dacb9cba99d5449ef72be5ba6e6a69727ea6b946
  CHECKSUM(SHA256) upstream package :
2d81934d06862b5baa0d07610c2d5a7276df019ad0d9087d734e9851e3e2747a
diff -r also reports differences

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list -- package-review@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to package-review-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite Conditions]     [KDE Users]

  Powered by Linux