Author: wolvverine Date: Sun May 14 13:30:52 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - corect license
---- Files affected: SPECS: freepbx.spec (1.2 -> 1.3) ---- Diffs: ================================================================ Index: SPECS/freepbx.spec diff -u SPECS/freepbx.spec:1.2 SPECS/freepbx.spec:1.3 --- SPECS/freepbx.spec:1.2 Sat May 13 15:52:35 2006 +++ SPECS/freepbx.spec Sun May 14 15:30:47 2006 @@ -4,11 +4,14 @@ Name: freepbx Version: 2.0.1 Release: 0.1 -License: GPL v2 +License: GPL Group: Applications Source0: http://dl.sourceforge.net/amportal/%{name}-%{version}.tar.gz # Source0-md5: aa100b6928a3e1a61603fb969485381a URL: http://www.coalescentsystems.ca/ +BuildRequires: rpmbuild(macros) >= 1.228 +Requires(post,preun): /sbin/chkconfig +#Requires: Asterisk >= 1.2 Requires: php-program Requires: php-pear-DB Requires: php-pcre @@ -50,8 +53,7 @@ %prep %setup -q #%patch0 -p1 -# undos the source -#find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' +find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' %build @@ -60,7 +62,8 @@ install -d $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{cgi-bin,agi-bin,astetc,bin,htdocs,htdocs_panel,mohmp3,sbin,sounds} -install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs/{_asterisk,admin,recordings} +install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d +install -d $RPM_BUILD_ROOT%{_bindir} cd ./amp_conf cp -R htdocs/* $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs @@ -70,6 +73,8 @@ install mohmp3/* $RPM_BUILD_ROOT%{_datadir}/%{name}/mohmp3 install sounds/* $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds +#install init/op_panel_redhat.sh $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name} +#install op_server.pl $RPM_BUILD_ROOT%{_bindir} #TODO #htdocs_panel #sbin @@ -78,14 +83,25 @@ %clean rm -rf $RPM_BUILD_ROOT +%post +/sbin/chkconfig --add %{name} +%service %{name} restart + +%preun +if [ "$1" = "0" ]; then + %service -q %{name} stop + /sbin/chkconfig --del %{name} +fi %files %defattr(644,root,root,755) #%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO -#%%dir %{_sysconfdir} -#%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* -#%attr(755,root,root) %{_bindir}/* -#%{_datadir}/%{name} +%attr(754,root,root) /etc/rc.d/init.d/%{name} +#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} +%dir %{_sysconfdir} +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* +%attr(755,root,root) %{_bindir}/* +%{_datadir}/%{name} %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -93,6 +109,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.3 2006/05/14 13:30:47 wolvverine +- corect license + Revision 1.2 2006/05/13 13:52:35 ankry - cosmetics ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/freepbx.spec?r1=1.2&r2=1.3&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit