]>
Commit | Line | Data |
---|---|---|
5a68ee1c | 1 | %define appname salt |
2 | Summary: Powerful remote config and execution manager. | |
3 | Name: python-%{appname} | |
59184f11 TR |
4 | Version: 0.9.9 |
5 | Release: 1 | |
5a68ee1c | 6 | License: Apache 2.0 |
7 | Group: Libraries/Python | |
8 | Source0: https://github.com/downloads/saltstack/%{appname}/%{appname}-%{version}.tar.gz | |
59184f11 | 9 | # Source0-md5: fa223f1abe5b80a5226bc987ff7735c5 |
6b721a11 | 10 | Patch0: %{name}-grains.patch |
5a68ee1c | 11 | URL: http://saltstack.org/ |
12 | BuildRequires: gettext | |
13 | BuildRequires: python-devel | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.219 | |
5a68ee1c | 16 | Requires: python-Crypto |
17 | Requires: python-M2Crypto | |
18 | Requires: python-PyYAML | |
19 | Requires: python-msgpack | |
20 | Requires: python-pyzmq | |
59184f11 | 21 | Suggests: python-jinja2 |
6b721a11 | 22 | %pyrequires_eq python-modules |
5a68ee1c | 23 | BuildArch: noarch |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
25 | ||
26 | %description | |
27 | Powerful remote execution manager that can be used to administer | |
28 | servers in a fast and efficient way. | |
29 | ||
30 | %prep | |
31 | %setup -q -n %{appname}-%{version} | |
6b721a11 | 32 | %patch0 -p1 |
5a68ee1c | 33 | |
34 | %build | |
35 | export CFLAGS="%{rpmcflags}" | |
36 | %{__python} setup.py build | |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | %{__python} setup.py install \ | |
41 | --optimize=2 \ | |
42 | --root=$RPM_BUILD_ROOT | |
43 | ||
44 | %py_ocomp $RPM_BUILD_ROOT%{py_sitedir} | |
45 | %py_comp $RPM_BUILD_ROOT%{py_sitedir} | |
46 | %py_postclean | |
47 | ||
48 | %clean | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
53 | %dir /etc/%{appname} | |
54 | /etc/%{appname}/*.template | |
55 | %attr(755,root,root) %{_bindir}/salt | |
56 | %attr(755,root,root) %{_bindir}/salt-call | |
57 | %attr(755,root,root) %{_bindir}/salt-cp | |
58 | %attr(755,root,root) %{_bindir}/salt-key | |
59 | %attr(755,root,root) %{_bindir}/salt-master | |
60 | %attr(755,root,root) %{_bindir}/salt-minion | |
61 | %attr(755,root,root) %{_bindir}/salt-run | |
62 | %attr(755,root,root) %{_bindir}/salt-syndic | |
63 | %dir %{py_sitescriptdir}/%{appname} | |
64 | %{py_sitescriptdir}/%{appname}/*.py[co] | |
65 | %dir %{py_sitescriptdir}/%{appname}/ext | |
66 | %{py_sitescriptdir}/%{appname}/ext/*.py[co] | |
67 | %dir %{py_sitescriptdir}/%{appname}/cli | |
68 | %{py_sitescriptdir}/%{appname}/cli/*.py[co] | |
69 | %dir %{py_sitescriptdir}/%{appname}/grains | |
70 | %{py_sitescriptdir}/%{appname}/grains/*.py[co] | |
71 | %dir %{py_sitescriptdir}/%{appname}/modules | |
72 | %{py_sitescriptdir}/%{appname}/modules/*.py[co] | |
73 | %dir %{py_sitescriptdir}/%{appname}/utils | |
74 | %{py_sitescriptdir}/%{appname}/utils/*.py[co] | |
75 | %dir %{py_sitescriptdir}/%{appname}/states | |
76 | %{py_sitescriptdir}/%{appname}/states/*.py[co] | |
77 | %dir %{py_sitescriptdir}/%{appname}/runners | |
78 | %{py_sitescriptdir}/%{appname}/runners/*.py[co] | |
79 | %dir %{py_sitescriptdir}/%{appname}/returners | |
80 | %{py_sitescriptdir}/%{appname}/returners/*.py[co] | |
81 | %dir %{py_sitescriptdir}/%{appname}/renderers | |
82 | %{py_sitescriptdir}/%{appname}/renderers/*.py[co] | |
83 | %if "%{py_ver}" > "2.4" | |
84 | %{py_sitescriptdir}/%{appname}-*.egg-info | |
85 | %endif | |
86 | %{_mandir}/man1/* | |
87 | %{_mandir}/man7/* |