Bug 540996
| Summary: | Review Request: rubygem-ffi - Foreign Function Interface package for Ruby | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bryan Kearney <bkearney> |
| Component: | Package Review | Assignee: | Mamoru TASAKA <mtasaka> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | rawhide | CC: | bkearney, fedora-package-review, msuchy, mtasaka, notting, thrcka |
| Target Milestone: | --- | Flags: | mtasaka:
fedora-review+
|
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2010-02-22 14:47:28 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
Bryan Kearney
2009-11-24 17:06:35 UTC
*** Bug 533291 has been marked as a duplicate of this bug. *** Well, currently newest ffi seems 0.5.4. Would you upgrade your srpm first? Happy to. Updated spec file and SRPM can be found at: http://bkearney.fedorapeople.org/rubygem-ffi.spec http://bkearney.fedorapeople.org/rubygem-ffi-0.5.4-1.fc12.src.rpm rpmlint output is below: [bkearney@localhost rpmbuild]$ rpmlint SPECS/rubygem-ffi.spec 0 packages and 1 specfiles checked; 0 errors, 0 warnings. [bkearney@localhost rpmbuild]$ rpmlint SRPMS/rubygem-ffi-0.5.4-1.fc12.src.rpm 1 packages and 0 specfiles checked; 0 errors, 0 warnings. [bkearney@localhost rpmbuild]$ Koji build can be found at: http://koji.fedoraproject.org/koji/taskinfo?taskID=1956147 Some notes:
* %define -> %global
- We now prefer to use %global %instead of %define
https://fedoraproject.org/wiki/Packaging/Guidelines#.25global_preferred_over_.25define
* Requires
- Please use "Requires: rubygem(rake-compiler)" style, ref:
https://fedoraproject.org/wiki/Packaging/Perl#Perl_Requires_and_Provides
* strip / debuginfo rpm
- Don't use ELF binary by yourself and create debuginfo rpm correctly.
! Note
To create debuginfo rpm correctly, you have to compile C source
under %_builddir
( i.e. when rubygem contains C extention library, you cannot install
gem file into %buildroot directly. You have to once install gem file
under directory created by %setup and then copy the whole tree
to %buildroot for correct debuginfo rpm creation:
https://fedoraproject.org/wiki/Packaging/Ruby#Ruby_Gem_with_extension_libraries_written_in_C )
! Note 2
Also, build log shows that compilation of C source to create
libffi_c.so is executed both under %_builddir and %buildroot, this
is just redundant.
* macro usage
- %ruby_sitelib macro seems to be used nowhere and unneeded.
- Please use the defined %geminstdir also in %files
- You should not use %buildroot vs $RPM_BUILD_ROOT, %optflags vs $RPM_OPT_FLAGS
with mixed style and should choose one style.
https://fedoraproject.org/wiki/Packaging/Guidelines#Using_.25.7Bbuildroot.7D_and_.25.7Boptflags.7D_vs_.24RPM_BUILD_ROOT_and_.24RPM_OPT_FLAGS
* Documents location
--------------------------------------------------------------
%doc README.rdoc LICENSE History.txt
--------------------------------------------------------------
- These files should be installed under %geminstdir (in fact
2 of them are already installed).
Also document files under %geminstdir should be marked
as %doc properly.
ping? Sorry.. $DAYJOB took over. I have updated the spec file. Latest files: SRPM: http://bkearney.fedorapeople.org/rubygem-ffi-0.5.4-1.fc12.src.rpm SPEC File: http://bkearney.fedorapeople.org/rubygem-ffi.spec rpmlint output: [bkearney@localhost i686]$ rpmlint * rubygem-ffi.i686: W: hidden-file-or-dir /usr/lib/ruby/gems/1.8/gems/ffi-0.5.4/.require_paths 2 packages and 0 specfiles checked; 0 errors, 1 warnings. koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=1988494 Specific comments: (In reply to comment #4) > Some notes: > > * %define -> %global > - We now prefer to use %global %instead of %define > > https://fedoraproject.org/wiki/Packaging/Guidelines#.25global_preferred_over_.25define Done. > > > * Requires > - Please use "Requires: rubygem(rake-compiler)" style, ref: > https://fedoraproject.org/wiki/Packaging/Perl#Perl_Requires_and_Provides > > * strip / debuginfo rpm > - Don't use ELF binary by yourself and create debuginfo rpm correctly. > ! Note > To create debuginfo rpm correctly, you have to compile C source > under %_builddir > ( i.e. when rubygem contains C extention library, you cannot install > gem file into %buildroot directly. You have to once install gem file > under directory created by %setup and then copy the whole tree > to %buildroot for correct debuginfo rpm creation: > > https://fedoraproject.org/wiki/Packaging/Ruby#Ruby_Gem_with_extension_libraries_written_in_C > ) I will be honest, I do not understand the value here. But I believe the new spec file to be in line with these requirements. > > ! Note 2 > Also, build log shows that compilation of C source to create > libffi_c.so is executed both under %_builddir and %buildroot, this > is just redundant. Should only be done in %_builddir > > * macro usage > - %ruby_sitelib macro seems to be used nowhere and unneeded. removed. > > - Please use the defined %geminstdir also in %files done. > > - You should not use %buildroot vs $RPM_BUILD_ROOT, %optflags vs > $RPM_OPT_FLAGS > with mixed style and should choose one style. > > https://fedoraproject.org/wiki/Packaging/Guidelines#Using_.25.7Bbuildroot.7D_and_.25.7Boptflags.7D_vs_.24RPM_BUILD_ROOT_and_.24RPM_OPT_FLAGS done > > * Documents location > -------------------------------------------------------------- > %doc README.rdoc LICENSE History.txt > -------------------------------------------------------------- > - These files should be installed under %geminstdir (in fact > 2 of them are already installed). > Also document files under %geminstdir should be marked > as %doc properly. updated. Thank you for the review. Well,
* Latest version
- $ gem list -r ffi returns that the latest version is 0.6.2.
* Duplicate files
- build.log shows:
-----------------------------------------------------------------------
6047 warning: File listed twice: /usr/lib/ruby/gems/1.8/gems/ffi-0.5.4/LICENSE
6048 warning: File listed twice: /usr/lib/ruby/gems/1.8/gems/ffi-0.5.4/README.rdoc
-----------------------------------------------------------------------
Please fix these (note that these files should be marked
as %doc , so %doc %{geminstdir}/README.rdoc line (and so on)
should not be removed)
! Note
- Please change the release number every time you modify your srpm
(when version number does not change) to avoid confusion.
Latest files and build: Spec: http://bkearney.fedorapeople.org/rubygem-ffi.spec SRPM: http://bkearney.fedorapeople.org/rubygem-ffi-0.5.4-2.fc12.src.rpm Koji Build: http://koji.fedoraproject.org/koji/taskinfo?taskID=1991591 Comments below: (In reply to comment #7) > Well, > > * Latest version > - $ gem list -r ffi returns that the latest version is 0.6.2. There is some discussion on the mailing list as to if 0.6.0 is released. There is some discussion if it runs on all platforms. Given that, I would like to go with the 0.5.4 until upstream resolves the release. > > * Duplicate files > - build.log shows: > ----------------------------------------------------------------------- > 6047 warning: File listed twice: > /usr/lib/ruby/gems/1.8/gems/ffi-0.5.4/LICENSE > 6048 warning: File listed twice: > /usr/lib/ruby/gems/1.8/gems/ffi-0.5.4/README.rdoc > ----------------------------------------------------------------------- > Please fix these (note that these files should be marked > as %doc , so %doc %{geminstdir}/README.rdoc line (and so on) > should not be removed) Fixed. > > ! Note > - Please change the release number every time you modify your srpm > (when version number does not change) to avoid confusion. Done. they earlier one was a change in major version (0.5.2 -> 0.5.3) so I bumped the release back to 1. Well, - "Requires: libffi >= 3.0.5" is not needed because libffi in currently supported Fedora branch (i.e. F-11/12/13/14) all satisfy this version, and libffi.so.X dependency is automatically detected. (see the last sentence of below: https://fedoraproject.org/wiki/Packaging/Guidelines#Explicit_Requires ) - %dir %{geminstdir} is also needed https://fedoraproject.org/wiki/Packaging/UnownedDirectories#Common_Mistakes - The first %defattr(-,root,root,-) is enough. The second %defattr is redundant. Please fix these when importing this package into Fedora CVS. --------------------------------------------------------------- This package (rubygem-ffi) is APPROVED by mtasaka --------------------------------------------------------------- New Package CVS Request ======================= Package Name: rubygem-ffi Short Description: Foreign Function Interface package for Ruby Owners: bkearney Branches: devel, F-13, F-12, F-11 InitialCC: CVS done (by process-cvs-requests.py). Bryan, can you please create EPEL6 build? Package Change Request ====================== Package Name: rubygem-ffi New Branches: el6 Owners: bkearney vondruch InitialCC: msuchy Git done (by process-git-requests). Package Change Request ====================== Package Name: rubygem-ffi New Branches: epel7 Owners: bkearney vondruch humaton Branch exists? |