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
|
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-PyYAML
|
||||||
BuildRequires: python-msgpack-python
|
BuildRequires: python-msgpack-python
|
||||||
BuildRequires: python-pycrypto
|
BuildRequires: python-pycrypto
|
||||||
BuildRequires: python-pyzmq >= 2.1.9
|
BuildRequires: python-pyzmq
|
||||||
|
BuildRequires: python-xml
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
Requires: logrotate
|
Requires: logrotate
|
||||||
Requires: python-Jinja2
|
Requires: python-Jinja2
|
||||||
Requires: python-M2Crypto
|
|
||||||
Requires: python-PyYAML
|
Requires: python-PyYAML
|
||||||
Requires: python-msgpack-python
|
Requires: python-xml
|
||||||
Requires: python-pycrypto
|
|
||||||
Requires: python-GitPython
|
|
||||||
Requires: git
|
|
||||||
Requires(pre): %fillup_prereq
|
Requires(pre): %fillup_prereq
|
||||||
Requires(pre): %insserv_prereq
|
Requires(pre): %insserv_prereq
|
||||||
%if 0%{?suse_version} >= 1210
|
%if 0%{?suse_version} >= 1210
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
%{?systemd_requires}
|
%{?systemd_requires}
|
||||||
%endif
|
%endif
|
||||||
%ifarch %{ix86} x86_64
|
|
||||||
%if 0%{?suse_version} && 0%{?sles_version} == 0
|
|
||||||
Requires: dmidecode
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%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()")}
|
%{!?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
|
%endif
|
||||||
|
|
||||||
## Disabled for now python-mock issues
|
## Disabled for now python-mock issues
|
||||||
#%%if 0%{?suse_version} != 1220 && 0%{?suse_version} != 1230
|
%if 0%{?suse_version} != 1220 && 0%{?suse_version} != 1230
|
||||||
##BuildRequires: python-unittest2
|
BuildRequires: python-unittest2
|
||||||
##BuildRequires: python-salt-testing
|
BuildRequires: python-salt-testing
|
||||||
##BuildRequires: python-xml
|
BuildRequires: python-mock
|
||||||
##BuildRequires: python-mock
|
BuildRequires: python-pip
|
||||||
##BuildRequires: git
|
BuildRequires: git
|
||||||
#%%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Salt is a distributed remote execution system used to execute commands and
|
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
|
Summary: Management component for salt, a parallel remote execution system
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}
|
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
|
Recommends: python-halite
|
||||||
Requires(pre): %fillup_prereq
|
Requires(pre): %fillup_prereq
|
||||||
Requires(pre): %insserv_prereq
|
Requires(pre): %insserv_prereq
|
||||||
@ -105,7 +107,10 @@ than serially.
|
|||||||
Summary: Client component for salt, a parallel remote execution system
|
Summary: Client component for salt, a parallel remote execution system
|
||||||
Group: System/Monitoring
|
Group: System/Monitoring
|
||||||
Requires: %{name} = %{version}
|
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): %fillup_prereq
|
||||||
Requires(pre): %insserv_prereq
|
Requires(pre): %insserv_prereq
|
||||||
|
|
||||||
@ -156,6 +161,7 @@ mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d/
|
|||||||
mkdir -p %{buildroot}/%{_sbindir}
|
mkdir -p %{buildroot}/%{_sbindir}
|
||||||
mkdir -p %{buildroot}/var/log/salt
|
mkdir -p %{buildroot}/var/log/salt
|
||||||
mkdir -p %{buildroot}/srv/salt
|
mkdir -p %{buildroot}/srv/salt
|
||||||
|
mkdir -p %{buildroot}/srv/pillar
|
||||||
#
|
#
|
||||||
##init scripts
|
##init scripts
|
||||||
install -Dpm 0755 %{SOURCE1} %{buildroot}%{_initddir}/salt-master
|
install -Dpm 0755 %{SOURCE1} %{buildroot}%{_initddir}/salt-master
|
||||||
@ -181,12 +187,11 @@ install -Dpm 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/logrotate.d/salt
|
|||||||
##SuSEfirewall2 file
|
##SuSEfirewall2 file
|
||||||
install -Dpm 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/salt
|
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
|
||||||
#%%if 0%{?suse_version} != 1220 && 0%{?suse_version} != 1230
|
%check
|
||||||
#%%check
|
#export only_local_network=False
|
||||||
##export only_local_network=False
|
%{__python} setup.py test --runtests-opts=-u
|
||||||
#%%{__python} setup.py test --runtests-opts=-u
|
%endif
|
||||||
#%%endif
|
|
||||||
|
|
||||||
%preun -n salt-syndic
|
%preun -n salt-syndic
|
||||||
%stop_on_removal salt-syndic
|
%stop_on_removal salt-syndic
|
||||||
@ -248,12 +253,12 @@ install -Dpm 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2
|
|||||||
%files -n salt-ssh
|
%files -n salt-ssh
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/salt-ssh
|
%{_bindir}/salt-ssh
|
||||||
%{_mandir}/man1/salt-ssh.1.*
|
%{_mandir}/man1/salt-ssh.1.gz
|
||||||
|
|
||||||
%files -n salt-syndic
|
%files -n salt-syndic
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/salt-syndic
|
%{_bindir}/salt-syndic
|
||||||
%{_mandir}/man1/salt-syndic.1.*
|
%{_mandir}/man1/salt-syndic.1.gz
|
||||||
%{_sbindir}/rcsalt-syndic
|
%{_sbindir}/rcsalt-syndic
|
||||||
%{_sysconfdir}/init.d/salt-syndic
|
%{_sysconfdir}/init.d/salt-syndic
|
||||||
%if 0%{?_unitdir:1}
|
%if 0%{?_unitdir:1}
|
||||||
@ -263,9 +268,7 @@ install -Dpm 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2
|
|||||||
%files -n salt-minion
|
%files -n salt-minion
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_bindir}/salt-minion
|
%{_bindir}/salt-minion
|
||||||
%{_bindir}/salt-call
|
%{_mandir}/man1/salt-minion.1.gz
|
||||||
%{_mandir}/man1/salt-call.1.*
|
|
||||||
%{_mandir}/man1/salt-minion.1.*
|
|
||||||
%{_sbindir}/rcsalt-minion
|
%{_sbindir}/rcsalt-minion
|
||||||
%config(noreplace) %{_sysconfdir}/init.d/salt-minion
|
%config(noreplace) %{_sysconfdir}/init.d/salt-minion
|
||||||
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/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-cp
|
||||||
%{_bindir}/salt-key
|
%{_bindir}/salt-key
|
||||||
%{_bindir}/salt-run
|
%{_bindir}/salt-run
|
||||||
%{_mandir}/man1/salt-master.1.*
|
%{_mandir}/man1/salt-master.1.gz
|
||||||
%{_mandir}/man1/salt.1.*
|
%{_mandir}/man1/salt.1.gz
|
||||||
%{_mandir}/man1/salt-cp.1.*
|
%{_mandir}/man1/salt-cp.1.gz
|
||||||
%{_mandir}/man1/salt-key.1.*
|
%{_mandir}/man1/salt-key.1.gz
|
||||||
%{_mandir}/man1/salt-run.1.*
|
%{_mandir}/man1/salt-run.1.gz
|
||||||
%{_sbindir}/rcsalt-master
|
%{_sbindir}/rcsalt-master
|
||||||
%config(noreplace) %{_sysconfdir}/init.d/salt-master
|
%config(noreplace) %{_sysconfdir}/init.d/salt-master
|
||||||
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/salt
|
%config(noreplace) %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/salt
|
||||||
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/master
|
%attr(0644, root, root) %config(noreplace) %{_sysconfdir}/salt/master
|
||||||
%{_sysconfdir}/salt/master.d
|
%{_sysconfdir}/salt/master.d
|
||||||
%dir /srv/salt
|
%dir /srv/salt
|
||||||
|
%dir /srv/pillar
|
||||||
%if 0%{?_unitdir:1}
|
%if 0%{?_unitdir:1}
|
||||||
%_unitdir/salt-master.service
|
%_unitdir/salt-master.service
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE AUTHORS README.rst HACKING.rst
|
||||||
%dir %{_sysconfdir}/salt
|
%dir %{_sysconfdir}/salt
|
||||||
%dir /var/log/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
|
%config(noreplace) %{_sysconfdir}/logrotate.d/salt
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user