]> git.pld-linux.org Git - packages/func.git/blame - func.spec
- BR: python-modules, rpm-pythonprov
[packages/func.git] / func.spec
CommitLineData
4cc12bee 1Summary: Fedora Unified Network Controller
2c01a9c8 2Summary(pl.UTF-8): FUNC - jednolite sterowanie sieciowe Fedory
4cc12bee 3Name: func
a4a5487c 4Version: 0.25
5Release: 0.1
ce2c9e8d 6License: GPL v2+
4cc12bee 7Group: Applications/System
a4a5487c 8Source0: http://people.fedoraproject.org/~alikins/files/func/%{name}-%{version}.tar.gz
9# Source0-md5: 892252004f122c61bb58bb4607553ffe
4cc12bee 10Source1: %{name}-funcd.init
4a1252d5 11Patch0: %{name}-setup.patch
be8eb07a 12URL: https://fedorahosted.org/func/
ce2c9e8d 13BuildRequires: python
da8050e8 14BuildRequires: python-modules
15BuildRequires: rpm-pythonprov
4cc12bee 16BuildRequires: rpmbuild(macros) >= 1.219
a4a5487c 17Requires: certmaster >= 0.25
4cc12bee 18Requires: python-pyOpenSSL
be8eb07a 19Requires: python-simplejson
4cc12bee
PZ
20%pyrequires_eq python-libs
21BuildArch: noarch
22BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24%description
2c01a9c8
JB
25FUNC (Fedora Unified Network Controller) is a remote API for
26management, configation, and monitoring of systems.
27
28%description -l pl.UTF-8
be8eb07a
ER
29FUNC (Fedora Unified Network Controller) to zdalne API do zarządzania,
30konfiguracji 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
40rm -rf $RPM_BUILD_ROOT
ce2c9e8d
ER
41install -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
48install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/funcd
49
4cc12bee
PZ
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%post
4cc12bee 54/sbin/chkconfig --add funcd
682c5656 55%service funcd restart
4cc12bee
PZ
56
57%preun
58if [ "$1" = "0" ]; then
4cc12bee 59 %service funcd stop
4cc12bee
PZ
60 /sbin/chkconfig --del funcd
61fi
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
This page took 0.111339 seconds and 4 git commands to generate.