Sha256: f6265ad10e90cc1a0e9bf3d666c385e441e45e2c7e3ab6db4bf3838b0554510b
Contents?: true
Size: 703 Bytes
Versions: 3
Compression:
Stored size: 703 Bytes
Contents
require 'gem2rpm/rpm_file_list' require 'gem2rpm/rpm_dependency' module Gem2Rpm module TemplateHelpers # File list block for the main package def main_file_entries(spec) entries = RpmFileList.new(spec.files).top_level_entries.main_entries entries.to_rpm end # File list block for the doc sub-package def doc_file_entries(spec) entries = RpmFileList.new(spec.files).top_level_entries.doc_entries entries.to_rpm end # Provides well formatted requirement with version. def requirement(name, version = nil) version = nil if version && version.to_s.empty? RpmDependency.new(Gem::Dependency.new(name, version)).to_rpm end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gem2rpm-1.0.2 | lib/gem2rpm/template_helpers.rb |
gem2rpm-1.0.1 | lib/gem2rpm/template_helpers.rb |
gem2rpm-1.0.0 | lib/gem2rpm/template_helpers.rb |