salt/pkg/rpm/salt.spec

56 lines
1.4 KiB
RPMSpec
Raw Normal View History

2011-04-03 05:02:48 +00:00
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?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-05-14 05:00:58 +00:00
Version: 0.8.7
2011-04-03 05:02:48 +00:00
Release: 1%{?dist}
Summary: A parallel remote execution system
Group: Development/Languages
License: APACHE
URL: https://github.com/thatch45/salt
Source0: %{name}-%{version}.tar.gz
2011-05-14 05:00:58 +00:00
Source1: salt-master
Source2: salt-minion
2011-04-03 05:02:48 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2011-05-14 05:00:58 +00:00
Requires: python
Requires: PyYAML
Requires: python-crypto
Requires: m2crypto
Requires: python-zmq
2011-04-03 05:02:48 +00:00
BuildArch: noarch
BuildRequires: python-devel
%description
2011-05-14 05:00:58 +00:00
A parallel remote execution system
2011-04-03 05:02:48 +00: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}
cp -p %SOURCE1 $RPM_BUILD_ROOT%{_initrddir}/
cp -p %SOURCE2 $RPM_BUILD_ROOT%{_initrddir}/
chmod +x $RPM_BUILD_ROOT%{_initrddir}/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc %{_mandir}/*
%{python_sitelib}/*
%{_bindir}/*
%config(noreplace) /etc/salt/*
%{_initrddir}/*
%changelog