salt/pkg/rpm/salt.spec

139 lines
4.5 KiB
RPMSpec
Raw Normal View History

2011-04-02 23:02:48 -06:00
%{!?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
2011-12-04 21:39:28 -07:00
Version: 0.9.4
Release: 2%{?dist}
Summary: A parallel remote execution system
Group: System/Utilities
License: ASL 2.0
URL: https://github.com/thatch45/salt
2011-12-04 21:39:28 -07:00
# http://saltstack.org/
Source0: https://github.com/downloads/saltstack/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}-master
Source2: %{name}-syndic
Source3: %{name}-minion
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2011-12-04 21:39:28 -07:00
Requires: python(abi)
Requires: PyYAML
Requires: python-crypto
Requires: m2crypto
Requires: python-zmq
2011-12-04 21:39:28 -07:00
Requires: python-jinja
BuildArch: noarch
2011-12-04 21:39:28 -07:00
BuildRequires: python-zmq
BuildRequires: python-crypto
BuildRequires: m2crypto
BuildRequires: PyYAML
BuildRequires: python-devel
2011-04-02 23:02:48 -06:00
%description
Salt is a distributed remote execution system used to execute commands and
query data. It was developed in order to bring the best solutions found in
the world of remote execution together and make them better, faster and more
malleable. Salt accomplishes this via its ability to handle larger loads of
information, and not just dozens, but hundreds or even thousands of individual
servers, handle them quickly and through a simple and manageable interface.
%package -n salt-master
Group: System/Utilities
Summary: Management component for salt, a parallel remote execution system
Requires: salt
%description -n salt-master
Salt is a distributed remote execution system used to execute commands and
query data. It was developed in order to bring the best solutions found in
the world of remote execution together and make them better, faster and more
malleable. Salt accomplishes this via its ability to handle larger loads of
information, and not just dozens, but hundreds or even thousands of individual
servers, handle them quickly and through a simple and manageable interface.
Summary: A parallel remote execution system
%package -n salt-minion
Requires: salt
Group: System/Utilities
Summary: Client tools for salt, a parallel remote execution system
Requires: salt
2011-12-04 21:39:28 -07:00
#Requires: Cython
%description -n salt-minion
Salt is a distributed remote execution system used to execute commands and
query data. It was developed in order to bring the best solutions found in
the world of remote execution together and make them better, faster and more
malleable. Salt accomplishes this via its ability to handle larger loads of
information, and not just dozens, but hundreds or even thousands of individual
servers, handle them quickly and through a simple and manageable interface.
Summary: Client utilities for Salt, a parallel remote execution system
2011-04-02 23:02:48 -06:00
%prep
%setup -q
%build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --root $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_initrddir}
install -p -m 0775 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/
install -p -m 0775 %{SOURCE2} $RPM_BUILD_ROOT%{_initrddir}/
install -p -m 0775 %{SOURCE3} $RPM_BUILD_ROOT%{_initrddir}/
2011-04-02 23:02:48 -06:00
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
2011-07-13 20:42:06 -06:00
%doc %{_defaultdocdir}/salt*
2011-04-02 23:02:48 -06:00
%{python_sitelib}/*
2011-12-04 21:39:28 -07:00
%doc %{_mandir}/man7/salt.7.*
#{_initrddir}/*
%files -n salt-minion
%defattr(-,root,root)
2011-12-04 21:39:28 -07:00
%doc %{_mandir}/man1/salt-call.1.*
%doc %{_mandir}/man1/salt-minion.1.*
%{_bindir}/salt-minion
%{_bindir}/salt-call
%{_initrddir}/salt-minion
%config(noreplace) /etc/salt/minion
%files -n salt-master
%defattr(-,root,root)
2011-12-04 21:39:28 -07:00
%doc %{_mandir}/man1/salt-master.1.*
%doc %{_mandir}/man1/salt.1.*
%doc %{_mandir}/man1/salt-cp.1.*
%doc %{_mandir}/man1/salt-key.1.*
%doc %{_mandir}/man1/salt-run.1.*
%doc %{_mandir}/man1/salt-syndic.1.*
%{_bindir}/salt
%{_bindir}/salt-master
%{_bindir}/salt-syndic
%{_bindir}/salt-cp
%{_bindir}/salt-key
%{_bindir}/salt-run
%{_initrddir}/salt-master
%{_initrddir}/salt-syndic
%config(noreplace) /etc/salt/master
2011-04-02 23:02:48 -06:00
%changelog
2011-12-04 21:39:28 -07:00
* Thu Dec 1 2011 Clint Savage <herlo1@gmail.com> - 0.9.4-2
- Removing requirement for Cython. Optional only for salt-minion
* Thu Nov 30 2011 Clint Savage <herlo1@gmail.com> - 0.9.4-1
- New upstream release with new features and bugfixes
* Thu Nov 17 2011 Clint Savage <herlo1@gmail.com> - 0.9.3-1
- New upstream release with new features and bugfixes
* Sat Sep 17 2011 Clint Savage <herlo1@gmail.com> - 0.9.2-1
- Bugfix release from upstream to fix python2.6 issues
* Fri Sep 09 2011 Clint Savage <herlo1@gmail.com> - 0.9.1-1
- Initial packages