Created
June 22, 2015 09:05
-
-
Save junmakii/4dd2b80ef1a2d386fec2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: <%= name %> | |
Version: <%= version %> | |
Release: 1%{?dist} | |
Group: <%= group %> | |
Summary: <%= summary %> | |
License: <%= license %> | |
Packager: <%= author %> <<%= email %>> | |
Requires: <%= requires %> | |
BuildRequires: <%= build_requires %> | |
URL: <%= url %> | |
BuildRoot: %{_tmppath}/%{name}-%{rpm_version}-%{release}-root-%(%{__id_u} -n) | |
BuildArch: <%= arch %> | |
Source: <%= name %>-<%= version %>.tar.gz | |
<% a = patch.split(' ') %><% b = Array.new(a.length) {|i| i+1 } %><% c = b.zip(a) %><% c.each do |patch| %>Patch<%= patch[0] %>: <%= patch[1] %> | |
<% end %> | |
<% if exclusive_arch != '' %>ExclusiveArch: <%= exclusive_arch %><% end %> | |
#%define _libdir %{_prefix}/lib64 | |
#%global _python_bytecompile_errors_terminate_build 0 | |
%description | |
<%= description %> | |
%install | |
%{__rm} -rf %{buildroot} | |
%{__mkdir_p} %{buildroot} | |
%{__tar} -xzvf %{_sourcedir}/<%= name %>-<%= version %>.tar.gz -C %{buildroot} | |
%clean | |
%{__rm} -rf %{buildroot} | |
%pre | |
<% pre.split(';').each do |i| %><%= i %> | |
<% end %> | |
%post | |
<% post.split(';').each do |i| %><%= i %> | |
<% end %> | |
%preun | |
<% preun.split(';').each do |i| %><%= i %> | |
<% end %> | |
%postun | |
<% postun.split(';').each do |i| %><%= i %> | |
<% end %> | |
%files <%= files %> | |
%doc <%= doc %> | |
<% dirs.split(' ').each do |dir| %><%= dir %> | |
<% end %> | |
%changelog | |
* <%= require "date"; DateTime.now().strftime("%a %b %-H %Y") %> <%= author %> <<%= email %>> | |
- Updated to release <%= version %>. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment