Re: Help with rubygem packaging

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for the examples and hints

> 2. Adding %check section, as Jaroslav said.
> Note that we do not use "bundler" ("bundle" command) and
> "rake"
> command in RPM *.spec file.
> 
 I have removed bundler and rake from linked-list, the test doesn't seem to run anything

+ pushd ./usr/share/gems/gems/linked-list-0.0.13
~/rpmbuild/BUILD/linked-list-0.0.13/usr/share/gems/gems/linked-list-0.0.13 ~/rpmbuild/BUILD/linked-list-0.0.13
+ sed -i '/bundler/ s/^/#/' Rakefile
+ ruby -Ilib:. -e 'Dir.glob "test/**/test_*.rb", &method(:require)'
Run options: --seed 28775

# Running:



Fabulous run in 0.000872s, 0.0000 runs/s, 0.0000 assertions/s.

0 runs, 0 assertions, 0 failures, 0 errors, 0 skips
+ popd


> 3. Following *.spec files might be useful to refer.
> 
> https://src.fedoraproject.org/rpms/rubygem-listen/blob/master/f/rubygem-l...
>   with Ruby C-extention.
> https://src.fedoraproject.org/rpms/rubygem-rake/blob/master/f/rubygem-rak...
>   without Ruby C-extension.

Looks like %check for hrx is a no go due to missing dep that isn't present in the repo

+ pushd ./usr/share/gems/gems/hrx-1.0.0
~/rpmbuild/BUILD/hrx-1.0.0/usr/share/gems/gems/hrx-1.0.0 ~/rpmbuild/BUILD/hrx-1.0.0
+ ln -s /home/leigh/rpmbuild/BUILD/spec spec
+ rspec -rspec_helper spec

An error occurred while loading ./spec/archive_spec.rb.
Failure/Error: require 'rspec/temp_dir'
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux