Bug 1062396 - Review Request: rubygem-mizuho - Mizuho documentation formatting tool
Summary: Review Request: rubygem-mizuho - Mizuho documentation formatting tool
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jan Kaluža
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-06 19:42 UTC by Troy Dawson
Modified: 2014-03-15 15:10 UTC (History)
3 users (show)

Fixed In Version: rubygem-mizuho-0.9.20-3.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-03-15 15:10:10 UTC
Type: ---
Embargoed:
jkaluza: fedora-review+
gwync: fedora-cvs+


Attachments (Terms of Use)

Description Troy Dawson 2014-02-06 19:42:16 UTC
Spec URL: http://tdawson.fedorapeople.org/rubygems/rubygem-mizuho.spec
SRPM URL: http://tdawson.fedorapeople.org/rubygems/rubygem-mizuho-0.9.20-1.fc20.src.rpm
Description:
A documentation formatting tool. Mizuho converts Asciidoc input files into
nicely outputted HTML, possibly one file per chapter. Multiple templates are
supported, so you can write your own.
Fedora Account System Username: tdawson

Comment 1 Troy Dawson 2014-02-06 19:48:02 UTC
RPMLINT OUTPUT:
$ rpmlint rubygem-mizuho.spec rubygem-mizuho-0.9.20-1.fc20.src.rpm rubygem-mizuho-0.9.20-1.fc20.noarch.rpm rubygem-mizuho-doc-0.9.20-1.fc20.noarch.rpm
rubygem-mizuho.noarch: E: incorrect-fsf-address /usr/share/gems/gems/mizuho-0.9.20/asciidoc/COPYRIGHT
rubygem-mizuho.noarch: E: incorrect-fsf-address /usr/share/gems/gems/mizuho-0.9.20/asciidoc/COPYING
rubygem-mizuho.noarch: W: no-manual-page-for-binary mizuho-asciidoc
rubygem-mizuho.noarch: W: no-manual-page-for-binary mizuho
3 packages and 1 specfiles checked; 2 errors, 2 warnings.

I have followed the Fedora recommended steps for the incorrect-fsf-address[0] and have contacted the vendor to fix the problem.[1]

[0] https://fedoraproject.org/wiki/Common_Rpmlint_issues#incorrect-fsf-address
[1] https://github.com/FooBarWidget/mizuho/issues/7

Comment 2 Jan Kaluža 2014-02-19 09:36:32 UTC
The only problem I see there is that mizuho bundles asciidoc, but that's easy to fix! :)

1. do not package %{gem_instdir}/asciidoc
2. put "asciidoc" into requires
3. Use equivalent of this sed used in debian:

sed -i 's/NATIVELY_PACKAGED = .*/NATIVELY_PACKAGED = true/' debian/mizuho/usr/lib/ruby/vendor_ruby/mizuho.rb

It changes NATIVELY_PACKAGED from false to true in mizuho.rb, so mizuho-asciidoc will use /usr/bin/asciidoc instead of bundled version.

Comment 3 Troy Dawson 2014-02-19 22:42:28 UTC
Spec URL: http://tdawson.fedorapeople.org/rubygems/rubygem-mizuho.spec
SRPM URL: http://tdawson.fedorapeople.org/rubygems/rubygem-mizuho-0.9.20-2.fc20.src.rpm

Good catch.
- I have removed %{gem_instdir}/asciidoc
- I have put asciidoc into requires
- I changed NATIVELY_PACKAGED from false to true via sed.
- I fixedup the gemspec to remove %{gem_instdir}/asciidoc, via sed.

I think we're all set.

Comment 4 Jan Kaluža 2014-02-27 09:07:36 UTC
Looks OK to me.

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

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


Issues:
=======
- gems should require rubygems package
  Note: Requires: rubygems missing in rubygem-mizuho-doc
  See: http://fedoraproject.org/wiki/Packaging:Ruby#RubyGems

^ This is OK

- 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.
  Note: Cannot find COPYING in rpm(s)
  See:
  http://fedoraproject.org/wiki/Packaging/LicensingGuidelines#License_Text

^ This is OK

===== 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:
     "MIT/X11 (BSD like)", "Apache (v2.0)", "Unknown or generated". 24 files
     have unknown license. Detailed output of licensecheck in
     /home/hanzz/1062396-rubygem-mizuho/licensecheck.txt
[x]: License file installed when any subpackage combination is installed.
[x]: Package must own all directories that it creates.
     Note: Directories without known owners: /usr/share/gems,
     /usr/share/gems/doc
[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]: 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]: 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]: 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]: Large documentation must go in a -doc subpackage. Large could be size
     (~1MB) or number of files.
     Note: Documentation size is 0 bytes in 0 files.
[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]: Package contains Requires: ruby(release).

===== 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).
[ ]: 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]: Fully versioned dependency in subpackages if applicable.
[x]: SourceX is a working URL.
[x]: Spec use %global instead of %define unless justified.

Ruby:
[ ]: Specfile should use macros from rubygem-devel package.
     Note: The specfile doesn't use these macros:
     /usr/share/gems/specifications/mizuho-0.9.20.gemspec, %exclude
     /usr/share/gems/cache/mizuho-0.9.20.gem
[x]: Gem package should exclude cached Gem.
[x]: Gem should use %gem_install macro.
[x]: Test suite of the library should be run.

===== EXTRA items =====

Generic:
[x]: Rpmlint is run on all installed packages.
     Note: There are rpmlint messages (see attachment).
[x]: Spec file according to URL is the same as in SRPM.


Rpmlint
-------
Checking: rubygem-mizuho-0.9.20-1.fc20.noarch.rpm
          rubygem-mizuho-doc-0.9.20-1.fc20.noarch.rpm
          rubygem-mizuho-0.9.20-1.fc20.src.rpm
rubygem-mizuho.noarch: E: incorrect-fsf-address /usr/share/gems/gems/mizuho-0.9.20/asciidoc/COPYRIGHT
rubygem-mizuho.noarch: E: incorrect-fsf-address /usr/share/gems/gems/mizuho-0.9.20/asciidoc/COPYING
rubygem-mizuho.noarch: W: no-manual-page-for-binary mizuho-asciidoc
rubygem-mizuho.noarch: W: no-manual-page-for-binary mizuho
3 packages and 0 specfiles checked; 2 errors, 2 warnings.




Rpmlint (installed packages)
----------------------------
# rpmlint rubygem-mizuho rubygem-mizuho-doc
rubygem-mizuho.noarch: E: incorrect-fsf-address /usr/share/gems/gems/mizuho-0.9.20/asciidoc/COPYRIGHT
rubygem-mizuho.noarch: E: incorrect-fsf-address /usr/share/gems/gems/mizuho-0.9.20/asciidoc/COPYING
rubygem-mizuho.noarch: W: no-manual-page-for-binary mizuho-asciidoc
rubygem-mizuho.noarch: W: no-manual-page-for-binary mizuho
2 packages and 0 specfiles checked; 2 errors, 2 warnings.
# echo 'rpmlint-done:'

Comment 5 Troy Dawson 2014-02-27 15:47:01 UTC
New Package SCM Request
=======================
Package Name: rubygem-mizuho
Short Description: Mizuho documentation formatting tool
Owners: tdawson
Branches: f19 f20 el6 epel7
InitialCC:

Comment 6 Gwyn Ciesla 2014-02-27 16:34:52 UTC
Git done (by process-git-requests).

Comment 7 Fedora Update System 2014-02-27 20:40:49 UTC
rubygem-mizuho-0.9.20-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/rubygem-mizuho-0.9.20-2.fc20

Comment 8 Fedora Update System 2014-03-01 14:03:33 UTC
rubygem-mizuho-0.9.20-2.fc20 has been pushed to the Fedora 20 testing repository.

Comment 9 Fedora Update System 2014-03-05 22:38:11 UTC
rubygem-mizuho-0.9.20-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/rubygem-mizuho-0.9.20-3.fc20

Comment 10 Fedora Update System 2014-03-15 15:10:10 UTC
rubygem-mizuho-0.9.20-3.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.