~harlowja/cloud-init/ug-cleanup-part-deuce

« back to all changes in this revision

Viewing changes to packages/redhat/cloud-init.spec.in

  • Committer: Joshua Harlow
  • Date: 2012-09-28 21:21:02 UTC
  • mfrom: (671.1.4 trunk)
  • Revision ID: harlowja@yahoo-inc.com-20120928212102-257ix5hu0606cl1x
Sync with head and fix conflicts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Or: http://fedoraproject.org/wiki/Packaging:ScriptletSnippets
6
6
# Or: http://www.rpm.org/max-rpm/ch-rpm-inside.html
7
7
 
 
8
#for $d in $defines
 
9
%define ${d}
 
10
#end for
 
11
 
8
12
Name:           cloud-init
9
13
Version:        ${version}
10
14
Release:        ${release}%{?dist}
36
40
Requires:       ${r}
37
41
#end for
38
42
 
 
43
# Custom patches
 
44
#set $size = 0
 
45
#for $p in $patches
 
46
Patch${size}: $p
 
47
#set $size += 1
 
48
#end for
 
49
 
39
50
#if $sysvinit
40
51
Requires(post):       chkconfig
41
52
Requires(postun):     initscripts
58
69
%prep
59
70
%setup -q -n %{name}-%{version}~${release}
60
71
 
 
72
# Custom patches activation
 
73
#set $size = 0
 
74
#for $p in $patches
 
75
%patch${size} -p1
 
76
#set $size += 1
 
77
#end for
 
78
 
61
79
%build
62
80
%{__python} setup.py build
63
81