Bug 708934
Summary: | Review Request: rubygem-pg - A Ruby interface to the PostgreSQL RDBMS | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> |
Component: | Package Review | Assignee: | Marcela Mašláňová <mmaslano> |
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | rawhide | CC: | fedora-package-review, mtasaka, notting |
Target Milestone: | --- | Flags: | mmaslano:
fedora-review+
gwync: fedora-cvs+ |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-06-03 17:39:05 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Vít Ondruch
2011-05-30 08:10:58 UTC
- rpmlint ? rpmlint rubygem-pg-0.11.0-1.fc16.i686.rpm rubygem-pg.i686: W: no-soname /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/lib/pg_ext.so rubygem-pg.i686: W: devel-file-in-non-devel-package /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/compat.c rubygem-pg.i686: W: devel-file-in-non-devel-package /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/compat.h rubygem-pg.i686: W: devel-file-in-non-devel-package /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/extconf.h rubygem-pg.i686: W: devel-file-in-non-devel-package /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/pg.c rubygem-pg.i686: W: devel-file-in-non-devel-package /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/pg.h rubygem-pg.i686: E: non-executable-script /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/lib/pg.rb 0644L /usr/bin/env 1 packages and 0 specfiles checked; 1 errors, 6 warnings. - package must be named according to Guidelines OK - spec file name must match the base package %{name} OK - package must meet the Packaging Guidelines OK - package must be licensed with Fedora approved license ? - license field must match actual license OK - text of the license in its own file must be included in %doc OK - sources must match the upstream source OK - package MUST successfully compile and build OK - architecture listed in ExcludeArch MUST have a bug filed in bugzilla OK - build dependencies must be listed in BuildRequires ? - handle locales properly with %find_lang macro OK - shared library files must call ldconfig in %post(un) OK - packages must NOT bundle system libraries OK - package must own all directories that it creates OK - permissions on files must be set properly OK - package must consistently use macros OK - package must contain code, or permissable content OK - large documentation must go in a -doc OK - %doc must not affect the runtime of the application OK - header files must be in a -devel package OK - static libraries must be in a -static package OK - library files that end in .so (without suffix) must go in a -devel OK - devel package usually require base package OK - packages must NOT contain any .la libtool archives OK - GUI applications must include a %{name}.desktop file OK - packages must not own files or directories already owned by other packages OK postgresql-server postgresql-devel should be >= as stated in README file. Imho in license should be postgresql instead of BSD. Why is 'gem install' in prep? I believe install is doing install, so it should be in install part of spec file. 'gem install' could be in prep because otherwise after fedpkg prep will be there only packed gem. I have uploaded new revision: Spec URL: http://people.redhat.com/vondruch/rubygem-pg.spec SRPM URL: http://people.redhat.com/vondruch/rubygem-pg-0.11.0-2.fc16.src.rpm (In reply to comment #1) > - rpmlint ? > rpmlint rubygem-pg-0.11.0-1.fc16.i686.rpm > rubygem-pg.i686: W: no-soname > /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/lib/pg_ext.so I am not going to fix this issue since Ruby does not care. > rubygem-pg.i686: W: devel-file-in-non-devel-package > /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/compat.c > rubygem-pg.i686: W: devel-file-in-non-devel-package > /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/compat.h > rubygem-pg.i686: W: devel-file-in-non-devel-package > /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/extconf.h > rubygem-pg.i686: W: devel-file-in-non-devel-package > /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/pg.c > rubygem-pg.i686: W: devel-file-in-non-devel-package > /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/ext/pg.h I have completely removed the "ext" directory, since the extension is build anyway. Nobody should miss it. > rubygem-pg.i686: E: non-executable-script > /usr/lib/ruby/gems/1.8/gems/pg-0.11.0/lib/pg.rb 0644L /usr/bin/env I have removed the shebang from this file, as well as from others, and fixed shebangs in spec files. > 1 packages and 0 specfiles checked; 1 errors, 6 warnings. > > - package must be named according to Guidelines OK > - spec file name must match the base package %{name} OK > - package must meet the Packaging Guidelines OK > - package must be licensed with Fedora approved license ? > - license field must match actual license OK > - text of the license in its own file must be included in %doc OK > - sources must match the upstream source OK > - package MUST successfully compile and build OK > - architecture listed in ExcludeArch MUST have a bug filed in bugzilla OK > - build dependencies must be listed in BuildRequires ? > - handle locales properly with %find_lang macro OK > - shared library files must call ldconfig in %post(un) OK > - packages must NOT bundle system libraries OK > - package must own all directories that it creates OK > - permissions on files must be set properly OK > - package must consistently use macros OK > - package must contain code, or permissable content OK > - large documentation must go in a -doc OK > - %doc must not affect the runtime of the application OK > - header files must be in a -devel package OK > - static libraries must be in a -static package OK > - library files that end in .so (without suffix) must go in a -devel OK > - devel package usually require base package OK > - packages must NOT contain any .la libtool archives OK > - GUI applications must include a %{name}.desktop file OK > - packages must not own files or directories already owned by other packages OK > > postgresql-server postgresql-devel should be >= as stated in README file. Even the RHEL-4 contains already PostgreSQL 7.4, so I doubt that it would help anything. > Imho in license should be postgresql instead of BSD. I have explicitly asked upstream about versions and they state that the content of BSD file is wrong, but the BSD license is correct. The upstream issue is referenced in .spec file, so I think we should be OK. > Why is 'gem install' in prep? I believe install is doing install, so it should > be in install part of spec file. The true is that "gem install" is doing all the actions, i.e. %prep, %build and %install in one step. So it is not that clear where the install should be. But the %prep section seems to be the most appropriate. (In reply to comment #3) > > Imho in license should be postgresql instead of BSD. > > I have explicitly asked upstream about versions and they state that the content > of BSD file is wrong, but the BSD license is correct. The upstream issue is > referenced in .spec file, so I think we should be OK. > From your comment (License is not that clear) isn't clear, that you have statement from upstream. Sometimes is in specfile included email, where was license claimed. And you should fix new rpmlint complaints: rpmlint rubygem-pg-doc-0.11.0-2.fc16.x86_64.rpm rubygem-pg-doc.x86_64: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/pg-0.11.0/ri/PGconn/nonblocking%3f-i.yaml %3f rubygem-pg-doc.x86_64: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/pg-0.11.0/ri/PGconn/internal_encoding%3d-i.yaml %3d rubygem-pg-doc.x86_64: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/pg-0.11.0/ri/PGresult/%5b%5d-i.yaml %5b rubygem-pg-doc.x86_64: W: unexpanded-macro /usr/lib/ruby/gems/1.8/doc/pg-0.11.0/ri/PGresult/%5b%5d-i.yaml %5d Also license is not packaged in any of sub-packages. (In reply to comment #4) > (In reply to comment #3) > > > Imho in license should be postgresql instead of BSD. > > > > I have explicitly asked upstream about versions and they state that the content > > of BSD file is wrong, but the BSD license is correct. The upstream issue is > > referenced in .spec file, so I think we should be OK. > > > From your comment (License is not that clear) isn't clear, that you have > statement from upstream. Sometimes is in specfile included email, where was > license claimed. I would expect that reviewer could click on the link on the same line to see what is going on, but my expectations might be overly high. > And you should fix new rpmlint complaints: > rpmlint rubygem-pg-doc-0.11.0-2.fc16.x86_64.rpm > rubygem-pg-doc.x86_64: W: unexpanded-macro > /usr/lib/ruby/gems/1.8/doc/pg-0.11.0/ri/PGconn/nonblocking%3f-i.yaml %3f > rubygem-pg-doc.x86_64: W: unexpanded-macro > /usr/lib/ruby/gems/1.8/doc/pg-0.11.0/ri/PGconn/internal_encoding%3d-i.yaml %3d > rubygem-pg-doc.x86_64: W: unexpanded-macro > /usr/lib/ruby/gems/1.8/doc/pg-0.11.0/ri/PGresult/%5b%5d-i.yaml %5b > rubygem-pg-doc.x86_64: W: unexpanded-macro > /usr/lib/ruby/gems/1.8/doc/pg-0.11.0/ri/PGresult/%5b%5d-i.yaml %5d These warnings needs to be ignored, since these are valid documentation file names. The filenames are derived from method names, which can contain characters such as []!= > Also license is not packaged in any of sub-packages. It is not required, since the subpackage requires the base package. This is quote form guidelines: If a subpackage is dependent (either implicitly or explicitly) upon a base package (where a base package is defined as a resulting binary package from the same source RPM which contains the appropriate license texts as %doc), it is not necessary for that subpackage to also include those license texts as %doc. (In reply to comment #5) > (In reply to comment #4) > > (In reply to comment #3) > > > > Imho in license should be postgresql instead of BSD. > > > > > > I have explicitly asked upstream about versions and they state that the content > > > of BSD file is wrong, but the BSD license is correct. The upstream issue is > > > referenced in .spec file, so I think we should be OK. > > > > > From your comment (License is not that clear) isn't clear, that you have > > statement from upstream. Sometimes is in specfile included email, where was > > license claimed. > > I would expect that reviewer could click on the link on the same line to see > what is going on, but my expectations might be overly high. > The link could be gone, but the package could still life in some old release. License must be stated clearly. Spec URL: http://people.redhat.com/vondruch/rubygem-pg.spec SRPM URL: http://people.redhat.com/vondruch/rubygem-pg-0.11.0-3.fc16.src.rpm Added quote from upstream about licenses. Sounds fine. APPROVED Thank you for your review. New Package SCM Request ======================= Package Name: rubygem-pg Short Description: A Ruby interface to the PostgreSQL RDBMS Owners: vondruch Branches: InitialCC: Git done (by process-git-requests). Ah, no. Arch-dependent .so file MUST be installed under %ruby_sitearch/ not under %geminstdir/lib. (on x86_64, this file must be under /usr/lib64/......). Please see https://fedoraproject.org/wiki/Packaging/Ruby#Note and check how other rubygem based packages containing .so file handles this type of files. (In reply to comment #11) > Ah, no. Arch-dependent .so file MUST be installed under %ruby_sitearch/ not > under %geminstdir/lib. (on x86_64, this file must be under /usr/lib64/......). > > Please see > https://fedoraproject.org/wiki/Packaging/Ruby#Note > and check how other rubygem based packages containing .so file handles this > type of files. Thank you for your hint, I will fix the package accordingly. Couldn't be added test on *.so into rpmlint? This is the latest version of spec file: http://pkgs.fedoraproject.org/gitweb/?p=rubygem-pg.git;a=blob;f=rubygem-pg.spec;h=6255fef8a931cb671d664f39e30b8991fd83fd44;hb=HEAD Package Change Request ====================== Package Name: rubygem-pg New Branches: el5 el6 Owners: vondruch Git done (by process-git-requests). |