Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 801161
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:24:01+00:00 2026-05-14T23:24:01+00:00

Version 0.6.0 of gem2rpm includes all (development and runtime) dependencies for a given Gem.

  • 0

Version 0.6.0 of gem2rpm includes all (development and runtime) dependencies for a given Gem.

Example: Rack Gem (http://rubygems.org/gems/rack) Version 1.1.0 has no runtime dependencies, but six development
dependencies.

Console output of gem2rpm --dependencies rack-1.0.1.gem is:

  • rubygem(test-spec) >= 0
  • rubygem(camping) >= 0
  • rubygem(fcgi) >= 0
  • rubygem(memcache-client) >= 0
  • rubygem(mongrel) >= 0
  • rubygem(ruby-openid) >= 2.0.0
  • rubygem(thin) >= 0`

How can I specify to only include runtime dependencies?

I have also opened a ticket on rubyforge.org, but there isn’t a lot of activity on that tracker.

Thank you for any hints.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T23:24:02+00:00Added an answer on May 14, 2026 at 11:24 pm

    Sender: Miguel Armas

    I also suffered from this bug. I corrected it including only
    dependencies of type :runtime with the following patch:

    --
    --- gem2rpm.rb.orig 2010-04-08 00:09:39.794856454 +0100
    +++ gem2rpm.rb  2010-04-08 00:27:11.808853058 +0100
    @@ -105,10 +105,12 @@
     BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}-n)
     Requires: rubygems
     <% for d in spec.dependencies %>
    +<% if d.type == :runtime %>
     <% for req in d.version_requirements.to_rpm %>
     Requires: rubygem(<%= d.name %>) <%= req  %>
     <% end %>
     <% end %>
    +<% end %>
     BuildRequires: rubygems
     <% if spec.extensions.empty? %>
     BuildArch: noarch
    --
    

    I didn’t include the :development dependencies as BuildRequires
    because they are not needed to create the RPM from the SRPM

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Version Control with Subversion recommends the following layout for (single-project) repositories (complemented by this
The version of Subclipse (1.2.4) currently available through Aptana's automatic Plugins Manager does not
Short version: I want to trigger the Form_Load() event without making the form visible.
Tomcat (version 5 here) stores session information in memory. When clustering this information is
Short version: I'm wondering if it's possible, and how best, to utilise CPU specific
WSPBuilder Version: 0.9.8.0830 Created by Carsten Keutmann GPL License 2007 Install and deploying [MYDLL]
Short version: assuming I don't want to keep the data for long, how do
The Version class in .Net does not implement the CompareTo interface as I would
Short Version: When I've created a Channel using ChannelFactory on a client which uses
Per version (1.0, 1.1, 2.0, 3.0, 3.5), how many classes are in the .NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.