Dne 10. 07. 21 v 20:49 Dan Allen napsal(a):
Will the RPM build for a gem package pick up dependencies needed to run the test suite from Gemfile, or do they have to be declared as development dependencies in the gemspec?


gem2rpm can generate list of BuildRequires from gem. We don't use Gemfile for anything.

But honestly, while RPM provide facilities to generate build dependencies, I'd be against using them, because the dependencies are not "build" dependencies but "development" dependencies. I am afraid that in average, we would need to filter them heavily. My guess is that we would need to remove more then 50% of dependencies.


The bundler team seems to be suggesting that declaring development dependencies in the gemspec is deprecated [1].


.gemspec is the best place to specify any dependency IMHO. I don't understand why upstream is framing it like this. It'd be much better if every dependency is specified in .gemspec.


Vít


Before I make any change to the packaged gems I maintain (asciidoctor and asciidoctor-pdf), I want to make sure this won't break running the test suite when building the RPM.

Thanks,

-Dan

[1] https://github.com/rubygems/rubygems/issues/4748 <https://github.com/rubygems/rubygems/issues/4748>

--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux <https://twitter.com/mojavelinux>

_______________________________________________
ruby-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure
_______________________________________________
ruby-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
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/[email protected]
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to