Giter VIP home page Giter VIP logo

gem2rpm's People

Contributors

aspiers avatar axilleas avatar coolo avatar darix avatar dcermak avatar dirkmueller avatar johanneskastl avatar ktdreyer avatar lutter avatar rharrison10 avatar rubiojr avatar tampakrap avatar toabctl avatar tuxdna avatar voxik avatar xsuchy avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gem2rpm's Issues

version_suffix is set wrong if not quoted in gem2rpm.yml

If the version_suffix is set in gem2rpm.yml like this:
:version_suffix: -1_2
...and the spec file is created with "gem2rpm --config gem2rpm.yml ...", then the suffix is wrong.

https://build.opensuse.org/request/show/537785
This is what happens, when the suffix is not quoted first, then gets quoted and the spec is recreated.

To avoid wrong package names, quote the version_suffix in gem2rpm.yml.documentation.
#10

Tested on Leap 42.2 with ruby2.1-rubygem-gem2rpm-0.10.1-5.3.1.x86_64.

Kind Regards,
Johannes

Provides/Obsoletes useless or just ignored

compare with here:
rubygem-chef-ruby-lvm

Provides:       rubygem(di-ruby-lvm) = %{version}
Obsoletes:      rubygem(di-ruby-lvm) < %{version}

rpm -q --provides /srv/oscbuild/SLE_12-x86_64/home/abuild/rpmbuild/RPMS/x86_64/ruby2.1-rubygem-chef-ruby-lvm-0.4.0-0.x86_64.rpm

ruby2.1-rubygem-chef-ruby-lvm = 0.4.0-0
ruby2.1-rubygem-chef-ruby-lvm(x86-64) = 0.4.0-0
rubygem(chef-ruby-lvm) = 0.4.0
rubygem(ruby:2.1.0:chef-ruby-lvm) = 0.4.0
rubygem(ruby:2.1.0:chef-ruby-lvm:0) = 0.4.0
rubygem(ruby:2.1.0:chef-ruby-lvm:0.4) = 0.4.0
rubygem(ruby:2.1.0:chef-ruby-lvm:0.4.0) = 0.4.0

the expected rubygem(di-ruby-lvm) = 0.4.0 is missing.

rpm -q --obsoletes /srv/oscbuild/SLE_12-x86_64/home/abuild/rpmbuild/RPMS/x86_64/ruby2.1-rubygem-chef-ruby-lvm-0.4.0-0.x86_64.rpm
result is empty, so the expected rubygem(di-ruby-lvm) < 0.4.0 is missing

gem deps to .alpha, .beta and .rc versions are not handled

There are some deps (in rails 4.2 stack) to package version like 4.2.0.beta. Since this is newer then to 4.2.0 from rpm's POV the packages are not installable.

IMHO we should detect this and

  • On newer distros map this to 4.2.0~beta for example
  • On older distros just drop the .beta part?

"!=" ruby requirement on gem gets translated to "<" AND ">" which can never be true?

rdiscount-2.1.7.1.gem has this requirements (from the metadata in the gem file):

required_ruby_version: !ruby/object:Gem::Requirement
requirements:

  • - '!='
    • !ruby/object:Gem::Version
      version: 1.9.2

note the "!=" operator

which gets translated, into the spec file, as:

BuildRequires: %{rubydevel < 1.9.2}
BuildRequires: %{rubydevel > 1.9.2}

which, when building, produces the error:

unresolvable: nothing provides ruby2.1-devel < 1.9.2

This looks like an error to me

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.