Bug 1085132 - Review Request: python-django-sahara - Sahara plugin for OpenStack dashboard
Summary: Review Request: python-django-sahara - Sahara plugin for OpenStack dashboard
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Will Benton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-07 22:39 UTC by Michael McCune
Modified: 2014-09-26 09:04 UTC (History)
5 users (show)

Fixed In Version: python-django-sahara-2014.1.0-2.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-26 09:04:22 UTC
Type: ---
Embargoed:
willb: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)
spec file (1.82 KB, text/x-rpm-spec)
2014-04-10 14:12 UTC, Michael McCune
no flags Details
updated spec file (1.91 KB, text/x-rpm-spec)
2014-04-10 14:16 UTC, Michael McCune
no flags Details
updated source rpm (90.84 KB, application/x-redhat-package-manager)
2014-04-10 14:16 UTC, Michael McCune
no flags Details

Description Michael McCune 2014-04-07 22:39:19 UTC
Spec URL: https://github.com/elmiko/fedorapkg_python-django-sahara/raw/master/python-django-sahara.spec
SRPM URL: https://github.com/elmiko/fedorapkg_python-django-sahara/raw/master/python-django-sahara-2014.1.rc1-1.fc20.src.rpm
Description: Sahara plugin for OpenStack dashboard
Fedora Account System Username: mimccune

This review request is for a version upgrade and a rename of the package python-django-savanna.

$ rpmlint -v -i python-django-sahara.spec ../SRPMS/python-django-sahara-2014.1.rc1-1.fc20.src.rpm ../RPMS/noarch/python-
django-sahara-2014.1.rc1-1.fc20.noarch.rpm 
python-django-sahara.spec: I: checking-url http://tarballs.openstack.org/sahara-dashboard/sahara-dashboard-2014.1.rc1.ta
r.gz (timeout 10 seconds)
python-django-sahara.src: I: checking
python-django-sahara.src: I: checking-url https://launchpad.net/sahara (timeout 10 seconds)
python-django-sahara.src: I: checking-url http://tarballs.openstack.org/sahara-dashboard/sahara-dashboard-2014.1.rc1.tar
.gz (timeout 10 seconds)
python-django-sahara.noarch: I: checking
python-django-sahara.noarch: I: checking-url https://launchpad.net/sahara (timeout 10 seconds)
2 packages and 1 specfiles checked; 0 errors, 0 warnings.

No koji builds are supplied as the installation depends on the renamed package python-saharaclient which has not been updated as of the time of this request.

Comment 1 Matthias Runge 2014-04-08 08:18:30 UTC
You should put a "enabled" file to /usr/share/openstack-dashboard/enabled
comparable to 

https://github.com/openstack/horizon/blob/master/openstack_dashboard/enabled/_20_admin.py


That would load and enable sahara directly in horizon (after httpd restart)

Comment 2 Michael McCune 2014-04-08 14:56:01 UTC
Matthias, thanks for the suggestion. I have added a blueprint to the upstream project for the inclusion of an enable file.

Comment 3 Michael McCune 2014-04-10 14:12:50 UTC
Created attachment 884968 [details]
spec file

Comment 4 Michael McCune 2014-04-10 14:16:00 UTC
Created attachment 884969 [details]
updated spec file

changing __python to __python2
adding a note about testing

Comment 5 Michael McCune 2014-04-10 14:16:26 UTC
Created attachment 884970 [details]
updated source rpm

rebuilding after spec update

Comment 6 Matthias Runge 2014-04-11 06:46:43 UTC
Please put the spec and the srpm to a public available place, ready to be fetched via wget. That does't work with attachments in bugzilla. 

(background: one can easily use fedora-package-review -b 1085132 ) to fetch the 
last spec and srpm defined by lines like:

SPEC: URL
SRPM: URL

Thanks.

Comment 7 Michael McCune 2014-04-11 13:20:00 UTC
I've been keeping the urls in my original post up to date and they should work with wget. Should I be reposting the updated links when I make changes?

here they are again, just in case

SPEC: https://github.com/elmiko/fedorapkg_python-django-sahara/raw/master/python-django-sahara.spec
SRPM: https://github.com/elmiko/fedorapkg_python-django-sahara/raw/master/python-django-sahara-2014.1.rc1-1.fc20.src.rpm

thanks for the help

Comment 8 Will Benton 2014-04-17 20:17:40 UTC
Thanks, Mike.  Just a couple of issues with this one.

- Package doesn't currently install directly in mock because its dependencies are new to rawhide.  This is OK; I was able to install and rpmlint manually.
- I believe you need to bump the release in your obsoletes comparison.
- The absence of tests is OK, but please remove %check within a comment to mollify rpmlint.

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.
[x]: 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.
[x]: Package contains desktop file if it is a GUI application.
[x]: 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.
     
* use "<= 2014.1.b3-3" to account for %{dist} expansion

[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.
[!]: Package complies to the Packaging Guidelines

* except as noted elsewhere

[x]: Package successfully compiles and builds into binary rpms on at least one
     supported primary architecture.
[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]: 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:
[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]: 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.
[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.
[x]: %check is present and all tests pass.

* absence justified

[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.

* please comment out the body of the %check block rather than %check itself in order to mollify rpmlint
   
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: python-django-sahara-2014.1.rc1-1.fc21.noarch.rpm
          python-django-sahara-2014.1.rc1-1.fc21.src.rpm
python-django-sahara.src:39: W: macro-in-comment %check
2 packages and 0 specfiles checked; 0 errors, 1 warnings.

<mock-chroot>[root@willb-lenovo /]# rpmlint python-django-sahara-2014.1.rc1-1.fc20.src.rpm 
python-django-sahara.src:39: W: macro-in-comment %check
1 packages and 0 specfiles checked; 0 errors, 1 warnings.
<mock-chroot>[root@willb-lenovo /]# rpmlint python-django-sahara
1 packages and 0 specfiles checked; 0 errors, 0 warnings.
<mock-chroot>[root@willb-lenovo /]# rpmlint /builddir/build/RPMS/python-django-sahara-2014.1.rc1-1.fc21.noarch.rpm
1 packages and 0 specfiles checked; 0 errors, 0 warnings.


Requires
--------
python-django-sahara (rpmlib, GLIBC filtered):
    python(abi)
    python-django-horizon
    python-saharaclient



Provides
--------
python-django-sahara:
    django-sahara
    python-django-sahara
    python-django-savanna



Source checksums
----------------
http://tarballs.openstack.org/sahara-dashboard/sahara-dashboard-2014.1.rc1.tar.gz :
  CHECKSUM(SHA256) this package     : 1f5245718da52444b11cd9e02c2dee0eef0fe8395dd5f84a7166f47be282adeb
  CHECKSUM(SHA256) upstream package : 1f5245718da52444b11cd9e02c2dee0eef0fe8395dd5f84a7166f47be282adeb


Generated by fedora-review 0.5.1 (bb9bf27) last change: 2013-12-13
Command line :/usr/bin/fedora-review -m fedora-rawhide-x86_64 -b 1085132
Buildroot used: fedora-rawhide-x86_64
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

Comment 9 Michael McCune 2014-04-17 20:44:43 UTC
* bumped obsoletes version
* uncommented %check to quiet rpmlint

Comment 10 Michael McCune 2014-04-17 20:45:28 UTC
SPEC/SRPM urls updated

Comment 11 Will Benton 2014-04-17 20:53:47 UTC
Thanks for making the changes.  Everything looks good here now and builds in koji:

  http://koji.fedoraproject.org/koji/taskinfo?taskID=6751038

Review granted.

Comment 12 Michael McCune 2014-04-17 22:01:56 UTC
New Package SCM Request
=======================
Package Name: python-django-sahara
Short Description: Sahara plugin for OpenStack dashboard
Owners: mimccune
Branches: f20 el6 epel7
InitialCC: willb

Comment 13 Gwyn Ciesla 2014-04-18 11:49:51 UTC
Git done (by process-git-requests).

Comment 14 Fedora Update System 2014-04-21 13:56:44 UTC
python-django-sahara-2014.1.rc1-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-django-sahara-2014.1.rc1-1.fc20

Comment 15 Fedora Update System 2014-04-22 03:57:22 UTC
python-django-sahara-2014.1.rc1-1.fc20 has been pushed to the Fedora 20 testing repository.

Comment 16 Fedora Update System 2014-04-22 20:58:48 UTC
python-django-sahara-2014.1.0-1.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-django-sahara-2014.1.0-1.fc20

Comment 17 Fedora Update System 2014-05-02 21:52:24 UTC
python-django-sahara-2014.1.0-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/python-django-sahara-2014.1.0-2.fc20

Comment 18 Fedora Update System 2014-09-26 09:04:22 UTC
python-django-sahara-2014.1.0-2.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.


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