Summary: A cloud-init datasource that uses VMware GuestInfo Name: cloud-init-vmware-guestinfo Version: 1.4.1 Release: 1 Epoch: 0 Group: Applications/System License: Apache2 URL: https://github.com/vmware-archive/cloud-init-vmware-guestinfo %global rURL https://raw.githubusercontent.com/vmware-archive/cloud-init-vmware-guestinfo/v%{version} Source0: %{rURL}/99-DataSourceVMwareGuestInfo.cfg Source1: %{rURL}/DataSourceVMwareGuestInfo.py Source2: %{rURL}/dscheck_VMwareGuestInfo.sh Source3: %{rURL}/LICENSE Source4: %{rURL}/README.md %define cloudir %{_sysconfdir}/cloud/cloud.cfg.d %define py27dir %{_prefix}/lib/python2.7/site-packages/cloudinit/sources BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: /usr/bin/python2.7 Requires: cloud-init Requires: %{cloudir} Requires: %{py27dir} BuildArch: noarch #Conflicts: #Obsoletes: #BuildConflicts: #Requires(pre,post): %description A cloud-init datasource that uses VMware GuestInfo %prep %setup -qTc %{__cp} %{S:3} %{S:4} . %build %install rm -rf $RPM_BUILD_ROOT # later make this a name-version and engage alternates %{__mkdir_p} \ %{buildroot}%{cloudir} \ %{buildroot}%{py27dir} \ %{buildroot}%{_bindir} %{__install} %{S:0} \ %{buildroot}%{cloudir}/ %{__install} %{S:1} \ %{buildroot}%{py27dir}/ %{__install} %{S:2} \ %{buildroot}%{_bindir}/%(basename %{S:2} .sh) %clean rm -rf $RPM_BUILD_ROOT %files %defattr(0644, root,root, 0755) %doc %(basename ${S:3}) %(basename %{S:4}) %{cloudir}/%(basename %{S:0}) %{py27dir}/%(basename %{S:1})* %defattr(0755, root,root) %{_bindir}/%(basename %{S:2} .sh)