Bug 1126796 - Review Request: python-oslo-db - OpenStack oslo.db library
Summary: Review Request: python-oslo-db - OpenStack oslo.db library
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Kashyap Chamarthy
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-05 10:05 UTC by Alan Pevec
Modified: 2014-08-06 11:48 UTC (History)
3 users (show)

Fixed In Version: python-oslo-db-0.3.0-1.fc22
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-06 11:48:46 UTC
kchamart: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Alan Pevec 2014-08-05 10:05:51 UTC
Spec URL: https://apevec.fedorapeople.org/python-oslo-db.spec
SRPM URL: https://apevec.fedorapeople.org/python-oslo-db-0.3.0-2.fc22.src.rpm
Description: The OpenStack Oslo database handling library. Provides database connectivity to the different backends and helper utils.
Fedora Account System Username: apevec

Comment 1 Kashyap Chamarthy 2014-08-05 10:37:52 UTC
Review upcoming, meanwhile, successful koji scratch build result:

$ koji build --scratch rawhide python-oslo-db-0.3.0-2.fc22.src.rpm 
Uploading srpm: python-oslo-db-0.3.0-2.fc22.src.rpm
[====================================] 100% 00:00:01  80.96 KiB  42.84 KiB/sec
Created task: 7242795
Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=7242795
Watching tasks (this may be safely interrupted)...
7242795 build (rawhide, python-oslo-db-0.3.0-2.fc22.src.rpm): open (buildhw-04.phx2.fedoraproject.org)
  7242796 buildArch (python-oslo-db-0.3.0-2.fc22.src.rpm, noarch): open (arm04-builder08.arm.fedoraproject.org)
  7242796 buildArch (python-oslo-db-0.3.0-2.fc22.src.rpm, noarch): open (arm04-builder08.arm.fedoraproject.org) -> closed
  0 free  1 open  1 done  0 failed
7242795 build (rawhide, python-oslo-db-0.3.0-2.fc22.src.rpm): open (buildhw-04.phx2.fedoraproject.org) -> closed
  0 free  0 open  2 done  0 failed

7242795 build (rawhide, python-oslo-db-0.3.0-2.fc22.src.rpm) completed successfully

Comment 2 Kashyap Chamarthy 2014-08-05 10:44:50 UTC
[Manual review upcoming, fedora-review tool status here for the record.]


  $ fedora-review -m fedora-rawhide-x86_64 \
      --rpm-spec -n ~/rpmbuild/SRPMS/python-oslo-db-0.3.0-2.fc22.src.rpm

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

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



===== 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:
     "Apache (v2.0)", "Apache (v2.0) MIT/X11 (BSD like)", "Unknown or
     generated", "*No copyright* Apache (v2.0)". 1 files have unknown license.
     Detailed output of licensecheck in /home/kashyap/python-oslo-
     db/licensecheck.txt
[ ]: License file installed when any subpackage combination is installed.
[ ]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by: /usr/lib/python2.7/site-
     packages/oslo(python-oslo-messaging, python-oslo-config, python-oslo-
     i18n, python-oslo-rootwrap, python-oslo-sphinx)
[ ]: Package contains no bundled libraries without FPC exception.
[ ]: Changelog in prescribed format.
[ ]: 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
[ ]: 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 20480 bytes in 2 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 %doc.
[x]: Package requires other packages for directories it uses.
[x]: Package must own all directories that it creates.
[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.
[ ]: 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).
[ ]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in python-
     oslo-db-doc
[ ]: 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]: 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: There are rpmlint messages (see attachment).


Rpmlint
-------
Checking: python-oslo-db-0.3.0-2.fc22.noarch.rpm
          python-oslo-db-doc-0.3.0-2.fc22.noarch.rpm
          python-oslo-db-0.3.0-2.fc22.src.rpm
python-oslo-db.noarch: W: spelling-error %description -l en_US backends -> back ends, back-ends, backhands
python-oslo-db.noarch: W: spelling-error %description -l en_US utils -> tills
python-oslo-db-doc.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/python-oslo-db-doc/html/_static/jquery.js
python-oslo-db.src: W: spelling-error %description -l en_US backends -> back ends, back-ends, backhands
python-oslo-db.src: W: spelling-error %description -l en_US utils -> tills
3 packages and 0 specfiles checked; 0 errors, 5 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint python-oslo-db-doc python-oslo-db
python-oslo-db-doc.noarch: W: wrong-file-end-of-line-encoding /usr/share/doc/python-oslo-db-doc/html/_static/jquery.js
python-oslo-db.noarch: W: spelling-error %description -l en_US backends -> back ends, back-ends, backhands
python-oslo-db.noarch: W: spelling-error %description -l en_US utils -> tills
2 packages and 0 specfiles checked; 0 errors, 3 warnings.
# echo 'rpmlint-done:'



Requires
--------
python-oslo-db-doc (rpmlib, GLIBC filtered):

python-oslo-db (rpmlib, GLIBC filtered):
    python(abi)
    python-alembic
    python-babel
    python-iso8601
    python-migrate
    python-oslo-config
    python-sqlalchemy
    python-stevedore



Provides
--------
python-oslo-db-doc:
    python-oslo-db-doc

python-oslo-db:
    python-oslo-db



Source checksums
----------------
https://pypi.python.org/packages/source/o/oslo.db/oslo.db-0.3.0.tar.gz :
  CHECKSUM(SHA256) this package     : 6ffdb57913fd56579d55b4154526b1e2a61d728b4c29b4dd7c0b8272c1ac2e1c
  CHECKSUM(SHA256) upstream package : 6ffdb57913fd56579d55b4154526b1e2a61d728b4c29b4dd7c0b8272c1ac2e1c

Comment 3 Kashyap Chamarthy 2014-08-05 11:27:31 UTC
License Check info (from fedora-review tool)
-------------------

TL;DR notes: 

$ cat /home/kashyap/python-oslo-db/licensecheck.txt 

*No copyright* Apache (v2.0)
----------------------------
oslo.db-0.3.0/oslo/__init__.py
oslo.db-0.3.0/oslo/db/openstack/common/__init__.py
oslo.db-0.3.0/oslo/db/options.py
oslo.db-0.3.0/oslo/db/sqlalchemy/migration_cli/ext_alembic.py
oslo.db-0.3.0/oslo/db/sqlalchemy/migration_cli/ext_base.py
oslo.db-0.3.0/oslo/db/sqlalchemy/migration_cli/ext_migrate.py
oslo.db-0.3.0/oslo/db/sqlalchemy/migration_cli/manager.py
oslo.db-0.3.0/tests/sqlalchemy/test_migrate_cli.py
oslo.db-0.3.0/tests/sqlalchemy/test_options.py

Apache (v2.0)
-------------
oslo.db-0.3.0/doc/source/conf.py
oslo.db-0.3.0/oslo/db/api.py
oslo.db-0.3.0/oslo/db/concurrency.py
oslo.db-0.3.0/oslo/db/exception.py
oslo.db-0.3.0/oslo/db/openstack/common/fixture/config.py
oslo.db-0.3.0/oslo/db/openstack/common/fixture/moxstubout.py
oslo.db-0.3.0/oslo/db/openstack/common/gettextutils.py
oslo.db-0.3.0/oslo/db/openstack/common/importutils.py
oslo.db-0.3.0/oslo/db/openstack/common/timeutils.py
oslo.db-0.3.0/oslo/db/sqlalchemy/models.py
oslo.db-0.3.0/oslo/db/sqlalchemy/provision.py
oslo.db-0.3.0/oslo/db/sqlalchemy/session.py
oslo.db-0.3.0/oslo/db/sqlalchemy/test_base.py
oslo.db-0.3.0/oslo/db/sqlalchemy/test_migrations.py
oslo.db-0.3.0/oslo/db/sqlalchemy/utils.py
oslo.db-0.3.0/tests/base.py
oslo.db-0.3.0/tests/sqlalchemy/test_migration_common.py
oslo.db-0.3.0/tests/sqlalchemy/test_migrations.py
oslo.db-0.3.0/tests/sqlalchemy/test_models.py
oslo.db-0.3.0/tests/sqlalchemy/test_sqlalchemy.py
oslo.db-0.3.0/tests/sqlalchemy/test_utils.py
oslo.db-0.3.0/tests/test_api.py
oslo.db-0.3.0/tests/test_concurrency.py
oslo.db-0.3.0/tests/utils.py

Apache (v2.0) MIT/X11 (BSD like)
--------------------------------
oslo.db-0.3.0/oslo/db/sqlalchemy/migration.py

Unknown or generated
--------------------
oslo.db-0.3.0/setup.py

Comment 4 Alan Pevec 2014-08-05 11:49:29 UTC
> *No copyright* Apache (v2.0)

(C) notice is not required, everything is (C) by default
http://en.wikipedia.org/wiki/Copyright#Copyright_notices_in_the_United_States

> Apache (v2.0) MIT/X11 (BSD like)
> --------------------------------
> oslo.db-0.3.0/oslo/db/sqlalchemy/migration.py

MIT is permissive enough to allow relicensing only req is to keep the license notice which is satisfied here

> Unknown or generated
> --------------------
> oslo.db-0.3.0/setup.py

It is generated and it does include ASL 2.0 header.

Comment 5 Kashyap Chamarthy 2014-08-05 12:31:49 UTC
Manual Package Review
=====================

Summary: Looks good; approved.

Notes:

  1. License comments are addressed by Alan in comment #4
  2. rpmlint spelling mistakes can be ignored for technical terms
  3. %check -- Upstream doesn't provide tests yet. For now, we can proceed
     without it as it's not mandatory in Fedora guidelines



MUST items
----------

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

[x]:Package is licensed with an open-source compatible license and meets
     other legal requirements as defined in the legal section of Packaging
     Guidelines.
       - ASL 2.0 License
[x]: License field in the package spec file matches the actual license.
     Note: Checking patched sources after %prep for licenses. Licenses found:
     "Apache (v2.0)", "Apache (v2.0) MIT/X11 (BSD like)", "Unknown or
     generated", "*No copyright* Apache (v2.0)". 1 files have unknown license.
     Detailed output of licensecheck in /home/kashyap/python-oslo-
     db/licensecheck.txt
[-]: License file installed when any subpackage combination is installed.
      - No subpackages
[x]: Package does not own files or directories owned by other packages.
     Note: Dirs in package are owned also by: /usr/lib/python2.7/site-
     packages/oslo(python-oslo-messaging, python-oslo-config, python-oslo-
     i18n, python-oslo-rootwrap, python-oslo-sphinx)
[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.
[x ]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
       - -doc subpackage exists


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.
[x]: Final provides and requires are sane (see attachments).
[-]: Fully versioned dependency in subpackages if applicable.
     Note: No Requires: %{name}%{?_isa} = %{version}-%{release} in python-
     oslo-db-doc
[x]: 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.
[x]: Package should compile and build into binary rpms on all supported
     architectures.
[-]: %check is present and all tests pass.
       - Upstream does not provide tests yet.
[-]: Packages should try to preserve timestamps of original installed files.

Comment 6 Kashyap Chamarthy 2014-08-05 12:35:08 UTC
(In reply to Kashyap Chamarthy from comment #5)
> Manual Package Review
> =====================
> 
> Summary: Looks good; approved.
> 
> Notes:
> 
>   1. License comments are addressed by Alan in comment #4
>   2. rpmlint spelling mistakes can be ignored for technical terms
>   3. %check -- Upstream doesn't provide tests yet. For now, we can proceed
>      without it as it's not mandatory in Fedora guidelines

    4. Koji scratch build succeeded (refer comment #1)

Comment 7 Alan Pevec 2014-08-05 13:09:57 UTC
New Package SCM Request
=======================
Package Name: python-oslo-db
Short Description: OpenStack oslo.db library
Upstream URL: http://launchpad.net/oslo
Owners: apevec
Branches: 
InitialCC:

Comment 8 Gwyn Ciesla 2014-08-05 15:52:31 UTC
Git done (by process-git-requests).


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