Author: patrys Date: Tue Dec 4 17:24:54 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - initial PLD release
---- Files affected: SPECS: func.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/func.spec diff -u /dev/null SPECS/func.spec:1.1 --- /dev/null Tue Dec 4 18:24:54 2007 +++ SPECS/func.spec Tue Dec 4 18:24:49 2007 @@ -0,0 +1,87 @@ +# $Revision$, $Date$ +%define subver .3 +Summary: Fedora Unified Network Controller +Name: func +Version: 0.13 +Release: 1 +License: GPLv2+ +Group: Applications/System +Source0: https://hosted.fedoraproject.org/projects/func/attachment/wiki/FuncReleases/%{name}-%{version}.tar%{subver}.gz?format=raw +# Source0-md5: adf06e92209e2576bd44fa64641b8733 +Source1: %{name}-funcd.init +Source2: %{name}-certmaster.init +URL: https://hosted.fedoraproject.org/projects/func/ +BuildRequires: python >= 1:2.5 +BuildRequires: rpmbuild(macros) >= 1.219 +Requires: python-pyOpenSSL +%pyrequires_eq python-libs +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +func is a remote api for mangement, configation, and monitoring of systems. + +%prep +%setup -q + +%build +python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc/rc.d/init.d/funcd + +python setup.py install \ + --root=$RPM_BUILD_ROOT \ + --optimize=2 +install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/funcd +install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/certmaster + +%py_postclean + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +/sbin/chkconfig --add certmaster +/sbin/chkconfig --add funcd + +%preun +if [ "$1" = "0" ]; then + %service certmaster stop + %service funcd stop + /sbin/chkconfig --del certmaster + /sbin/chkconfig --del funcd +fi + +%files +%defattr(644,root,root,755) +%doc AUTHORS README +%attr(755,root,root) %{_bindir}/funcd +%attr(755,root,root) %{_bindir}/func +%attr(755,root,root) %{_bindir}/certmaster +%attr(755,root,root) %{_bindir}/certmaster-ca +%attr(755,root,root) %{_bindir}/func-inventory +%dir %{_sysconfdir}/%{name} +%dir %{_sysconfdir}/%{name}/minion-acl.d/ +# TODO: move /etc/pki into FHS? It's used for key storage +%dir %{_sysconfdir}/pki +%dir %{_sysconfdir}/pki/%{name} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/func/minion.conf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/func/certmaster.conf +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/logrotate.d/func_rotate +%attr(755,root,root) /etc/rc.d/init.d/certmaster +%attr(755,root,root) /etc/rc.d/init.d/funcd +%{py_sitescriptdir}/func-%{version}-py*.egg-info +%{py_sitescriptdir}/func +%{_mandir}/man1/*.1* + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2007-12-04 17:24:49 patrys +- initial PLD release + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
