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