]> git.pld-linux.org Git - packages/func.git/blame - func.spec
BR: rpmbuild(macros) >= 1.710
[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
144f700e 16BuildRequires: rpmbuild(macros) >= 1.710
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
4aa9f949 37%py_build
4cc12bee
PZ
38
39%install
40rm -rf $RPM_BUILD_ROOT
ce2c9e8d 41install -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
46install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/funcd
47
4cc12bee
PZ
48%clean
49rm -rf $RPM_BUILD_ROOT
50
51%post
4cc12bee 52/sbin/chkconfig --add funcd
682c5656 53%service funcd restart
4cc12bee
PZ
54
55%preun
56if [ "$1" = "0" ]; then
4cc12bee 57 %service funcd stop
4cc12bee
PZ
58 /sbin/chkconfig --del funcd
59fi
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
This page took 0.076575 seconds and 4 git commands to generate.