https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Bug ID: 1268360 Summary: Review Request: rubygem-simple_oauth - Simply builds and verifies OAuth headers Product: Fedora Version: rawhide Component: Package Review Severity: medium Priority: medium Assignee: nobody@fedoraproject.org Reporter: ilya.gradina@gmail.com QA Contact: extras-qa@fedoraproject.org CC: package-review@lists.fedoraproject.org
Spec URL: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple... SRPM URL: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple... Description: Simply builds and verifies OAuth headers. Fedora Account System Username: ilgrad
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Ilya Gradina ilya.gradina@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1268371
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1268371 [Bug 1268371] Review Request: rubygem-twitter-stream - Twitter realtime API client
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #1 from Upstream Release Monitoring upstream-release-monitoring@fedoraproject.org --- pvalena's scratch build of rubygem-simple_oauth-0.3.1-1.fc24.src.rpm for f24-candidate completed http://koji.fedoraproject.org/koji/taskinfo?taskID=11755585
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Pavel Valena pvalena@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |pvalena@redhat.com
--- Comment #2 from Pavel Valena pvalena@redhat.com --- Informal Package Review =======================
No issues found. I would approve this package.
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 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]: Spec file is legible and written in American English. [x]: Package is not known to require an ExcludeArch tag. [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: 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 %license. [x]: Package requires other packages for directories it uses. [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]: 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
Ruby: [x]: Platform dependent files must all go under %{gem_extdir_mri}, platform independent under %{gem_dir}. [x]: Gem package must not define a non-gem subpackage [x]: Macro %{gem_extdir} is deprecated. [x]: Gem package is named rubygem-%{gem_name} [x]: Package contains BuildRequires: rubygems-devel. [x]: Gem package must define %{gem_name} macro. [x]: Pure Ruby package must be built as noarch [x]: Package does not contain Requires: ruby(abi).
[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.
Generated by fedora-review 0.6.0 (3c5c9d7) last change: 2015-05-20 Command line :/usr/bin/fedora-review -r -n rubygem-simple_oauth-0.3.1-1.fc24.src.rpm Buildroot used: fedora-rawhide-x86_64 Active plugins: Generic, Ruby, Shell-api Disabled flags: EXARCH, DISTTAG, EPEL5, BATCH, EPEL6
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Igor Gnatenko i.gnatenko.brain@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |i.gnatenko.brain@gmail.com Assignee|nobody@fedoraproject.org |i.gnatenko.brain@gmail.com
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #3 from Upstream Release Monitoring upstream-release-monitoring@fedoraproject.org --- vondruch's scratch build of rubygem-simple_oauth-0.3.1-1.fc24.src.rpm for f24-candidate completed http://koji.fedoraproject.org/koji/taskinfo?taskID=11767425
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #4 from Vít Ondruch vondruch@redhat.com --- * Test suite - Although you try to execute the test suite, the result is:
Finished in 0.00018 seconds (files took 0.04478 seconds to load) 0 examples, 0 failures
i.e. you don't execute even single one. That is because the test suite is not included in the .gem file. - To include the test suite, please try to follow example [1, 2].
Please try to enable the test suite, otherwise the package looks good.
[1] http://pkgs.fedoraproject.org/cgit/rubygem-abrt.git/tree/rubygem-abrt.spec#n... [2] http://pkgs.fedoraproject.org/cgit/rubygem-abrt.git/tree/rubygem-abrt.spec#n...
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #5 from Ilya Gradina ilya.gradina@gmail.com --- Hi all, sorry for the long absence.
new SPEC: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple... new SRPM: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple...
- add tests - few small changes
tests: *********** 42 examples, 0 failures, 2 pending ***********
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Vít Ondruch vondruch@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |vondruch@redhat.com
--- Comment #6 from Vít Ondruch vondruch@redhat.com --- I would suggest to remove the coverage dependencies, i.e.
BuildRequires: rubygem(simplecov) BuildRequires: rubygem(coveralls)
We don't care about coverage, only upstream dose. You will need to do something like:
http://pkgs.fedoraproject.org/cgit/rpms/rubygem-multi_xml.git/tree/rubygem-m...
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #7 from Ilya Gradina ilya.gradina@gmail.com --- Hi Vit, Sorry for the long wait. New SPEC: https://raw.githubusercontent.com/ilgrad/fedora-packages/master/rubygems/rub... New SRPM: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple...
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Ilya Gradina ilya.gradina@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1267458
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1267458 [Bug 1267458] Review Request: rubygem-faraday_middleware - Various middleware for Faraday
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Igor Gnatenko ignatenko@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW Assignee|ignatenko@redhat.com |nobody@fedoraproject.org
--- Comment #8 from Igor Gnatenko ignatenko@redhat.com --- sorry, don't have time for this.
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Pavel Valena pvalena@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED CC| |ilya.gradina@gmail.com Assignee|nobody@fedoraproject.org |pvalena@redhat.com Flags| |needinfo?(ilya.gradina@gmai | |l.com)
--- Comment #9 from Pavel Valena pvalena@redhat.com --- I will review this.
For a a start:
Ilya, I am afraid you have not updated the spec file in srpm - please do and send me an update.
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Ilya Gradina ilya.gradina@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(ilya.gradina@gmai | |l.com) |
--- Comment #10 from Ilya Gradina ilya.gradina@gmail.com --- (In reply to Pavel Valena from comment #9)
I will review this.
For a a start:
Ilya, I am afraid you have not updated the spec file in srpm - please do and send me an update.
Hi Pavel,
thanks for the review of this package. Since not new version package, I send version new srpm:
srpm: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple... spec: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple...
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Ilya Gradina ilya.gradina@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |fedora-review?
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Ilya Gradina ilya.gradina@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(pvalena@redhat.co | |m)
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #11 from Ilya Gradina ilya.gradina@gmail.com --- ping?
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Pavel Valena pvalena@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(pvalena@redhat.co | |m) |
--- Comment #12 from Pavel Valena pvalena@redhat.com --- Sorry, I was a bit busy.
I'll review it now.
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #13 from Pavel Valena pvalena@redhat.com --- Package Review ==============
Please solve the following issues
==== Issues ==== - README.md and CONTRIBUTING.md should be in `doc` subpackage. - Release should be 1 (also remove changelog entries) - Move all `%exclude` macros to main package - Include Gemfile and Rakefile in `doc` subpackage - Add `ruby` BuildRequire to ensure MRI is used for tests. - Use Fedora 27 dist tag to create srpm - Remove rubygem(backports) BuildRequire, as it's intended for package to work with older version of ruby
===== MUST items ===== [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]: License file installed when any subpackage combination is installed. [x]: Package must own all directories that it creates. [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. [-]: 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]: 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. [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 %license. [x]: Package requires other packages for directories it uses. [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]: 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]: Large documentation must go in a -doc subpackage. Large could be size (~1MB) or number of files. [x]: Packages must not store files under /srv, /opt or /usr/local
===== SHOULD items ===== [x]: Avoid bundling fonts in non-fonts packages. [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]: Fully versioned dependency in subpackages if applicable. [ ]: 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. [x]: %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]: 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.
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #14 from Ilya Gradina ilya.gradina@gmail.com --- Thx, for review.
I have a few questions.
1. "Use Fedora 27 dist tag to create srpm" - Why can not I use 26?
2. "Add `ruby` BuildRequire to ensure MRI is used for tests." - What did you mean? "BuildRequires: ruby(release)" - already available.
3. "Move all `%exclude` macros to main package" - you meant all `%exclude` macros move to section %files
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #15 from Ilya Gradina ilya.gradina@gmail.com --- I updated spec and removed BuildRequires: rubygem(backports):
srpm: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple... spec: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple...
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #16 from Pavel Valena pvalena@redhat.com --- (In reply to Ilya Gradina from comment #14)
Thx, for review.
I have a few questions.
- "Use Fedora 27 dist tag to create srpm"
- Why can not I use 26?
Fedora 27 is current rawhide version. Previously 26 was correct, but now it's currently release so it's eligible for updates only AFAIK.
- "Add `ruby` BuildRequire to ensure MRI is used for tests."
- What did you mean? "BuildRequires: ruby(release)" - already available.
This could in some case pull 'jruby' instead of 'ruby' dependency, as both satisfy this require.
``` $ dnf repoquery -q --disablerepo='*' --qf "%{name}" --enablerepo='rawhide' --whatprovides 'ruby(release)' jruby ruby-libs ```
- "Move all `%exclude` macros to main package"
- you meant all `%exclude` macros move to section %files
Yes, that's correct. %files section without arg creates main package and '%files doc' creates the doc subpackage for this package.
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #17 from Pavel Valena pvalena@redhat.com --- These following issues are still valid.
==== Issues ====
- README.md and CONTRIBUTING.md should be in `doc` subpackage.
- Release should be 1 (also remove changelog entries)
- Move all `%exclude` macros to main package
- Include Gemfile and Rakefile in `doc` subpackage
- Add `ruby` BuildRequire to ensure MRI is used for tests.
- Use Fedora 27 dist tag to create srpm
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #18 from Vít Ondruch vondruch@redhat.com --- (In reply to Pavel Valena from comment #16)
(In reply to Ilya Gradina from comment #14)
Thx, for review.
I have a few questions.
- "Use Fedora 27 dist tag to create srpm"
- Why can not I use 26?
Fedora 27 is current rawhide version. Previously 26 was correct, but now it's currently release so it's eligible for updates only AFAIK.
The dist tag doesn't really matter, since the SRPM will be imported into dist-git at the end. What matters if the package builds/works in Rawhide, that is why it is good practice to attach link to the Koji scratch build to prove it.
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #19 from Pavel Valena pvalena@redhat.com --- (In reply to Vít Ondruch from comment #18)
The dist tag doesn't really matter, since the SRPM will be imported into dist-git at the end. What matters if the package builds/works in Rawhide, that is why it is good practice to attach link to the Koji scratch build to prove it.
True.
But I do my own scratch-builds and mock-builds for every review so I do not mind look at any attached anyway. From my POV it's good to know that packager builds and tests the package on Rawhide and not on F26.
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
--- Comment #20 from Ilya Gradina ilya.gradina@gmail.com --- Ok, thx.
new srpm: https://github.com/ilgrad/fedora-packages/raw/master/rubygems/rubygem-simple...
new spec: https://raw.githubusercontent.com/ilgrad/fedora-packages/master/rubygems/rub...
build in koji: https://koji.fedoraproject.org/koji/taskinfo?taskID=20585671
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Pavel Valena pvalena@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|fedora-review? |fedora-review+
--- Comment #21 from Pavel Valena pvalena@redhat.com --- Everything looks fine now, therefore
I APPROVE this package.
Thanks!
https://bugzilla.redhat.com/show_bug.cgi?id=1268360
Pavel Valena pvalena@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED
package-review@lists.fedoraproject.org