]>
Commit | Line | Data |
---|---|---|
ba69b208 | 1 | Summary: FreePBX - Asterisk Management Portal (AMP) |
7c4fe11f | 2 | Summary(pl): FreePBX - interfejs WWW do Asteriska |
ba69b208 MWP |
3 | Name: freepbx |
4 | Version: 2.0.1 | |
5 | Release: 0.1 | |
8031f0b3 | 6 | License: GPL |
ba69b208 MWP |
7 | Group: Applications |
8 | Source0: http://dl.sourceforge.net/amportal/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: aa100b6928a3e1a61603fb969485381a | |
10 | URL: http://www.coalescentsystems.ca/ | |
a6a3110e | 11 | BuildRequires: rpmbuild(macros) >= 1.268 |
8031f0b3 | 12 | Requires(post,preun): /sbin/chkconfig |
a6a3110e | 13 | #Requires: Apache2 |
8031f0b3 | 14 | #Requires: Asterisk >= 1.2 |
a6a3110e ER |
15 | Requires: asterisk-perl |
16 | Requires: audiofile | |
17 | Requires: bison | |
18 | Requires: curl | |
ba69b208 | 19 | #Requires: httpd |
a6a3110e ER |
20 | Requires: lame |
21 | Requires: libtiff | |
22 | Requires: libxml2 | |
ba69b208 | 23 | #Requires: mysql |
a6a3110e ER |
24 | #Requires: mysql-client |
25 | Requires: ncurses | |
ba69b208 MWP |
26 | Requires: openssl |
27 | Requires: perl | |
28 | Requires: perl-CPAN | |
ba69b208 | 29 | Requires: perl-IPC-Signal |
a6a3110e | 30 | Requires: perl-Net-Telnet |
ba69b208 | 31 | Requires: perl-Proc-WaitStat |
a6a3110e ER |
32 | Requires: php-gd |
33 | Requires: php-gettext | |
34 | Requires: php-mysql | |
35 | Requires: php-pcre | |
36 | Requires: php-pear-DB | |
37 | Requires: php-posix | |
38 | Requires: php-program | |
39 | Requires: sox | |
ba69b208 MWP |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
43 | Coalescent Systems Inc. launched the freePBX (formerly Asterisk | |
44 | Management Portal) project to bring together best-of-breed | |
45 | applications to produce a standardized implementation of Asterisk | |
46 | complete with web-based administrative interface. | |
47 | ||
48 | %description -l pl | |
49 | ||
50 | %prep | |
51 | %setup -q | |
52 | #%patch0 -p1 | |
8031f0b3 | 53 | find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' |
ba69b208 MWP |
54 | |
55 | %build | |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | install -d $RPM_BUILD_ROOT | |
61 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{cgi-bin,agi-bin,astetc,bin,htdocs,htdocs_panel,mohmp3,sbin,sounds} | |
8031f0b3 MWP |
62 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
63 | install -d $RPM_BUILD_ROOT%{_bindir} | |
ba69b208 MWP |
64 | |
65 | cd ./amp_conf | |
66 | cp -R htdocs/* $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs | |
67 | install cgi-bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/cgi-bin | |
68 | install agi-bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/agi-bin | |
69 | install bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/bin | |
70 | install mohmp3/* $RPM_BUILD_ROOT%{_datadir}/%{name}/mohmp3 | |
71 | install sounds/* $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds | |
72 | ||
8031f0b3 MWP |
73 | #install init/op_panel_redhat.sh $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name} |
74 | #install op_server.pl $RPM_BUILD_ROOT%{_bindir} | |
ba69b208 MWP |
75 | #TODO |
76 | #htdocs_panel | |
77 | #sbin | |
78 | #astetc | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
8031f0b3 MWP |
83 | %post |
84 | /sbin/chkconfig --add %{name} | |
85 | %service %{name} restart | |
86 | ||
87 | %preun | |
88 | if [ "$1" = "0" ]; then | |
89 | %service -q %{name} stop | |
90 | /sbin/chkconfig --del %{name} | |
91 | fi | |
ba69b208 MWP |
92 | |
93 | %files | |
94 | %defattr(644,root,root,755) | |
95 | #%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
8031f0b3 MWP |
96 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
97 | #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
98 | %dir %{_sysconfdir} | |
99 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
100 | %attr(755,root,root) %{_bindir}/* | |
101 | %{_datadir}/%{name} |