Bug 877969 - Review Request: python-uinput - Pythonic API to the Linux uinput kernel module
Summary: Review Request: python-uinput - Pythonic API to the Linux uinput kernel module
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-19 10:49 UTC by Fabian Deutsch
Modified: 2012-12-14 12:04 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-14 12:04:37 UTC
Type: ---
Embargoed:
mrunge: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)
fedora-review -n python-uinput -v (2.21 KB, text/x-rpm-spec)
2012-11-19 14:40 UTC, Fabian Deutsch
no flags Details
fedora-review logfile (20.00 KB, application/octet-stream)
2012-11-19 15:02 UTC, Fabian Deutsch
no flags Details

Description Fabian Deutsch 2012-11-19 10:49:43 UTC
Spec URL: http://fabiand.fedorapeople.org/python-uinput/1/python-uinput.spec
SRPM URL: http://fabiand.fedorapeople.org/python-uinput/1/python-uinput-0.9-1.fc16.src.rpm
Description: Python-uinput is Python interface to the Linux uinput kernel module
which allows attaching userspace device drivers into kernel.
Fedora Account System Username: fabiand

Comment 1 Fabian Deutsch 2012-11-19 10:50:02 UTC
$ rpmlint python-uinput.spec /home/fdeutsch/rpmbuild/SRPMS/python-uinput-0.9-1.fc16.src.rpm /home/fdeutsch/rpmbuild/RPMS/x86_64/python-uinput-0.9-1.fc16.x86_64.rpm /home/fdeutsch/rpmbuild/RPMS/x86_64/python3-uinput-0.9-1.fc16.x86_64.rpm /home/fdeutsch/rpmbuild/RPMS/x86_64/python-uinput-debuginfo-0.9-1.fc16.x86_64.rpm
python-uinput.src: W: spelling-error Summary(en_US) Pythonic -> Python
python-uinput.src: W: spelling-error %description -l en_US userspace -> user space, user-space, users pace
python-uinput.x86_64: W: spelling-error Summary(en_US) Pythonic -> Python
python-uinput.x86_64: W: spelling-error %description -l en_US userspace -> user space, user-space, users pace
python-uinput.x86_64: W: no-documentation
python3-uinput.x86_64: W: spelling-error Summary(en_US) Pythonic -> Python
python3-uinput.x86_64: W: spelling-error %description -l en_US userspace -> user space, user-space, users pace
python3-uinput.x86_64: W: no-documentation
4 packages and 1 specfiles checked; 0 errors, 8 warnings.

Comment 3 Fabian Deutsch 2012-11-19 11:12:42 UTC
F16
http://koji.fedoraproject.org/koji/taskinfo?taskID=4703293

Comment 4 Fabian Deutsch 2012-11-19 14:40:49 UTC
Created attachment 647796 [details]
fedora-review -n python-uinput -v

The builds in koji and rpmbuild -ba are actually running fine, additionally the packages can be installed, just fedora-review is having an issue.

I could actually not identify the cause for this problem.


Please let me know if this is a blocker.

Comment 5 Fabian Deutsch 2012-11-19 15:02:29 UTC
Created attachment 647820 [details]
fedora-review logfile

Comment 6 Fabian Deutsch 2012-11-19 15:19:25 UTC
A plain (local) mock build also went fine.

Comment 7 Fabian Deutsch 2012-11-19 15:20:54 UTC
sochotni was kind enough to help me with this problem. He ran the spec through fedora-review master and it went fine.

Comment 8 Fabian Deutsch 2012-11-19 15:24:04 UTC
The bug for reference: https://fedorahosted.org/FedoraReview/ticket/173

Comment 9 Matthias Runge 2012-11-20 09:29:56 UTC
Package Review
==============

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


Issues:
=======
[!]: Permissions on files are set properly.
     Note: See rpmlint output
See: http://fedoraproject.org/wiki/Packaging/Guidelines#FilePermissions


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

C/C++:
[x]: Development (unversioned) .so files in -devel subpackage, if present.
     Note: Unversioned so-files in private %_libdir subdirectory (see
     attachment). Verify they are not in ld path.

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]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[x]: %build honors applicable compiler flags or justifies otherwise.
[x]: All build dependencies are listed in BuildRequires, except for any that
     are listed in the exceptions section of Packaging Guidelines.
[x]: Package contains no bundled libraries.
[x]: Changelog in prescribed format.
[x]: Package does not run rm -rf %{buildroot} (or $RPM_BUILD_ROOT) at the
     beginning of %install.
[x]: Sources contain only permissible code or content.
[x]: Each %files section contains %defattr if rpm < 4.4
[x]: Macros in Summary, %description expandable at SRPM build time.
[-]: Package contains desktop file if it is a GUI application.
[-]: Development files must be in a -devel package
[x]: Package requires other packages for directories it uses.
[x]: Package uses nothing in %doc for runtime.
[x]: Package is not known to require ExcludeArch.
[x]: Package does not contain duplicates in %files.
[!]: Permissions on files are set properly.
     Note: See rpmlint output
[x]: Fully versioned dependency in subpackages, if present.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in %package -n
     python3-uinput
[x]: Package complies to the Packaging Guidelines
[x]: Spec file lacks Packager, Vendor, PreReq tags.
[!]: 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 %doc.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses found:
     "GPL (v3 or later)", "Unknown or generated". 2 files have unknown
     license. Detailed output of licensecheck in /home/mrunge/review/877969
     -python-uinput/licensecheck.txt
[!]: License file installed when any subpackage combination is installed.
[x]: Package consistently uses macro is (instead of hard-coded directory
     names).
[x]: Package is named using only allowed ASCII characters.
[x]: Package is named according to the Package Naming Guidelines.
[x]: Package does not generate any conflict.
     Note: Package contains no Conflicts: tag(s)
[x]: Package do not use a name that already exist
[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]: Package must own all directories that it creates.
[x]: Package does not own files or directories owned by other packages.
[x]: Package installs properly.
[x]: Package is not relocatable.
[x]: Requires correct, justified where necessary.
[x]: CheckResultdir
[x]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: Sources used to build the package match the upstream source, as provided
     in the spec URL.
[x]: Spec file is legible and written in American English.
[x]: Spec file name must match the spec package %{name}, in the format
     %{name}.spec.
[-]: Package contains systemd file(s) if in need.
[x]: File names are valid UTF-8.
[x]: Useful -debuginfo package or justification otherwise.
[x]: Large documentation must go in a -doc subpackage.
     Note: Documentation size is 0 bytes in 0 files.
[x]: Packages must not store files under /srv, /opt or /usr/local

Python:
[x]: Package contains BR: python2-devel or python3-devel
[x]: Binary eggs must be removed in %prep
[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

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

Generic:
[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]: 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]: Dist tag is present.
[x]: No file requires outside of /etc, /bin, /sbin, /usr/bin, /usr/sbin.
[x]: Final provides and requires are sane (rpm -q --provides and rpm -q
     --requires).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: The placement of pkgconfig(.pc) files are correct.
[x]: SourceX tarball generation or download is documented.
[x]: SourceX / PatchY prefixed with %{name}.
[x]: SourceX is a working URL.
[-]: 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]: Spec use %global instead of %define.

===== 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.
[x]: Large data in /usr/share should live in a noarch subpackage if package is
     arched.


Rpmlint
-------
Checking: python-uinput-0.9-1.fc19.x86_64.rpm
          python-uinput-0.9-1.fc19.src.rpm
          python-uinput-debuginfo-0.9-1.fc19.x86_64.rpm
python-uinput.x86_64: W: spelling-error Summary(en_US) Pythonic -> Python
python-uinput.x86_64: W: spelling-error %description -l en_US userspace -> user space, user-space, users pace
python-uinput.x86_64: W: no-documentation
python-uinput.x86_64: E: non-standard-executable-perm /usr/lib64/python2.7/site-packages/_libsuinput.so 0775L
python-uinput.src: W: spelling-error Summary(en_US) Pythonic -> Python
python-uinput.src: W: spelling-error %description -l en_US userspace -> user space, user-space, users pace
3 packages and 0 specfiles checked; 1 errors, 5 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint python-uinput python-uinput-debuginfo
python-uinput.x86_64: W: spelling-error Summary(en_US) Pythonic -> Python
python-uinput.x86_64: W: spelling-error %description -l en_US userspace -> user space, user-space, users pace
python-uinput.x86_64: W: no-documentation
python-uinput.x86_64: E: non-standard-executable-perm /usr/lib64/python2.7/site-packages/_libsuinput.so 0775L
2 packages and 0 specfiles checked; 1 errors, 3 warnings.
# echo 'rpmlint-done:'



Requires
--------
python-uinput-0.9-1.fc19.x86_64.rpm (rpmlib, GLIBC filtered):
    
    libc.so.6()(64bit)  
    libpthread.so.0()(64bit)  
    libpython2.7.so.1.0()(64bit)  
    libudev.so.1()(64bit)  
    libudev.so.1(LIBUDEV_183)(64bit)  
    python(abi) = 2.7
    rtld(GNU_HASH)  

python-uinput-debuginfo-0.9-1.fc19.x86_64.rpm (rpmlib, GLIBC filtered):
    



Provides
--------
python-uinput-0.9-1.fc19.x86_64.rpm:
    
    python-uinput = 0.9-1.fc19
    python-uinput(x86-64) = 0.9-1.fc19

python-uinput-debuginfo-0.9-1.fc19.x86_64.rpm:
    
    python-uinput-debuginfo = 0.9-1.fc19
    python-uinput-debuginfo(x86-64) = 0.9-1.fc19




MD5-sum check
-------------
http://pypi.python.org/packages/source/p/python-uinput/python-uinput-0.9.tar.gz :
  CHECKSUM(SHA256) this package     : 2cd5ea90bf83bc3ce56e3d2897de9133080e940f1396551d21305aac43611295
  CHECKSUM(SHA256) upstream package : 2cd5ea90bf83bc3ce56e3d2897de9133080e940f1396551d21305aac43611295


Issues: 
- no docs; you must include COPYING, and I'd also include README; please take care also to include the license for py3 version, there are also examples and a NEWS file. It's up to you, if you want to distribute both.
- you also should correct exec perms for _libsuinput.so

Comment 10 Fabian Deutsch 2012-11-20 10:46:59 UTC
Thanks for your review Matthias.

I've added the docs and examples, so far so good.

If I change the permissions of the library to 644, rpmlint now raises a unstripped-binary-or-object warning.

Looking at /usr/lib64/python2.7/site-packages/*.so all except on .so file have 755, so the permissions which were marked by rpmlint as incorrect.
I'd go with keeping the original permissions.

Comment 12 Matthias Runge 2012-11-20 11:02:20 UTC
OK, agreed.

Package approved.

Comment 13 Fabian Deutsch 2012-11-20 11:29:56 UTC
New Package SCM Request
=======================
Package Name: python-uinput
Short Description: Pythonic API to the Linux uinput kernel module
Owners: fabiand
Branches: f16 f17 f18 el6
InitialCC:

Comment 14 Gwyn Ciesla 2012-11-21 12:10:30 UTC
Git done (by process-git-requests).

Comment 15 Matthias Runge 2012-12-14 12:04:37 UTC
since it's built and pushed, we could close this.


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