]>
Commit | Line | Data |
---|---|---|
7294cbc7 | 1 | # TODO |
fd5bb5e4 MWP |
2 | # - remowe jpgraph, add patch |
3 | # - pl translations | |
ba69b208 | 4 | Summary: FreePBX - Asterisk Management Portal (AMP) |
0964f73a | 5 | Summary(pl.UTF-8): FreePBX - interfejs WWW do Asteriska |
ba69b208 | 6 | Name: freepbx |
ae2fd0bb | 7 | Version: 2.3.0 |
ba69b208 | 8 | Release: 0.1 |
8031f0b3 | 9 | License: GPL |
ba69b208 MWP |
10 | Group: Applications |
11 | Source0: http://dl.sourceforge.net/amportal/%{name}-%{version}.tar.gz | |
ae2fd0bb | 12 | # Source0-md5: c64b0f6be4a9d2369c17c7b9227c0f00 |
fd5bb5e4 MWP |
13 | #Source1: %{name}.conf |
14 | #Source2: %{name}-config.php | |
15 | Patch0: %{name}-jpgraph.patch | |
ba69b208 | 16 | URL: http://www.coalescentsystems.ca/ |
a6a3110e | 17 | BuildRequires: rpmbuild(macros) >= 1.268 |
8031f0b3 | 18 | Requires(post,preun): /sbin/chkconfig |
fd5bb5e4 | 19 | Requires: %{name}(DB_Driver) = %{version}-%{release} |
1cb3613f JB |
20 | #Requires: apache >= 2 |
21 | #Requires: asterisk >= 1.2 | |
a6a3110e ER |
22 | Requires: asterisk-perl |
23 | Requires: audiofile | |
24 | Requires: bison | |
25 | Requires: curl | |
84be84f3 | 26 | Requires: jpgraph |
a6a3110e ER |
27 | Requires: lame |
28 | Requires: libtiff | |
29 | Requires: libxml2 | |
ba69b208 | 30 | #Requires: mysql |
a6a3110e ER |
31 | #Requires: mysql-client |
32 | Requires: ncurses | |
ba69b208 MWP |
33 | Requires: openssl |
34 | Requires: perl | |
35 | Requires: perl-CPAN | |
ba69b208 | 36 | Requires: perl-IPC-Signal |
a6a3110e | 37 | Requires: perl-Net-Telnet |
ba69b208 | 38 | Requires: perl-Proc-WaitStat |
84be84f3 ER |
39 | Requires: php(gd) |
40 | Requires: php(gettext) | |
41 | Requires: php(pcre) | |
42 | Requires: php(posix) | |
a6a3110e | 43 | Requires: php-pear-DB |
a6a3110e ER |
44 | Requires: php-program |
45 | Requires: sox | |
ba69b208 MWP |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | Coalescent Systems Inc. launched the freePBX (formerly Asterisk | |
50 | Management Portal) project to bring together best-of-breed | |
51 | applications to produce a standardized implementation of Asterisk | |
52 | complete with web-based administrative interface. | |
53 | ||
0f599e7a JR |
54 | %description -l pl.UTF-8 |
55 | Coalescent Systems Inc. uruchomiło projekt freePBX (poprzednio | |
56 | Asterisk Management Portal) aby połączyć najlepsze istniejące | |
84be84f3 | 57 | aplikacje w celu stworzenia ustandaryzowanej implementacji Asteriska |
0f599e7a | 58 | uzupełnionego o interfejs administracyjny WWW. |
ba69b208 | 59 | |
fd5bb5e4 MWP |
60 | %package db-mysql |
61 | Summary: FreePBX DB Driver for MySQL | |
0964f73a | 62 | Summary(pl.UTF-8): Sterownik bazy danych MySQL dla FreePBX |
fd5bb5e4 | 63 | Group: Applications/WWW |
84be84f3 | 64 | Requires: php(mysql) |
fd5bb5e4 MWP |
65 | Provides: %{name}(DB_Driver) = %{version}-%{release} |
66 | ||
67 | %description db-mysql | |
68 | This virtual package provides MySQL database backend for FreePBX. | |
69 | ||
0f599e7a | 70 | %description db-mysql -l pl.UTF-8 |
84be84f3 | 71 | Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla FreePBX. |
fd5bb5e4 | 72 | |
ba69b208 MWP |
73 | %prep |
74 | %setup -q | |
fd5bb5e4 | 75 | %patch0 -p1 |
8031f0b3 | 76 | find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,' |
7294cbc7 | 77 | rm -dfr htdocs/admin/cdr/jpgraph_lib |
ba69b208 | 78 | |
ba69b208 MWP |
79 | %install |
80 | rm -rf $RPM_BUILD_ROOT | |
ba69b208 | 81 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{cgi-bin,agi-bin,astetc,bin,htdocs,htdocs_panel,mohmp3,sbin,sounds} |
8031f0b3 MWP |
82 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d |
83 | install -d $RPM_BUILD_ROOT%{_bindir} | |
ba69b208 | 84 | |
7294cbc7 | 85 | cd amp_conf |
ba69b208 | 86 | cp -R htdocs/* $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs |
ae2fd0bb | 87 | #install cgi-bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/cgi-bin |
ba69b208 MWP |
88 | install agi-bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/agi-bin |
89 | install bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/bin | |
90 | install mohmp3/* $RPM_BUILD_ROOT%{_datadir}/%{name}/mohmp3 | |
91 | install sounds/* $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds | |
92 | ||
8031f0b3 MWP |
93 | #install init/op_panel_redhat.sh $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name} |
94 | #install op_server.pl $RPM_BUILD_ROOT%{_bindir} | |
ba69b208 MWP |
95 | #TODO |
96 | #htdocs_panel | |
97 | #sbin | |
98 | #astetc | |
99 | ||
100 | %clean | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
8031f0b3 MWP |
103 | %post |
104 | /sbin/chkconfig --add %{name} | |
105 | %service %{name} restart | |
106 | ||
107 | %preun | |
108 | if [ "$1" = "0" ]; then | |
109 | %service -q %{name} stop | |
110 | /sbin/chkconfig --del %{name} | |
111 | fi | |
ba69b208 MWP |
112 | |
113 | %files | |
114 | %defattr(644,root,root,755) | |
115 | #%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO | |
fd5bb5e4 | 116 | #%attr(754,root,root) /etc/rc.d/init.d/%{name} |
8031f0b3 | 117 | #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} |
fd5bb5e4 MWP |
118 | #%dir %{_sysconfdir} |
119 | #%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/* | |
120 | #%attr(755,root,root) %{_bindir}/* | |
121 | #%{_datadir}/%{name} | |
122 | %lang(pt_BR) %{_datadir}/%{name}/htdocs/recordings/locale/de_DE/LC_MESSAGES/* | |
123 | %lang(el_GR) %{_datadir}/%{name}/htdocs/recordings/locale/el_GR/LC_MESSAGES/* | |
124 | %lang(es) %{_datadir}/%{name}/htdocs/recordings/locale/es_ES/LC_MESSAGES/* | |
125 | %lang(fr) %{_datadir}/%{name}/htdocs/recordings/locale/fr_FR/LC_MESSAGES/* | |
126 | %lang(he_IL) %{_datadir}/%{name}/htdocs/recordings/locale/he_IL/LC_MESSAGES/* | |
127 | %lang(hu) %{_datadir}/%{name}/htdocs/recordings/locale/hu_HU/LC_MESSAGES/* | |
128 | %lang(it) %{_datadir}/%{name}/htdocs/recordings/locale/it_IT/LC_MESSAGES/* | |
129 | %lang(pt_BR) %{_datadir}/%{name}/htdocs/recordings/locale/pt_BR/LC_MESSAGES/* | |
130 | %lang(sv_SE) %{_datadir}/%{name}/htdocs/recordings/locale/sv_SE/LC_MESSAGES/* | |
131 | #%lang(pl) %{_datadir}/%{name}/htdocs/recordings/locale/pl_PL/LC_MESSAGES/* | |
132 | ||
133 | %lang(de) %{_datadir}/%{name}/htdocs/admin/i18n/de_DE/LC_MESSAGES/* | |
134 | %lang(es) %{_datadir}/%{name}/htdocs/admin/i18n/es_ES/LC_MESSAGES/* | |
135 | %lang(fr) %{_datadir}/%{name}/htdocs/admin/i18n/fr_FR/LC_MESSAGES/* | |
136 | %lang(it) %{_datadir}/%{name}/htdocs/admin/i18n/it_IT/LC_MESSAGES/* | |
137 | #%lang(pl) %{_datadir}/%{name}/htdocs/admin/i18n/pl_PL/LC_MESSAGES/* | |
138 | ||
139 | %files db-mysql | |
140 | %defattr(644,root,root,755) |