Sha256: 969687f612089247f2f28ec91db6f3c6b7001a041b1323b198e677c5e07b331c

Contents?: true

Size: 1.48 KB

Versions: 2

Compression:

Stored size: 1.48 KB

Contents

# Disable any shell actions, replace them with simply 'true'
%define __spec_prep_post true
%define __spec_prep_pre true
%define __spec_build_post true
%define __spec_build_pre true
%define __spec_install_post true
%define __spec_install_pre true
%define __spec_clean_post true
%define __spec_clean_pre true

# Use md5
%define _binary_filedigest_algorithm 1

# Use gzip payload compression
%define _binary_payload w9.gzdio

# Metadata
Name: <%= name %>
Version: <%= version %>
Release: <%= iteration %>
Summary:  <%= description.split("\n").first.empty? ? "_" : description.split("\n").first %>
BuildArch: <%= architecture %>
AutoReqProv: no
BuildRoot: %buildroot
Prefix: /
Group: <%= category %>
License: <%= license %>
Vendor: <%= vendor %>
URL: <%= homepage %>
Packager: <%= maintainer %>
<% dependencies.each do |name| -%>
Requires: <%= name %>
<% end -%>
<% conflicts.each do |name| -%>
Conflicts: <%= name %>
<% end -%>
<% conflicts.each do |name| -%>
Obsoletes: <%= name %>
<%- end -%>
<% # RPM rejects descriptions with blank lines (even between content) -%>
%description
<%= description.gsub(/^\s*$/, " .") %>

%prep
# noop

%build
# noop

%install
# noop

%clean
# noop

<% scripts.each do |name, contents| -%>
%<%= name %>
<%= contents %>
<% end -%>

%files
%defattr(-,<%= user %>,<%= group %>,-)
<% # Output config files and then regular files -%>
<% config_files.each do |file| -%>
%config(noreplace) <%= file %>
<% end -%>
<% # List all files -%>
<% files.each do |file| -%>
<%= file %>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
omnibus-4.0.0.rc.1 resources/rpm/spec.erb
omnibus-4.0.0.beta.1 resources/rpm/spec.erb