~agx/cloud-init/sles12

« back to all changes in this revision

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

  • Committer: agx at sigxcpu
  • Date: 2015-11-02 16:38:07 UTC
  • Revision ID: agx@sigxcpu.org-20151102163807-osghf1evnyhbwaq0
Fix RPM build on SLES12

Handle systemd and add missing files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
# Move documentation
108
108
mkdir -p %{buildroot}/%{_defaultdocdir}
109
109
mv %{buildroot}/usr/share/doc/cloud-init %{buildroot}/%{_defaultdocdir}
110
 
for doc in TODO LICENSE ChangeLog requirements.txt; do
 
110
for doc in TODO.rst LICENSE ChangeLog requirements.txt; do
111
111
   cp \${doc} %{buildroot}/%{_defaultdocdir}/cloud-init
112
112
done
113
113
 
133
133
   %{_sbindir}/rccloud-*
134
134
%endif
135
135
 
 
136
%if %{initsys} == systemd
 
137
%{_unitdir}/cloud-*
 
138
%endif
 
139
 
 
140
 
136
141
# Program binaries
137
142
%{_bindir}/cloud-init*
138
143
 
142
147
/usr/lib/%{name}/uncloud-init
143
148
/usr/lib/%{name}/write-ssh-key-fingerprints
144
149
 
 
150
# Udev rules
 
151
/lib/udev/rules.d/*.rules
 
152
 
145
153
# Docs
146
154
%doc %{_defaultdocdir}/cloud-init/*
147
155