Sha256: db6718457c961819433fc596ccbee76581ce9825213a3a809a23e0b2634dfbc9
Contents?: true
Size: 784 Bytes
Versions: 3
Compression:
Stored size: 784 Bytes
Contents
module Gem2Rpm module TemplateHelpers # File list block for the main package def main_file_entries(spec) entries = Helpers.top_level_from_file_list(spec.files) entries.delete_if{ |f| Helpers.doc_file?(f) || Helpers.misc_file?(f) } Helpers.file_entries_to_rpm(entries) end # File list block for the doc sub-package def doc_file_entries(spec) entries = Helpers.top_level_from_file_list(spec.files) entries.delete_if{ |f| !(Helpers.doc_file?(f) || Helpers.misc_file?(f)) } Helpers.file_entries_to_rpm(entries) end # Provides well formatted requirement with version. def requirement(name, version = nil) version = nil if version && version.to_s.empty? [name, version].compact.join(' ') end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gem2rpm-0.11.2 | lib/gem2rpm/template_helpers.rb |
gem2rpm-0.11.1 | lib/gem2rpm/template_helpers.rb |
gem2rpm-0.11.0 | lib/gem2rpm/template_helpers.rb |