From 1333224513f5dabd1da91565a4723d63f4609835 Mon Sep 17 00:00:00 2001 From: Clint Savage Date: Mar 23 2013 00:34:22 +0000 Subject: initial package 0.8.5 --- diff --git a/.gitignore b/.gitignore index e69de29..8567834 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/salt-cloud-0.8.5.tar.gz diff --git a/salt-cloud.spec b/salt-cloud.spec new file mode 100644 index 0000000..9dc446d --- /dev/null +++ b/salt-cloud.spec @@ -0,0 +1,80 @@ +%if ! (0%{?rhel} >= 6 || 0%{?fedora} > 12) +%global with_python26 1 +%define pybasever 2.6 +%define __python_ver 26 +%define __python %{_bindir}/python%{?pybasever} +%endif + +# make macros so the paths match up properly +%global namespace saltcloud +%global eggspace salt_cloud + +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")} + +Name: salt-cloud +Version: 0.8.5 +Release: 1%{?dist} +Summary: Generic cloud provisioning tool + +Group: Applications/Internet +License: ASL 2.0 +URL: http://github.com/saltstack/salt-cloud +Source0: http://pypi.python.org/packages/source/s/%{name}/%{name}-%{version}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch + +%if 0%{?with_python26} + +BuildRequires: python2-devel +BuildRequires: salt >= 0.11.1 + +Requires: salt >= 0.11.1 + +%else + +BuildRequires: python2-devel +BuildRequires: salt >= 0.11.1 + +Requires: salt >= 0.11.1 + +%endif + +%description +Salt cloud allows for cloud based minions to be managed via virtual machine +maps and profiles. This means that individual cloud VMs can be created, or +large groups of cloud VMs can be created at once or managed. Virtual machines +created with Salt cloud install salt on the target virtual machine and assign +it to the specified master. While Salt Cloud has been made to work with Salt, +it is also a generic cloud management platform and can be used to manage non +Salt centric clouds. + +%prep +%setup -q + +%build + + +%install +rm -rf $RPM_BUILD_ROOT +%{__python} setup.py install -O1 --root $RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc LICENSE +%{python_sitelib}/%{namespace}/* +%{python_sitelib}/%{eggspace}-%{version}-py?.?.egg-info +%doc %{_mandir}/man1/%{name}.1.* +%doc %{_mandir}/man7/%{name}.7.* +%{_bindir}/salt-cloud + +#config(noreplace) %{_sysconfdir}/salt/master + +%changelog +* Wed Feb 20 2013 Clint Savage - 0.8.5-1 +- Initial rpm package diff --git a/sources b/sources index e69de29..698d934 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +49ae75d6c98e9509cb107d03e2412a32 salt-cloud-0.8.5.tar.gz