Accepting request 201343 from devel:languages:python
Upstream release a package guideline for salt, changed the package accordingly. OBS-URL: https://build.opensuse.org/request/show/201343 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/salt?expand=0&rev=15
This commit is contained in:
parent
bf747f3c5c
commit
3856ed3bc7
@ -1,3 +1,12 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat Sep 28 19:11:10 UTC 2013 - aboe76@gmail.com
|
||||
|
||||
- Updated package following salt package guidelins:
|
||||
https://github.com/saltstack/salt/blob/develop/doc/topics/conventions/packaging.rst
|
||||
- activated salt-testing for unit testing salt before releasing rpm
|
||||
- updated docs
|
||||
- added python-xml as dependency
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 19 17:18:06 UTC 2013 - aboe76@gmail.com
|
||||
|
||||
|
82
salt.spec
82
salt.spec
@ -42,27 +42,19 @@ BuildRequires: python-M2Crypto
|
||||
BuildRequires: python-PyYAML
|
||||
BuildRequires: python-msgpack-python
|
||||
BuildRequires: python-pycrypto
|
||||
BuildRequires: python-pyzmq >= 2.1.9
|
||||
BuildRequires: python-pyzmq
|
||||
BuildRequires: python-xml
|
||||
BuildRequires: unzip
|
||||
Requires: logrotate
|
||||
Requires: python-Jinja2
|
||||
Requires: python-M2Crypto
|
||||
Requires: python-PyYAML
|
||||
Requires: python-msgpack-python
|
||||
Requires: python-pycrypto
|
||||
Requires: python-GitPython
|
||||
Requires: git
|
||||
Requires: python-xml
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): %insserv_prereq
|
||||
%if 0%{?suse_version} >= 1210
|
||||
BuildRequires: systemd
|
||||
%{?systemd_requires}
|
||||
%endif
|
||||
%ifarch %{ix86} x86_64
|
||||
%if 0%{?suse_version} && 0%{?sles_version} == 0
|
||||
Requires: dmidecode
|
||||
%endif
|
||||
%endif
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
@ -71,13 +63,13 @@ BuildArch: noarch
|
||||
%endif
|
||||
|
||||
## Disabled for now python-mock issues
|
||||
#%%if 0%{?suse_version} != 1220 && 0%{?suse_version} != 1230
|
||||
##BuildRequires: python-unittest2
|
||||
##BuildRequires: python-salt-testing
|
||||
##BuildRequires: python-xml
|
||||
##BuildRequires: python-mock
|
||||
##BuildRequires: git
|
||||
#%%endif
|
||||
%if 0%{?suse_version} != 1220 && 0%{?suse_version} != 1230
|
||||
BuildRequires: python-unittest2
|
||||
BuildRequires: python-salt-testing
|
||||
BuildRequires: python-mock
|
||||
BuildRequires: python-pip
|
||||
BuildRequires: git
|
||||
%endif
|
||||
|
||||
%description
|
||||
Salt is a distributed remote execution system used to execute commands and
|
||||
@ -91,7 +83,17 @@ servers, handle them quickly and through a simple and manageable interface.
|
||||
Summary: Management component for salt, a parallel remote execution system
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}
|
||||
Requires: python-pyzmq >= 2.1.9
|
||||
Requires: python-pyzmq
|
||||
Requires: python-M2Crypto
|
||||
Requires: python-msgpack-python
|
||||
Requires: python-pycrypto
|
||||
Requires: python-GitPython
|
||||
Requires: git
|
||||
%ifarch %{ix86} x86_64
|
||||
%if 0%{?suse_version} && 0%{?sles_version} == 0
|
||||
Requires: dmidecode
|
||||
%endif
|
||||
%endif
|
||||
Recommends: python-halite
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): %insserv_prereq
|
||||
@ -105,7 +107,10 @@ than serially.
|
||||
Summary: Client component for salt, a parallel remote execution system
|
||||
Group: System/Monitoring
|
||||
Requires: %{name} = %{version}
|
||||
Requires: python-pyzmq >= 2.1.9
|
||||
Requires: python-pyzmq
|
||||
Requires: python-M2Crypto
|
||||
Requires: python-msgpack-python
|
||||
Requires: python-pycrypto
|
||||
Requires(pre): %fillup_prereq
|
||||
Requires(pre): %insserv_prereq
|
||||
|
||||
@ -156,6 +161,7 @@ mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d/
|
||||
mkdir -p %{buildroot}/%{_sbindir}
|
||||
mkdir -p %{buildroot}/var/log/salt
|
||||
mkdir -p %{buildroot}/srv/salt
|
||||
mkdir -p %{buildroot}/srv/pillar
|
||||
#
|
||||
##init scripts
|
||||
install -Dpm 0755 %{SOURCE1} %{buildroot}%{_initddir}/salt-master
|
||||
@ -181,12 +187,11 @@ install -Dpm 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/logrotate.d/salt
|
||||
##SuSEfirewall2 file
|
||||
install -Dpm 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/salt
|
||||
|
||||
## Disabled for now python-mock issues
|
||||
#%%if 0%{?suse_version} != 1220 && 0%{?suse_version} != 1230
|
||||
#%%check
|
||||
##export only_local_network=False
|
||||
#%%{__python} setup.py test --runtests-opts=-u
|
||||
#%%endif
|
||||
%if 0%{?suse_version} != 1220 && 0%{?suse_version} != 1230
|
||||
%check
|
||||
#export only_local_network=False
|
||||
%{__python} setup.py test --runtests-opts=-u
|
||||
%endif
|
||||
|
||||
%preun -n salt-syndic
|
||||
%stop_on_removal salt-syndic
|
||||
@ -248,12 +253,12 @@ install -Dpm 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2
|
||||
%files -n salt-ssh
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/salt-ssh
|
||||
%{_mandir}/man1/salt-ssh.1.*
|
||||
%{_mandir}/man1/salt-ssh.1.gz
|
||||
|
||||
%files -n salt-syndic
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/salt-syndic
|
||||
%{_mandir}/man1/salt-syndic.1.*
|
||||
%{_mandir}/man1/salt-syndic.1.gz
|
||||
%{_sbindir}/rcsalt-syndic
|
||||
%{_sysconfdir}/init.d/salt-syndic
|
||||
%if 0%{?_unitdir:1}
|
||||
@ -263,9 +268,7 @@ install -Dpm 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2
|
||||
%files -n salt-minion
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/salt-minion
|
||||
%{_bindir}/salt-call
|
||||
%{_mandir}/man1/salt-call.1.*
|
||||
%{_mandir}/man1/salt-minion.1.*
|
||||
%{_mandir}/man1/salt-minion.1.gz
|
||||
%{_sbindir}/rcsalt-minion
|
||||
%config(noreplace) %{_sysconfdir}/init.d/salt-minion
|
||||
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/minion
|
||||
@ -281,27 +284,30 @@ install -Dpm 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2
|
||||
%{_bindir}/salt-cp
|
||||
%{_bindir}/salt-key
|
||||
%{_bindir}/salt-run
|
||||
%{_mandir}/man1/salt-master.1.*
|
||||
%{_mandir}/man1/salt.1.*
|
||||
%{_mandir}/man1/salt-cp.1.*
|
||||
%{_mandir}/man1/salt-key.1.*
|
||||
%{_mandir}/man1/salt-run.1.*
|
||||
%{_mandir}/man1/salt-master.1.gz
|
||||
%{_mandir}/man1/salt.1.gz
|
||||
%{_mandir}/man1/salt-cp.1.gz
|
||||
%{_mandir}/man1/salt-key.1.gz
|
||||
%{_mandir}/man1/salt-run.1.gz
|
||||
%{_sbindir}/rcsalt-master
|
||||
%config(noreplace) %{_sysconfdir}/init.d/salt-master
|
||||
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/salt
|
||||
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/master
|
||||
%{_sysconfdir}/salt/master.d
|
||||
%dir /srv/salt
|
||||
%dir /srv/pillar
|
||||
%if 0%{?_unitdir:1}
|
||||
%_unitdir/salt-master.service
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%doc LICENSE AUTHORS README.rst HACKING.rst
|
||||
%dir %{_sysconfdir}/salt
|
||||
%dir /var/log/salt
|
||||
%{_mandir}/man7/salt.7.*
|
||||
%{_bindir}/salt-call
|
||||
%{_mandir}/man1/salt-call.1.gz
|
||||
%{_mandir}/man7/salt.7.gz
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/salt
|
||||
%{python_sitelib}/*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user