Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: Review Request: rubygem-text-format - Text::Format formats fixed-width text nicely
https://bugzilla.redhat.com/show_bug.cgi?id=668823
Summary: Review Request: rubygem-text-format - Text::Format formats fixed-width text nicely Product: Fedora Version: rawhide Platform: All OS/Version: Linux Status: NEW Severity: medium Priority: medium Component: Package Review AssignedTo: nobody@fedoraproject.org ReportedBy: mmorsi@redhat.com QAContact: extras-qa@fedoraproject.org CC: notting@redhat.com, fedora-package-review@redhat.com Estimated Hours: 0.0 Classification: Fedora Target Release: ---
Spec URL: http://mo.morsi.org/files/rpms/rubygem-text-format.spec SRPM URL: http://mo.morsi.org/files/rpms/rubygem-text-format-1.0.0-1.fc14.src.rpm
Description: Text::Format is provides the ability to nicely format fixed-width text with knowledge of the writeable space (number of columns), margins, and indentation settings. Text::Format can work with either TeX::Hyphen or Text::Hyphen to hyphenate words when formatting.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
--- Comment #1 from Minnikhanov minnikhanov@gmail.com 2011-01-28 12:54:14 EST --- Some notes:
* License - Must be pick up one or set another by LICENSE file.
* BuildRoot - On Fedora BuildRoot line is no longer needed: https://fedoraproject.org/wiki/Packaging/Guidelines#BuildRoot_tag
* %install - rm -rf %{buildroot} at the beginning of %install isn't needed and should be removed - Gems have permission 664, need 'chmod 644'
* %check - Feel free run test suite in a %check section in the rpm
* %clean - %clean section is no longer needed (on Fedora): https://fedoraproject.org/wiki/Packaging/Guidelines#.25clean
* %files - Should use only the defined %geminstdir macro in %files.
* documents / -doc subpackage - Please consider to split document files (which are not needed on runtime) to -doc subpackage. The following files/directories can be moved to -doc subpackage ------------------------------------------------------ %{gemdir}/doc/%{gemname}-%{version}/ %{geminstdir}/Changelog %{geminstdir}/tests/ %{geminstdir}/Rakefile ------------------------------------------------------
* rpmbuild log: ------------------------------------------------------ ... + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/lib/rpm/redhat/brp-java-repack-jars warning: File listed twice: /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/Changelog warning: File listed twice: /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/Install warning: File listed twice: /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/README + umask 022 + cd /home/pkg/rpmbuild/BUILD + rm -rf /home/pkg/rpmbuild/BUILDROOT/rubygem-text-format-1.0.0-1.fc14.x86_64 + exit 0 ------------------------------------------------------
* rpmlint log: ------------------------------------------------------ rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Number/%5b%5d-i.yaml %5b rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Number/%5b%5d-i.yaml %5d rubygem-text-format.noarch: E: zero-length /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/metaconfig rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Alpha/%5b%5d-i.yaml %5b rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Alpha/%5b%5d-i.yaml %5d rubygem-text-format.noarch: W: hidden-file-or-dir /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc rubygem-text-format.noarch: W: hidden-file-or-dir /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/right_align%3f-i.yaml %3f rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Roman/%5b%5d-i.yaml %5b rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Roman/%5b%5d-i.yaml %5d rubygem-text-format.noarch: E: non-executable-script /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/Rakefile 0644L /usr/bin/env rubygem-text-format.noarch: E: wrong-script-end-of-line-encoding /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/Rakefile rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/%3d%3d-i.yaml %3d rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/%3d%3d-i.yaml %3d rubygem-text-format.noarch: W: file-not-utf8 /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/README rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/justify%3f-i.yaml %3f rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/right_fill%3f-i.yaml %3f rubygem-text-format.noarch: E: non-executable-script /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/tests/testall.rb 0644L /usr/bin/env rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/left_align%3f-i.yaml %3f 2 packages and 1 specfiles checked; 4 errors, 15 warnings. ------------------------------------------------------
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
--- Comment #2 from Mohammed Morsi mmorsi@redhat.com 2011-02-01 18:39:14 EST --- Thanks alot for the review. Updated the rpm based on feedback:
Spec URL: http://mo.morsi.org/files/rpms/rubygem-text-format.spec SRPM URL: http://mo.morsi.org/files/rpms/rubygem-text-format-1.0.0-2.fc14.src.rpm
Koji: http://koji.fedoraproject.org/koji/taskinfo?taskID=2755537
If your taking this official review, please change the status of the bug to 'assigned', assign it to yourself, and change the 'fedora-review' flag to '?'
(In reply to comment #1)
Some notes:
- License
- Must be pick up one or set another by LICENSE file.
Done
- BuildRoot
- On Fedora BuildRoot line is no longer needed:
https://fedoraproject.org/wiki/Packaging/Guidelines#BuildRoot_tag
Done
- %install
- rm -rf %{buildroot} at the beginning of %install isn't needed and
should be removed
Done
- Gems have permission 664, need 'chmod 644'
Please elaborate on this. Which files are wrong?
- %check
- Feel free run test suite in a %check section in the rpm
Done. I decoupled this rpm from text-hyphen as it is not a runtime dependency and incase there are issues w/ text-hyphen. Thus I only run the test suite testing the main functionality of this gem, not the one testing it against text-hyphen or other external components.
- %clean
- %clean section is no longer needed (on Fedora):
https://fedoraproject.org/wiki/Packaging/Guidelines#.25clean
Done
- %files
- Should use only the defined %geminstdir macro in %files.
Done
- documents / -doc subpackage
- Please consider to split document files (which are not
needed on runtime) to -doc subpackage. The following files/directories can be moved to -doc subpackage
%{gemdir}/doc/%{gemname}-%{version}/ %{geminstdir}/Changelog %{geminstdir}/tests/ %{geminstdir}/Rakefile
Since the original gem included these files, and there aren't too many of them, will leave them in the main package. The files are marked as %doc though
- rpmbuild log:
...
- /usr/lib/rpm/redhat/brp-python-hardlink
- /usr/lib/rpm/redhat/brp-java-repack-jars
warning: File listed twice: /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/Changelog warning: File listed twice: /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/Install warning: File listed twice: /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/README
- umask 022
- cd /home/pkg/rpmbuild/BUILD
- rm
-rf /home/pkg/rpmbuild/BUILDROOT/rubygem-text-format-1.0.0-1.fc14.x86_64
- exit 0
Fixed
- rpmlint log:
rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Number/%5b%5d-i.yaml %5b rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Number/%5b%5d-i.yaml %5d rubygem-text-format.noarch: E: zero-length /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/metaconfig rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Alpha/%5b%5d-i.yaml %5b rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Alpha/%5b%5d-i.yaml %5d
These can be ignored.
rubygem-text-format.noarch: W: hidden-file-or-dir /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc rubygem-text-format.noarch: W: hidden-file-or-dir /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc
Not seeing these.
rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/right_align%3f-i.yaml %3f rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Roman/%5b%5d-i.yaml %5b rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/Roman/%5b%5d-i.yaml %5d rubygem-text-format.noarch: E: non-executable-script /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/Rakefile 0644L /usr/bin/env rubygem-text-format.noarch: E: wrong-script-end-of-line-encoding
Fixed
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/Rakefile rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/%3d%3d-i.yaml %3d rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/%3d%3d-i.yaml %3d rubygem-text-format.noarch: W: file-not-utf8 /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/README rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/justify%3f-i.yaml %3f rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/right_fill%3f-i.yaml %3f rubygem-text-format.noarch: E: non-executable-script /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/tests/testall.rb 0644L
Again not seeing some of these. Which rpmlint version are you using. I'm using 0.99, the stock version on F14.
/usr/bin/env rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/left_align%3f-i.yaml %3f 2 packages and 1 specfiles checked; 4 errors, 15 warnings.
Appreciate the feedback.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
--- Comment #3 from Minnikhanov minnikhanov@gmail.com 2011-02-02 12:18:18 EST --- (In reply to comment #2)
%3f rubygem-text-format.noarch: E: non-executable-script /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/tests/testall.rb 0644L
Again not seeing some of these. Which rpmlint version are you using. I'm using 0.99, the stock version on F14.
[pkg@lhost ~]$ rpmlint -V rpmlint version 1.0 Copyright (C) 1999-2007 Frederic Lepied, Mandriva [pkg@lhost ~]$ uname -r 2.6.35.10-74.fc14.x86_64 [pkg@lhost ~]$ uname -a Linux lhost.ldomain 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
--- Comment #4 from Minnikhanov minnikhanov@gmail.com 2011-02-02 13:53:12 EST --- Looks good. May be approved with some notes.
(In reply to comment #2) -------------------------------------------------------------------------------
- Gems have permission 664, need 'chmod 644'
Please elaborate on this. Which files are wrong?
I extract 'text-format-1.0.0.gem' from src.rpm at my box, it have permission 664.
My box: [pkg@lhost ~]$ rpmlint -V rpmlint version 1.0 Copyright (C) 1999-2007 Frederic Lepied, Mandriva
[pkg@lhost ~]$ uname -r 2.6.35.10-74.fc14.x86_64
[pkg@lhost ~]$ uname -a Linux lhost.ldomain 2.6.35.10-74.fc14.x86_64 #1 SMP Thu Dec 23 16:04:50 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
[pkg@lhost updt]$ rpmbuild --version RPM version 4.8.1
------------------------------------------------------------------------------- At my box 'rpmbuild' FAILED. error log:
... error: Installed (but unpackaged) file(s) found: /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/checksums
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format.dat
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format/ABBREV.dat
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format/Alpha.dat
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format/Alpha/_5B_5D_i.dat
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format/Alpha/initialize_i.dat
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format/JUSTIFY.dat
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format/LEFT_ALIGN.dat
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format/NEWLINE.dat ... <<< -------------------------------------------------------------------------------
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
Minnikhanov minnikhanov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|nobody@fedoraproject.org |minnikhanov@gmail.com Flag| |fedora-review?
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
--- Comment #5 from Minnikhanov minnikhanov@gmail.com 2011-02-02 14:11:48 EST --- Created attachment 476635 --> https://bugzilla.redhat.com/attachment.cgi?id=476635 rpmlint log for rubygem-text-format.
At my box I add into %files %doc %{geminstdir}/.yardoc
This is log of rpmlint srpm.
At my packages I removed this folder (.yardoc)
Minn.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
--- Comment #6 from Mohammed Morsi mmorsi@redhat.com 2011-02-02 15:43:59 EST --- Alright to start off:
[mmorsi@localhost ~]$ rpmlint -V rpmlint version 1.0 Copyright (C) 1999-2007 Frederic Lepied, Mandriva [mmorsi@localhost ~]$ uname -a Linux localhost.localdomain 2.6.35.4-28.fc14.x86_64 #1 SMP Wed Sep 15 01:56:54 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux [mmorsi@localhost ~]$ rpmbuild --version RPM version 4.8.1
Update SPEC: http://mo.morsi.org/files/rpms/rubygem-text-format.spec Updated SRPM: http://mo.morsi.org/files/rpms/rubygem-text-format-1.0.0-3.fc14.src.rpm Koji Build: http://koji.fedoraproject.org/koji/taskinfo?taskID=2758277
- Gems have permission 664, need 'chmod 644'
Please elaborate on this. Which files are wrong?
I extract 'text-format-1.0.0.gem' from src.rpm at my box, it have permission 664.
Done. Thank you
rubygem-text-format.noarch: W: file-not-utf8 /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/README
Fixed.
At my box 'rpmbuild' FAILED. error log:
... error: Installed (but unpackaged) file(s) found: /usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/checksums
/usr/lib/ruby/gems/1.8/gems/text-format-1.0.0/.yardoc/objects/Text/Format.dat
<snip>
The Koji build doesn't have any of these errors. Do you have gems installed on your system that you installed via 'gem' and not 'rpm' (perhaps an updated version of yard)
The rpmlint output when run against the RPMs built in Koji is as follows:
$ rpmlint *.rpm rubygem-text-format.noarch: I: enchant-dictionary-not-found en_US rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/%3d%3d-i.yaml %3d rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/%3d%3d-i.yaml %3d rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/right_align%3f-i.yaml %3f rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/justify%3f-i.yaml %3f rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/right_fill%3f-i.yaml %3f rubygem-text-format.noarch: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/text-format-1.0.0/ri/Text/Format/left_align%3f-i.yaml %3f 2 packages and 0 specfiles checked; 0 errors, 6 warnings.
All of which can be ignored
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
--- Comment #7 from Minnikhanov minnikhanov@gmail.com 2011-02-03 13:02:11 EST --- Looks good.
--------------------------------------------------------- This package (rubygem-text-format) is APPROVED by minn ---------------------------------------------------------
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
Minnikhanov minnikhanov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flag|fedora-review? |fedora-review+
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
Mohammed Morsi mmorsi@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Flag| |fedora-cvs?
--- Comment #8 from Mohammed Morsi mmorsi@redhat.com 2011-02-03 13:12:13 EST --- Thanks alot for the review
New Package SCM Request ======================= Package Name: rubygem-text-format Short Description: Text::Format formats fixed-width text nicely Owners: mmorsi Branches: InitialCC:
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
--- Comment #9 from Kevin Fenzi kevin@tummy.com 2011-02-03 15:43:38 EST --- Git done (by process-git-requests).
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=668823
Mohammed Morsi mmorsi@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |RAWHIDE Last Closed| |2011-02-04 12:03:37
--- Comment #10 from Mohammed Morsi mmorsi@redhat.com 2011-02-04 12:03:37 EST --- Pushed to rawhide. Closing.
package-review@lists.fedoraproject.org