]>
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 | |
6 | License: GPL v2 | |
7 | Group: Applications | |
8 | Source0: http://dl.sourceforge.net/amportal/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: aa100b6928a3e1a61603fb969485381a | |
10 | URL: http://www.coalescentsystems.ca/ | |
11 | Requires: php-program | |
12 | Requires: php-pear-DB | |
13 | Requires: php-pcre | |
14 | Requires: libxml2 | |
15 | Requires: libtiff | |
16 | Requires: lame | |
17 | ||
18 | #Requires: httpd | |
19 | #Requires: Apache2 | |
20 | #Requires: mysql-client | |
21 | #Requires: mysql | |
22 | ||
23 | Requires: php-mysql | |
24 | Requires: php-gettext | |
25 | Requires: php-posix | |
26 | Requires: php-gd | |
27 | Requires: openssl | |
28 | Requires: perl | |
29 | Requires: perl-CPAN | |
30 | Requires: bison | |
31 | Requires: ncurses | |
32 | Requires: audiofile | |
33 | Requires: curl | |
34 | Requires: sox | |
35 | Requires: perl-Net-Telnet | |
36 | Requires: perl-IPC-Signal | |
37 | Requires: perl-Proc-WaitStat | |
38 | Requires: asterisk-perl | |
39 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
40 | ||
41 | %description | |
42 | Coalescent Systems Inc. launched the freePBX (formerly Asterisk | |
43 | Management Portal) project to bring together best-of-breed | |
44 | applications to produce a standardized implementation of Asterisk | |
45 | complete with web-based administrative interface. | |
46 | ||
47 | %description -l pl | |
48 | ||
49 | %prep | |
50 | %setup -q | |
51 | #%patch0 -p1 | |
52 | # undos the source | |
53 | #find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' | |
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} | |
62 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs/{_asterisk,admin,recordings} | |
63 | ||
64 | cd ./amp_conf | |
65 | cp -R htdocs/* $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs | |
66 | install cgi-bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/cgi-bin | |
67 | install agi-bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/agi-bin | |
68 | install bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/bin | |
69 | install mohmp3/* $RPM_BUILD_ROOT%{_datadir}/%{name}/mohmp3 | |
70 | install sounds/* $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds | |
71 | ||
72 | #TODO | |
73 | #htdocs_panel | |
74 | #sbin | |
75 | #astetc | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | ||
81 | %files | |
82 | %defattr(644,root,root,755) | |
83 | #%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
84 | #%%dir %{_sysconfdir} | |
85 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
86 | #%attr(755,root,root) %{_bindir}/* | |
87 | #%{_datadir}/%{name} |