diff options
author | Scott Moser <smoser@ubuntu.com> | 2014-02-10 15:49:44 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2014-02-10 15:49:44 -0500 |
commit | 9ad88e06ce9cb034c690547fbfb4765962db957e (patch) | |
tree | 346e9a9c48806ff54c4c0a7faa18b600685d75da | |
parent | fe77394502e75cece57e810cee2af1c64a4a63ae (diff) | |
parent | 485f790e712dfd317a21e10ef17e231bcabaf910 (diff) | |
download | vyos-cloud-init-9ad88e06ce9cb034c690547fbfb4765962db957e.tar.gz vyos-cloud-init-9ad88e06ce9cb034c690547fbfb4765962db957e.zip |
rpm build fixes
- failing build due to missing Requires (changed to requirements.txt)
- RH: require sudo >= 1.7.2p2-3 (with sudoers.d/)
-rw-r--r-- | packages/redhat/cloud-init.spec.in | 5 | ||||
-rw-r--r-- | packages/suse/cloud-init.spec.in | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/packages/redhat/cloud-init.spec.in b/packages/redhat/cloud-init.spec.in index 9614e2f1..0e9862d8 100644 --- a/packages/redhat/cloud-init.spec.in +++ b/packages/redhat/cloud-init.spec.in @@ -34,7 +34,7 @@ Requires: e2fsprogs Requires: net-tools Requires: procps Requires: shadow-utils -Requires: sudo +Requires: sudo >= 1.7.2p2-3 # Install pypi 'dynamic' requirements #for $r in $requires @@ -169,7 +169,7 @@ fi /usr/lib/%{name}/write-ssh-key-fingerprints # Docs -%doc TODO LICENSE ChangeLog Requires +%doc TODO LICENSE ChangeLog requirements.txt %doc %{_defaultdocdir}/cloud-init/* # Configs @@ -180,6 +180,7 @@ fi %dir %{_sysconfdir}/cloud/templates %config(noreplace) %{_sysconfdir}/cloud/templates/* %config(noreplace) %{_sysconfdir}/rsyslog.d/21-cloudinit.conf +%config(noreplace) %{_sysconfdir}/sudoers.d/cloud-init # Python code is here... %{python_sitelib}/* diff --git a/packages/suse/cloud-init.spec.in b/packages/suse/cloud-init.spec.in index c30a6fae..53e6ad13 100644 --- a/packages/suse/cloud-init.spec.in +++ b/packages/suse/cloud-init.spec.in @@ -107,7 +107,7 @@ rm -r %{buildroot}/%{python_sitelib}/tests # Move documentation mkdir -p %{buildroot}/%{_defaultdocdir} mv %{buildroot}/usr/share/doc/cloud-init %{buildroot}/%{_defaultdocdir} -for doc in TODO LICENSE ChangeLog Requires ; do +for doc in TODO LICENSE ChangeLog requirements.txt; do cp \${doc} %{buildroot}/%{_defaultdocdir}/cloud-init done |