Bug 1111334 - Review Request: python-yubico - Pure-python library for interacting with Yubikeys
Summary: Review Request: python-yubico - Pure-python library for interacting with Yubi...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Christopher Meng
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-19 19:09 UTC by Nathaniel McCallum
Modified: 2014-06-23 17:17 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-23 17:17:32 UTC
Type: ---
Embargoed:
i: fedora-review+
kevin: fedora-cvs+


Attachments (Terms of Use)

Description Nathaniel McCallum 2014-06-19 19:09:33 UTC
Spec URL: http://npmccallum.fedorapeople.org/python-yubico/python-yubico.spec
SRPM URL: http://npmccallum.fedorapeople.org/python-yubico/python-yubico-1.2.1-1.fc21.src.rpm
Description: Pure-python library for interacting with Yubikeys
Fedora Account System Username: npmccallum

Comment 1 Nathaniel McCallum 2014-06-19 19:11:44 UTC
$ rpmlint ../SRPMS/python-yubico-1.2.1-1.fc21.src.rpm ../RPMS/noarch/python-yubico-1.2.1-1.fc21.noarch.rpm ./python-yubico.spec 
2 packages and 1 specfiles checked; 0 errors, 0 warnings.

Comment 3 Nathaniel McCallum 2014-06-20 04:20:07 UTC
Fixed (but I didn't bump release for such a small change). Same URL.

FYI, my erronious value is the default value of rpmdev-newspec.

Comment 4 Christopher Meng 2014-06-20 04:38:17 UTC
Missing setuptools BR.

Comment 5 Nathaniel McCallum 2014-06-20 04:40:43 UTC
Why is setuptools required? The package builds fine on my system and I don't have setuptools installed...

Comment 6 Christopher Meng 2014-06-20 04:41:56 UTC
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.dBOArs
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf python-yubico-python-yubico-1.2.1
+ /usr/bin/tar -xf -
+ /usr/bin/gzip -dc /builddir/build/SOURCES/python-yubico-1.2.1.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd python-yubico-python-yubico-1.2.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nAeT4H
+ umask 022
+ cd /builddir/build/BUILD
+ cd python-yubico-python-yubico-1.2.1
+ /usr/bin/python2 setup.py build
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from setuptools import setup
ImportError: No module named setuptools
error: Bad exit status from /var/tmp/rpm-tmp.nAeT4H (%build)

Comment 7 Nathaniel McCallum 2014-06-20 04:44:47 UTC
Argh! I did have it installed after all... Sorry!

Fixed. Same URL.

Comment 8 Christopher Meng 2014-06-20 06:01:25 UTC
Package Review
==============

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



Issues:
=======
- Package contains BR: python2-devel or python3-devel


===== 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.
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses found:
     "BSD (2 clause)", "Unknown or generated". 17 files have unknown license.
     Detailed output of licensecheck:

BSD (2 clause)
--------------
python-yubico-python-yubico-1.2.1/release.py

Unknown or generated
--------------------
python-yubico-python-yubico-1.2.1/doc/ykdef.h
python-yubico-python-yubico-1.2.1/setup.py
python-yubico-python-yubico-1.2.1/test/run.sh
python-yubico-python-yubico-1.2.1/test/test_yubico.py
python-yubico-python-yubico-1.2.1/test/test_yubikey_config.py
python-yubico-python-yubico-1.2.1/test/test_yubikey_frame.py
python-yubico-python-yubico-1.2.1/test/test_yubikey_usb_hid.py
python-yubico-python-yubico-1.2.1/yubico/__init__.py
python-yubico-python-yubico-1.2.1/yubico/yubico_exception.py
python-yubico-python-yubico-1.2.1/yubico/yubico_util.py
python-yubico-python-yubico-1.2.1/yubico/yubikey.py
python-yubico-python-yubico-1.2.1/yubico/yubikey_config.py
python-yubico-python-yubico-1.2.1/yubico/yubikey_config_util.py
python-yubico-python-yubico-1.2.1/yubico/yubikey_defs.py
python-yubico-python-yubico-1.2.1/yubico/yubikey_frame.py
python-yubico-python-yubico-1.2.1/yubico/yubikey_neo_usb_hid.py
python-yubico-python-yubico-1.2.1/yubico/yubikey_usb_hid.py

[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]: 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 3 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: No rpmlint messages.
[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 %doc.
[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]: Macros in Summary, %description expandable at SRPM build time.
[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 do not use a name that already exist
[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:
[-]: 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.
[!]: Package meets the Packaging Guidelines::Python
[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).
[x]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[x]: 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]: 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]: Dist tag is present (not strictly required in GL).
[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: No rpmlint messages.


Rpmlint
-------
Checking: python-yubico-1.2.1-1.fc21.noarch.rpm
          python-yubico-1.2.1-1.fc21.src.rpm
2 packages and 0 specfiles checked; 0 errors, 0 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint python-yubico
1 packages and 0 specfiles checked; 0 errors, 0 warnings.
# echo 'rpmlint-done:'



Requires
--------
python-yubico (rpmlib, GLIBC filtered):
    python(abi)
    pyusb



Provides
--------
python-yubico:
    python-yubico



Source checksums
----------------
https://github.com/Yubico/python-yubico/archive/python-yubico-1.2.1.tar.gz :
  CHECKSUM(SHA256) this package     : d0b830ae076e86802ac48f787663387fb3d0c5c7882a06ee835b4cb3e68256a4
  CHECKSUM(SHA256) upstream package : d0b830ae076e86802ac48f787663387fb3d0c5c7882a06ee835b4cb3e68256a4


Generated by fedora-review 0.5.1 (bb9bf27) last change: 2013-12-13
Command line :/bin/fedora-review -rvn python-yubico-1.2.1-1.fc21.src.rpm
Buildroot used: fedora-rawhide-i386
Active plugins: Python, Generic, Shell-api
Disabled plugins: Java, C/C++, fonts, SugarActivity, Ocaml, Perl, Haskell, R, PHP, Ruby
Disabled flags: EXARCH, EPEL5, BATCH, DISTTAG

---------------------------------
I though you'd fixed that python packaging macros, but seems you didn't.

1. 

BuildRequires:  python-devel

-->

BuildRequires:  python2-devel

2.

%{python_sitelib}/*

-->

%{python2_sitelib}/*

3. Drop rm -rf $RPM_BUILD_ROOT

Comment 9 Nathaniel McCallum 2014-06-20 13:09:03 UTC
Fixed.

Comment 10 Christopher Meng 2014-06-20 13:39:58 UTC
PACKAGE APPROVED.

Comment 11 Nathaniel McCallum 2014-06-20 13:53:11 UTC
New Package SCM Request
=======================
Package Name: python-yubico
Short Description: Pure-python library for interacting with Yubikeys
Upstream URL: https://github.com/Yubico/python-yubico
Owners: npmccallum
Branches: f21 el6
InitialCC:

Comment 12 Nathaniel McCallum 2014-06-20 13:54:09 UTC
Strangely, I don't see the fedora-cvs flag. Anyone know how to set it?

Comment 13 Kevin Fenzi 2014-06-21 17:21:11 UTC
Git done (by process-git-requests).

Comment 14 Nathaniel McCallum 2014-06-23 16:48:06 UTC
Package Change Request
======================
Package Name: python-yubico
New Branches: f20
Owners: npmccallum

Comment 15 Dennis Gilmore 2014-06-23 16:52:41 UTC
(In reply to Nathaniel McCallum from comment #12)
> Strangely, I don't see the fedora-cvs flag. Anyone know how to set it?

if you don't see them your not in the right groups and can not review and approve packages.

Comment 16 Nathaniel McCallum 2014-06-23 16:53:49 UTC
Dennis, that issue was resolved. I am just needing a new branch now.

Comment 17 Kevin Fenzi 2014-06-23 17:11:37 UTC
Git done (by process-git-requests).


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