Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add rpm_dist method. #190

Merged
merged 2 commits into from
Jun 26, 2017
Merged

Add rpm_dist method. #190

merged 2 commits into from
Jun 26, 2017

Conversation

sfzylad
Copy link
Contributor

@sfzylad sfzylad commented Jun 23, 2017

Currently when building RPMs for many platforms, files are getting overwritten as no Distribution Tag is set, so the RPM file name does not contain distribution version like el6 or el7 which results in foobar-version.rpm file being build for all the distributions.

This change adds rpm_dist method to recipe file. This results in :rpm_dist attribute to be set in FPM::Package::RPM and the output RPM file will be named: foobar-version.el7.rpm, given el7 is being set as content of rpm_dist.

Copy link
Owner

@bernd bernd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! 👍

@bernd bernd merged commit abb155f into bernd:master Jun 26, 2017
@sfzylad
Copy link
Contributor Author

sfzylad commented Jun 26, 2017

Thanks for merging!

When do you think it'll be available from rubygems.org?

bernd added a commit that referenced this pull request Jul 9, 2017
Changes:

* Hiera lookups of recipe data from templated YAML files. (BaxterStockman / #150)
* Travis-CI build matrix improvements. (thedrow / #155)
* Expose `lsbcodename` fact. (thedrow / #158)
* Improved build cookie generator. (BaxterStockman / #157)
* Improved facter usage. (BaxterStockman / #167)
* Alpine (apk) package support. (lloydpick / #162)
* Fix typos and missing tests. (lloydpick / #163)
* Add `inspect` command. (BaxterStockman / #165)
* json dependency fix to work with older Rubies. (BaxterStockman / #166)
* Bug fix when using local directory sources. (#164)
* Make vendor delimiter configurable. (#169)
* Ensure consistend extracted source value from all source handlers. (#170)
* Add default package version and guard against nil/empty versions. (BaxterStockman / #176)
* Documenting the use of Hiera in recipes. (BaxterStockman / #184)
* Ruby pre-2.0 compatibility fix. (BaxterStockman / #183)
* Add "safe\_yaml" dependency. (davewongillies / #186, #154)
* Add `rpm_dist` method. (sfzylad / #190)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants