Bug 1535292 - Review Request: vagrant-openstack-provider - Vagrant plugin for OpenStack provider
Summary: Review Request: vagrant-openstack-provider - Vagrant plugin for OpenStack pro...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1535291
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-17 04:13 UTC by greg.hellings
Modified: 2018-02-14 17:28 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-14 17:28:47 UTC
Type: ---
Embargoed:
zebob.m: fedora-review+


Attachments (Terms of Use)

Description greg.hellings 2018-01-17 04:13:13 UTC
Spec URL: https://fedorapeople.org/~greghellings/vagrant-openstack-provider/vagrant-openstack-provider.spec
SRPM URL: https://fedorapeople.org/~greghellings/vagrant-openstack-provider/vagrant-openstack-provider-0.11.0-1.fc27.src.rpm
Description: A Vagrant plugin that adds a provider for provisioning
guest systems in an OpenStack cloud
Fedora Account System Username: greghellings

Comment 1 Robert-André Mauchin 🐧 2018-01-17 12:20:50 UTC
 - License files should be included with the %license macro, not doc:

%doc CHANGELOG.md
%license LICENSE
%dir %{vagrant_plugin_instdir}
%license %{vagrant_plugin_instdir}/LICENSE

Also in this case, the second license file will overwrite the first one since they have the same name, if they are different, please rename the second one to avoid this. IMHO they're the same and you should just include %license %{vagrant_plugin_instdir}/LICENSE

 - Group: is not needed in Fedora. See: https://fedoraproject.org/wiki/Packaging:Guidelines#Tags_and_Sections

 - Please add a comment explaining what the patch does/why it is needed

 - This script should probably be executable:

vagrant-openstack-provider-doc.noarch: E: non-executable-script /usr/share/vagrant/gems/gems/vagrant-openstack-provider-0.11.0/stackrc 644 /bin/bash 



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

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


===== 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: There is no build directory. Running licensecheck on vanilla
     upstream sources. No licenses found. Please check the source files for
     licenses manually.
[x]: License file installed when any subpackage combination is installed.
[-]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/vagrant/gems/doc,
     /usr/share/vagrant/gems, /usr/share/vagrant
[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 20480 bytes in 2 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]: Rpmlint is run on all rpms the build produces.
     Note: There are rpmlint messages (see attachment).
[x]: Package requires other packages for directories it uses.
[x]: Package does not own files or directories owned by other packages.
[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]: 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]: 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

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

Generic:
[-]: Avoid bundling fonts in non-fonts packages.
     Note: Package contains font files
[-]: 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).
[?]: Package functions as described.
[x]: Latest version is packaged.
[x]: Package does not include license text files separate from upstream.
[!]: Patches link to upstream bugs/comments/lists or are otherwise
     justified.
[-]: 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]: 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]: Fully versioned dependency in subpackages if applicable.
[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.
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: vagrant-openstack-provider-0.11.0-1.fc28.noarch.rpm
          vagrant-openstack-provider-doc-0.11.0-1.fc28.noarch.rpm
          vagrant-openstack-provider-0.11.0-1.fc28.src.rpm
vagrant-openstack-provider-doc.noarch: E: non-executable-script /usr/share/vagrant/gems/gems/vagrant-openstack-provider-0.11.0/stackrc 644 /bin/bash 
vagrant-openstack-provider.src:59: W: mixed-use-of-spaces-and-tabs (spaces: line 59, tab: line 3)
3 packages and 0 specfiles checked; 1 errors, 1 warnings.

Comment 2 greg.hellings 2018-01-19 05:51:41 UTC
I have addressed all of your comments in the code save one. I'll address it here:

I do not believe that stackrc is supposed to be executable. It's designed to be sourced into the current environment, not to be executed as a standalone script. I believe the shebang line at the top is intended to give syntax highlighting in vim and similar situations. It's presented as a doc file, so I don't believe it will be important either way. I'll be happy to make it executable if that's preferred or edit out the shebang line if you agree it should be left with 0644 permissions. Either one should resolve the lint error.

Once we have an agreement I'll post the updated SRPM file.

Comment 3 Robert-André Mauchin 🐧 2018-01-19 10:04:31 UTC
It's okay for me, please proceed with the update SPEC file.

Comment 5 Robert-André Mauchin 🐧 2018-02-02 16:22:37 UTC
Ok, package is approved.

Comment 6 greg.hellings 2018-02-02 16:26:31 UTC
Thanks for the review. I offered to swap reviews on the devel list, but I didn't catch any replies from you. I'm happy to return the favor if you need.

Comment 7 Gwyn Ciesla 2018-02-02 16:34:33 UTC
(fedrepo-req-admin):  The Pagure repository was created at https://src.fedoraproject.org/rpms/vagrant-openstack-provider

Comment 8 Fedora Update System 2018-02-02 18:05:48 UTC
vagrant-openstack-provider-0.11.0-2.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-16e56293b6

Comment 9 Fedora Update System 2018-02-04 20:17:35 UTC
vagrant-openstack-provider-0.11.0-2.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-16e56293b6

Comment 10 Fedora Update System 2018-02-14 17:28:47 UTC
vagrant-openstack-provider-0.11.0-2.fc27 has been pushed to the Fedora 27 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.