salt/pkg/rpm/salt.spec

187 lines
5.7 KiB
RPMSpec
Raw Normal View History

2012-01-06 00:26:37 -07:00
%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
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))")}
2012-01-06 00:26:37 -07:00
%{!?%_unitdir: %global _unitdir /lib/systemd/system}
Name: salt
2011-12-04 21:39:28 -07:00
Version: 0.9.4
2012-01-06 00:26:37 -07:00
Release: 3%{?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
2012-01-06 00:26:37 -07:00
Source4: %{name}-master.service
Source5: %{name}-syndic.service
Source6: %{name}-minion.service
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
2012-01-06 00:26:37 -07:00
Requires: python(abi) >= 2.6
%if 0%{?with_python26}
BuildRequires: python26-zmq
BuildRequires: python26-crypto
BuildRequires: python26-devel
BuildRequires: python26-PyYAML
BuildRequires: python26-m2crypto
Requires: python26-crypto
Requires: python26-zmq
Requires: python26-jinja2
Requires: python26-PyYAML
Requires: python26-m2crypto
%else
2011-12-04 21:39:28 -07:00
BuildRequires: python-zmq
BuildRequires: python-crypto
BuildRequires: python-devel
2012-01-06 00:26:37 -07:00
BuildRequires: PyYAML
BuildRequires: m2crypto
Requires: python-crypto
Requires: python-zmq
Requires: python-jinja2
Requires: PyYAML
Requires: m2crypto
%endif
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
2012-01-06 00:26:37 -07:00
Requires: salt >= 0.9.4-3
%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
Group: System/Utilities
Summary: Client tools for salt, a parallel remote execution system
2012-01-06 00:26:37 -07:00
Requires: salt >= 0.9.4-3
%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
2012-01-06 00:26:37 -07:00
%if (0%{?rhel} || 0%{?fedora} < 15)
2011-04-02 23:02:48 -06:00
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}/
2012-01-06 00:26:37 -07:00
%else
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
install -p -m 0775 %{SOURCE4} $RPM_BUILD_ROOT%{_unitdir}/
install -p -m 0775 %{SOURCE5} $RPM_BUILD_ROOT%{_unitdir}/
install -p -m 0775 %{SOURCE6} $RPM_BUILD_ROOT%{_unitdir}/
%endif
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
2012-01-06 00:26:37 -07:00
%if (0%{?rhel} || 0%{?fedora} < 15)
%{_initrddir}/salt-minion
2012-01-06 00:26:37 -07:00
%else
%{_unitdir}/salt-minion.service
%endif
%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
2012-01-06 00:26:37 -07:00
%if (0%{?rhel} || 0%{?fedora} < 15)
%{_initrddir}/salt-master
%{_initrddir}/salt-syndic
2012-01-06 00:26:37 -07:00
%else
%{_unitdir}/salt-master.service
%{_unitdir}/salt-syndic.service
%endif
%config(noreplace) /etc/salt/master
2011-04-02 23:02:48 -06:00
%changelog
2012-01-06 00:26:37 -07:00
* Thu Jan 5 2012 Clint Savage <herlo1@gmail.com> - 0.9.4-3
- Updating for systemd on Fedora 15+
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