]>
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 | |
144f700e | 16 | BuildRequires: rpmbuild(macros) >= 1.710 |
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 | |
4aa9f949 | 37 | %py_build |
4cc12bee PZ |
38 | |
39 | %install | |
40 | rm -rf $RPM_BUILD_ROOT | |
ce2c9e8d | 41 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/log/func} |
4aa9f949 | 42 | %py_install |
4cc12bee PZ |
43 | |
44 | %py_postclean | |
45 | ||
be8eb07a ER |
46 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/funcd |
47 | ||
4cc12bee PZ |
48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %post | |
4cc12bee | 52 | /sbin/chkconfig --add funcd |
682c5656 | 53 | %service funcd restart |
4cc12bee PZ |
54 | |
55 | %preun | |
56 | if [ "$1" = "0" ]; then | |
4cc12bee | 57 | %service funcd stop |
4cc12bee PZ |
58 | /sbin/chkconfig --del funcd |
59 | fi | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc AUTHORS README | |
64 | %attr(755,root,root) %{_bindir}/funcd | |
65 | %attr(755,root,root) %{_bindir}/func | |
4cc12bee | 66 | %attr(755,root,root) %{_bindir}/func-inventory |
a4a5487c | 67 | %attr(755,root,root) %{_bindir}/func-build-map |
68 | %attr(755,root,root) %{_bindir}/func-transmit | |
ce2c9e8d | 69 | %attr(755,root,root) %{_bindir}/func-create-module |
0638269b | 70 | %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/func_rotate |
0638269b | 71 | %attr(754,root,root) /etc/rc.d/init.d/funcd |
ce2c9e8d | 72 | %dir %{_sysconfdir}/%{name} |
be8eb07a ER |
73 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/async_methods.conf |
74 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/minion.conf | |
75 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/overlord.conf | |
76 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/modules/Bridge.conf | |
77 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/modules/Test.conf | |
78 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/modules/Vlan.conf | |
4cc12bee | 79 | %{_mandir}/man1/*.1* |
be8eb07a ER |
80 | %{py_sitescriptdir}/func |
81 | %if "%{py_ver}" > "2.4" | |
82 | %{py_sitescriptdir}/func-*.egg-info | |
83 | %endif | |
ce2c9e8d | 84 | %dir /var/log/func |