1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-25 03:24:33 +02:00
fpm/templates/rpm.erb
Jordan Sissel fb53230879 - Make rpm target work
- Get fpm -s rpm -t rpm working (should provide a useful test case)
- Allow 'output' (-p <path>) to be a directory
2011-01-07 00:50:06 -08:00

42 lines
640 B
Plaintext

Name: <%= @name %>
Version: <%= @version %>
Release: <%= @iteration %>
Summary: <%= @summary %>
Group: <%= @category %>
<%#
TODO: [Jay] rpms require a license
let's detect it intelligently
%>
License: <%= @license %>
Source0: %{_sourcedir}/data.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
<% if @dependencies && !@dependencies.empty? %>
Requires: <%= @dependencies.join(", ") %>
<% end %>
%description
<%= @summary %>
%prep
echo "PREP"
pwd
tar -zvxf %SOURCE0
%build
#noop
%install
#noop
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
<%= @source.paths.join("\n") %>
%changelog