SPECS: op_panel.spec (NEW) - init, draft, NFY

wolvverine wolvverine at pld-linux.org
Sat May 13 15:27:22 CEST 2006


Author: wolvverine                   Date: Sat May 13 13:27:22 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- init, draft, NFY

---- Files affected:
SPECS:
   op_panel.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/op_panel.spec
diff -u /dev/null SPECS/op_panel.spec:1.1
--- /dev/null	Sat May 13 15:27:22 2006
+++ SPECS/op_panel.spec	Sat May 13 15:27:17 2006
@@ -0,0 +1,101 @@
+# $Revision$, $Date$
+Summary:	Flash Operator Panel - a switchboard application for the Asterisk PBX.
+Summary(pl):	Flash Operator Panel -
+Name:		op_panel
+Version:	0.26
+Release:	0.1
+License:	GPL v2
+Group:		Applications
+Source0:	http://www.asternic.org/files/%{name}-%{version}.tar.gz
+# Source0-md5:	54b4f328c11172cbe0be3361c2a3160c
+Patch0:		%{name}-path.patch
+Patch1:		%{name}-cfg_path.patch
+URL:		http://www.asternic.org/
+BuildRequires:	rpmbuild(macros) >= 1.228
+Requires(post,preun):	/sbin/chkconfig
+#Requires:	Asterisk >= 1.2
+Requires:	php-program
+Requires:	php-pear-DB
+Requires:	php-pcre
+#Requires:	httpd
+#Requires:	Apache2
+#Requires:	mysql-client
+#Requires:	mysql
+Requires:	php-mysql
+Requires:	php-gettext
+Requires:	php-posix
+Requires:	perl
+Requires:	perl-CPAN
+Requires:	perl-Net-Telnet
+Requires:	perl-IPC-Signal
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Flash Operator Panel is a switchboard type application for the
+Asterisk PBX. It runs on a web browser with the flash plugin. It is
+able to display information about your PBX activity in real time. The
+layout is configurable (button sizes and colors, icons, etc). You can
+have more than 100 buttons active per screen.It also supports
+contexts: you can have one server running and many different client
+displays (for hosted PBX, different departments, etc). It can
+integrate with CRM software, by poping up a web page (and passing the
+CLID) when a specified button is ringing.
+
+%description -l pl
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{dhtml,flash,}
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,asterisk/%{name}}
+install -d $RPM_BUILD_ROOT%{_bindir}
+
+cp -R dhtml/* $RPM_BUILD_ROOT%{_datadir}/%{name}/dhtml
+cp -R flash/* $RPM_BUILD_ROOT%{_datadir}/%{name}/flash
+install init/op_panel_redhat.sh $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
+install op_server.pl	$RPM_BUILD_ROOT%{_bindir}
+install *.cfg $RPM_BUILD_ROOT%{_sysconfdir}/asterisk/%{name}
+
+
+
+%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 CHANGES RECIPES FAQ README UPGRADE TODO
+%attr(754,root,root) /etc/rc.d/init.d/%{name}
+#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%dir %{_sysconfdir}/asterisk/%{name}
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/asterisk/%{name}/*
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/%{name}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/05/13 13:27:17  wolvverine
+- init, draft, NFY
+
+
+
================================================================


More information about the pld-cvs-commit mailing list