]>
Commit | Line | Data |
---|---|---|
4cc12bee | 1 | Summary: Fedora Unified Network Controller |
2c01a9c8 | 2 | Summary(pl.UTF-8): FUNC - jednolite sterowanie sieciowe Fedory |
4cc12bee | 3 | Name: func |
e8a5d04f | 4 | Version: 0.21 |
682c5656 | 5 | Release: 0.2 |
ce2c9e8d | 6 | License: GPL v2+ |
4cc12bee | 7 | Group: Applications/System |
ce2c9e8d | 8 | Source0: http://people.fedoraproject.org/~mdehaan/files/func/%{name}-%{version}.tar.gz |
e8a5d04f | 9 | # Source0-md5: 715638833720c85076fe04cd2e31fc32 |
4cc12bee | 10 | Source1: %{name}-funcd.init |
4a1252d5 | 11 | Patch0: %{name}-setup.patch |
ce2c9e8d ER |
12 | URL: https://hosted.fedoraproject.org/func/ |
13 | BuildRequires: python | |
4cc12bee | 14 | BuildRequires: rpmbuild(macros) >= 1.219 |
ce2c9e8d | 15 | Requires: certmaster >= 0.19 |
4cc12bee PZ |
16 | Requires: python-pyOpenSSL |
17 | %pyrequires_eq python-libs | |
18 | BuildArch: noarch | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
2c01a9c8 JB |
22 | FUNC (Fedora Unified Network Controller) is a remote API for |
23 | management, configation, and monitoring of systems. | |
24 | ||
25 | %description -l pl.UTF-8 | |
26 | FUNC (Fedora Unified Network Controller) to zdalne API do | |
27 | zarządzania, konfiguracji i monitorowania systemów. | |
4cc12bee PZ |
28 | |
29 | %prep | |
30 | %setup -q | |
4a1252d5 | 31 | %patch0 -p1 |
4cc12bee PZ |
32 | |
33 | %build | |
ce2c9e8d | 34 | %{__python} setup.py build |
4cc12bee PZ |
35 | |
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
ce2c9e8d ER |
38 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/log/func} |
39 | %{__python} setup.py install \ | |
40 | --optimize=2 \ | |
41 | --root=$RPM_BUILD_ROOT | |
4cc12bee | 42 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/funcd |
4cc12bee PZ |
43 | |
44 | %py_postclean | |
45 | ||
46 | %clean | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
49 | %post | |
4cc12bee | 50 | /sbin/chkconfig --add funcd |
682c5656 | 51 | %service funcd restart |
4cc12bee PZ |
52 | |
53 | %preun | |
54 | if [ "$1" = "0" ]; then | |
4cc12bee | 55 | %service funcd stop |
4cc12bee PZ |
56 | /sbin/chkconfig --del funcd |
57 | fi | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
61 | %doc AUTHORS README | |
62 | %attr(755,root,root) %{_bindir}/funcd | |
63 | %attr(755,root,root) %{_bindir}/func | |
4cc12bee | 64 | %attr(755,root,root) %{_bindir}/func-inventory |
ce2c9e8d | 65 | %attr(755,root,root) %{_bindir}/func-create-module |
0638269b | 66 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/func_rotate |
0638269b | 67 | %attr(754,root,root) /etc/rc.d/init.d/funcd |
ce2c9e8d ER |
68 | %dir %{_sysconfdir}/%{name} |
69 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/func/minion.conf | |
70 | %dir %{py_sitescriptdir}/func | |
71 | %dir %{py_sitescriptdir}/func/minion | |
72 | %dir %{py_sitescriptdir}/func/minion/modules | |
73 | %dir %{py_sitescriptdir}/func/minion/modules/netapp | |
74 | %dir %{py_sitescriptdir}/func/minion/modules/netapp/vol | |
75 | %dir %{py_sitescriptdir}/func/overlord | |
76 | %dir %{py_sitescriptdir}/func/overlord/cmd_modules | |
77 | %dir %{py_sitescriptdir}/func/overlord/modules | |
78 | %{py_sitescriptdir}/func/*.py[co] | |
79 | %{py_sitescriptdir}/func/minion/*.py[co] | |
80 | %{py_sitescriptdir}/func/minion/modules/*.py[co] | |
81 | %{py_sitescriptdir}/func/minion/modules/netapp/*.py[co] | |
82 | %{py_sitescriptdir}/func/minion/modules/netapp/vol/*.py[co] | |
83 | %{py_sitescriptdir}/func/overlord/*.py[co] | |
84 | %{py_sitescriptdir}/func/overlord/cmd_modules/*.py[co] | |
85 | %{py_sitescriptdir}/func/overlord/modules/*.py[co] | |
86 | ||
4cc12bee | 87 | %{_mandir}/man1/*.1* |
ce2c9e8d ER |
88 | |
89 | %dir /var/log/func |