Bug 642592 - Review Request: rubygem-macaddr - Cross platform mac address determination for Ruby
Summary: Review Request: rubygem-macaddr - Cross platform mac address determination fo...
Keywords:
Status: CLOSED DUPLICATE of bug 1177697
Alias: None
Product: Fedora
Classification: Fedora
Component: Package Review
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Vít Ondruch
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 642601
TreeView+ depends on / blocked
 
Reported: 2010-10-13 12:13 UTC by Michal Fojtik
Modified: 2014-12-29 22:45 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-06-15 10:01:15 UTC
Type: ---
Embargoed:
jzigmund: fedora-review?


Attachments (Terms of Use)

Description Michal Fojtik 2010-10-13 12:13:03 UTC
Spec URL: http://mifo.sk/RPMS/rubygem-macaddr.spec
SRPM URL: http://mifo.sk/RPMS/rubygem-macaddr-1.0.0-1.fc13.src.rpm
Description:

Cross platform mac address determination for Ruby.

Comment 1 Jozef Zigmund 2010-10-13 12:46:34 UTC
I will take this review.

Comment 2 Mamoru TASAKA 2010-10-13 18:19:28 UTC
(Once reverting the previous change)

Comment 3 Jozef Zigmund 2010-10-26 16:59:50 UTC
This review it's just NONFORMAL because i'm not in Fedora Packager Group right
now.

rpmlint rubygem-macaddr-1.0.0-1.fc13.src.rpm 
rubygem-macaddr.src: W: no-buildroot-tag
rubygem-macaddr.src:35: W: mixed-use-of-spaces-and-tabs (spaces: line 35, tab: line 16)
1 packages and 0 specfiles checked; 0 errors, 2 warnings.

[BAD - in spec-file at line 15 is empty row and at line 16 is abundant tab character]

MUST: The License field in the package spec file must match the actual license.

License: GPLv2+ or Ruby

[OK? - gem doesn't contain LICENSE]

Each Ruby package MUST indicate the Ruby ABI version it depends on with a line
like:
Requires: ruby(abi) = 1.8

[OK - this MUST condition is written via macro in this spec file]

Packages that contain Ruby Gems MUST be called rubygem-%{gemname} where gemname
is the name from the Gem's specification.

%global gemname macaddr
Name: rubygem-%{gemname}

[OK]

The Source of the package MUST be the full URL to the released Gem archive

URL: http://codeforpeople.com/lib/ruby/macaddr/
Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem

[OK]

The version of the package MUST be the Gem's version

Version: 1.0.0

[OK]

The package MUST have a Requires and a BuildRequires on rubygems

%global rubyabi 1.8

Requires:	ruby(abi) = %{rubyabi}
Requires: rubygems >= 0
Requires: ruby >= 0
BuildRequires: rubygems >= 0
BuildRequires: ruby >= 0

[BAD - need remove tab character at line 16, and checking againt zero version is not needed]

The Gem MUST be installed into %{gemdir} defined as:
%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)

[OK]

If the Gem only contains pure Ruby code, it MUST be marked as BuildArch: noarch

[OK]

The package MUST own the following files and directories:

%{gemdir}/gems/%{gemname}-%{version}/
%{gemdir}/cache/%{gemname}-%{version}.gem
%{gemdir}/specifications/%{gemname}-%{version}.gemspec

[OK? - it doesn't contain directory gems, but i think that in this case it isn't necessary]

The install SHOULD be performed with the command

gem install --local --install-dir %{buildroot}%{gemdir} --force %{SOURCE0} 

[OK]

Comment 4 Jozef Zigmund 2010-10-26 17:36:11 UTC
(In reply to comment #3)
> This review it's just NONFORMAL because i'm not in Fedora Packager Group right
> now.
> 
> rpmlint rubygem-macaddr-1.0.0-1.fc13.src.rpm 
> rubygem-macaddr.src: W: no-buildroot-tag
> rubygem-macaddr.src:35: W: mixed-use-of-spaces-and-tabs (spaces: line 35, tab:
> line 16)
> 1 packages and 0 specfiles checked; 0 errors, 2 warnings.
> 
> [BAD - in spec-file at line 15 is empty row and at line 16 is abundant tab
> character]
> 
> MUST: The License field in the package spec file must match the actual license.
> 
> License: GPLv2+ or Ruby
> 
> [OK? - gem doesn't contain LICENSE]
> 
> Each Ruby package MUST indicate the Ruby ABI version it depends on with a line
> like:
> Requires: ruby(abi) = 1.8
> 
> [OK - this MUST condition is written via macro in this spec file]
> 
> Packages that contain Ruby Gems MUST be called rubygem-%{gemname} where gemname
> is the name from the Gem's specification.
> 
> %global gemname macaddr
> Name: rubygem-%{gemname}
> 
> [OK]
> 
> The Source of the package MUST be the full URL to the released Gem archive
> 
> URL: http://codeforpeople.com/lib/ruby/macaddr/
> Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem
> 
> [OK]
> 
> The version of the package MUST be the Gem's version
> 
> Version: 1.0.0
> 
> [OK]
> 
> The package MUST have a Requires and a BuildRequires on rubygems
> 
> %global rubyabi 1.8
> 
> Requires: ruby(abi) = %{rubyabi}
> Requires: rubygems >= 0
> Requires: ruby >= 0
> BuildRequires: rubygems >= 0
> BuildRequires: ruby >= 0
> 
> [BAD - need remove tab character at line 16, and checking againt zero version
> is not needed]
> 
> The Gem MUST be installed into %{gemdir} defined as:
> %global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
> 
> [OK]
> 
> If the Gem only contains pure Ruby code, it MUST be marked as BuildArch: noarch
> 
> [OK]
> 
> The package MUST own the following files and directories:
> 
> %{gemdir}/gems/%{gemname}-%{version}/
> %{gemdir}/cache/%{gemname}-%{version}.gem
> %{gemdir}/specifications/%{gemname}-%{version}.gemspec
> 
> [OK? - it doesn't contain directory gems, but i think that in this case it
> isn't necessary]
> 
> The install SHOULD be performed with the command
> 
> gem install --local --install-dir %{buildroot}%{gemdir} --force %{SOURCE0} 
> 
> [OK]

Please check this review also someone else (the best, who is sponsor)

Comment 5 Marek Mahut 2010-11-04 09:38:32 UTC
Michal, please update the spec with a correct licence.

https://github.com/btakita/rr/blob/master/LICENSE

Comment 6 Michal Fojtik 2010-11-04 12:16:59 UTC
Good catch, thanks. Updated files:

Spec URL: http://mifo.sk/RPMS/rubygem-rr.spec
SRPM URL: http://mifo.sk/RPMS/rubygem-rr-1.0.0-3.fc14.noarch.rpm

Comment 7 Jozef Zigmund 2010-11-05 13:55:20 UTC
(In reply to comment #6)
> Good catch, thanks. Updated files:
> 
> Spec URL: http://mifo.sk/RPMS/rubygem-rr.spec
> SRPM URL: http://mifo.sk/RPMS/rubygem-rr-1.0.0-3.fc14.noarch.rpm

This Spec and SRPM aren't for this gem. It should be in rubygem-rr. Please load the right ones.

Comment 8 Michal Fojtik 2010-11-08 14:55:10 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > Good catch, thanks. Updated files:
> > 
> > Spec URL: http://mifo.sk/RPMS/rubygem-rr.spec
> > SRPM URL: http://mifo.sk/RPMS/rubygem-rr-1.0.0-3.fc14.noarch.rpm
> 
> This Spec and SRPM aren't for this gem. It should be in rubygem-rr. Please load
> the right ones.

Sorry for that:

Spec URL: http://mifo.sk/RPMS/rubygem-rr.spec
SRPM URL: http://mifo.sk/RPMS/rubygem-rr-1.0.0-3.fc14.src.rpm

Comment 9 Vít Ondruch 2011-03-17 14:47:43 UTC
Could you provide updates spec file please?

Comment 10 Michal Fojtik 2011-03-18 13:55:24 UTC
(In reply to comment #9)
> Could you provide updates spec file please?

I hope this one will be correct finally:

http://mifo.sk/RPMS/rubygem-macaddr.spec
http://mifo.sk/RPMS/rubygem-macaddr-1.0.0-1.fc13.src.rpm

Comment 11 Vít Ondruch 2011-03-18 14:01:47 UTC
I am taking this for review after Jozef.

Comment 13 Vít Ondruch 2011-04-04 13:35:59 UTC
* License
  - according to macaddr rubyforge home page 
    (http://rubyforge.org/projects/codeforpeople/) the gem is licensed just under
    Ruby license.
  - You should encourage upstream to add license file:
    http://fedoraproject.org/wiki/Packaging/LicensingGuidelines#License_Text

* Cleaning
  - "rm -rf %{buildroot}" at the top of %install, %clean section
    are no longer needed:
    https://fedoraproject.org/wiki/Packaging/Guidelines#.25clean

* Splitting out document files
  - Please consider to create -doc subpackage and move the 
    %{gemdir}/doc/%{gemname}-%{version} directories into -doc

* Rpmlint
  - incoherent-version-in-changelog 1.0.0-1 ['1.0.0-2.fc15', '1.0.0-2']
  - Please fix the revision in changelog.

Koji build looks fine: http://koji.fedoraproject.org/koji/taskinfo?taskID=2971863

Comment 14 Vít Ondruch 2011-05-24 10:48:14 UTC
Ping? Any update here?

Comment 15 Vít Ondruch 2011-07-20 10:45:31 UTC
Ping?

Comment 16 Vít Ondruch 2012-06-15 10:01:15 UTC
It seem to be stalled. Please reopen or create new review if you are still interested in this gem.

Comment 17 František Dvořák 2014-12-29 22:45:24 UTC

*** This bug has been marked as a duplicate of bug 1177697 ***


Note You need to log in before you can comment on or make changes to this bug.