1 |
# $Id: smeserver-freepbx.spec,v 1.34 2020/01/21 08:52:40 jpp Exp $ |
# $Id: smeserver-freepbx.spec,v 1.2 2021/11/11 04:56:32 jpp Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
5 |
#%define fpbxversion 2.5.0 |
#%define fpbxversion 2.5.0 |
6 |
%define version 13 |
%define version 13 |
7 |
%define release 16 |
%define release 17 |
8 |
%define name smeserver-freepbx |
%define name smeserver-freepbx |
9 |
|
|
10 |
Summary: Asterisk web GUI |
Summary: Asterisk web GUI |
26 |
Patch8: smeserver-freepbx-13.bz10268.updatetktauth.patch |
Patch8: smeserver-freepbx-13.bz10268.updatetktauth.patch |
27 |
Patch9: smeserver-freepbx-13.bz10496.missing-tampered-files.patch |
Patch9: smeserver-freepbx-13.bz10496.missing-tampered-files.patch |
28 |
Patch10: smeserver-freepbx-13.bz10503.DeviceAndUser.patch |
Patch10: smeserver-freepbx-13.bz10503.DeviceAndUser.patch |
29 |
|
#### start SME10 patch |
30 |
|
Patch11: smeserver-freepbx-bz11613-sme10.patch |
31 |
|
|
32 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
33 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
35 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
36 |
BuildRequires: tar |
BuildRequires: tar |
37 |
|
|
38 |
Requires: mysql |
Requires: mariadb |
39 |
|
Requires: nodejs >= 10 |
40 |
|
#Requires: php-pear php-cgi php-common php-curl php-mbstring php-gd php-mysql php-gettext php-bcmath php-zip php-xml php-imap php-json php-process php-snmp |
41 |
|
Requires: php74-php-pear php74-php-cgi php74-php-common php74-php-curl php74-php-mbstring php74-php-gd php74-php-mysql php74-php-gettext php74-php-bcmath php74-php-zip php74-php-xml php74-php-imap php74-php-json php74-php-process php74-php-snmp |
42 |
Requires: httpd |
Requires: httpd |
43 |
Requires: php-pear |
Requires: php-pear |
44 |
Requires: /usr/sbin/asterisk |
Requires: /usr/sbin/asterisk |
45 |
Requires: asterisk-addons |
# not available for SME10 need to find module for mysql Requires: asterisk-addons |
46 |
Requires: dahdi-tools |
#Requires: dahdi-tools |
47 |
Requires: dahdi-linux |
#Requires: dahdi-linux |
48 |
Requires: sox |
Requires: sox |
49 |
Requires: mod_auth_tkt |
Requires: mod_auth_tkt |
50 |
Requires: e-smith-base |
Requires: e-smith-base |
51 |
Requires: freepbx-src |
Requires: freepbx-src |
52 |
Requires: asterisk-sounds-core-en-ulaw |
Requires: asterisk-sounds-core-en-ulaw |
53 |
Requires: asterisk-sounds-extra-en-ulaw |
# not available for sme10 Requires: asterisk-sounds-extra-en-ulaw |
54 |
Requires: asterisk-resample |
# not available for sme10 Requires: asterisk-resample |
55 |
Requires: asterisk-voicemail |
Requires: asterisk-voicemail |
56 |
Requires: asterisk-configs |
Requires: asterisk-configs |
57 |
|
#SME10 |
58 |
|
Requires: asterisk-mysql asterisk-odbc asterisk-pjsip asterisk-sip asterisk-festival asterisk-moh-opsound asterisk-snmp asterisk-mp3 asterisk-sounds-core-en asterisk-moh-opsound |
59 |
|
# conlicts with imap asterisk-voicemail-odbc asterisk-voicemail-plain |
60 |
Requires: ffmpeg |
Requires: ffmpeg |
61 |
Requires: mpg123 |
Requires: mpg123 |
62 |
Requires: mysql-connector-odbc |
Requires: mysql-connector-odbc |
63 |
Requires: unixODBC |
Requires: unixODBC |
64 |
Requires: asterisk-odbc |
Requires: asterisk-odbc |
65 |
Requires: lame |
Requires: lame |
66 |
Requires: e-smith-manager >= 2.6.0-22 |
Requires: xz |
67 |
|
|
68 |
#Buildarch: noarch |
#Buildarch: noarch |
69 |
AutoReqProv: no |
AutoReqProv: no |
75 |
|
|
76 |
|
|
77 |
%changelog |
%changelog |
78 |
|
* Wed Nov 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 13-17.sme |
79 |
|
- first import to SME10 [SME: 11613] |
80 |
|
- make it Freepbx 14 compatible [SME: 10705] |
81 |
|
add dependencies for SME10 mariadb nodejs >= 10 php74* |
82 |
|
remove missing rpms asterisk-sounds-extra-en-ulaw asterisk-resample asterisk-addons |
83 |
|
remove double owned folders /etc/asterisk /var/lib/asterisk |
84 |
|
systemd ready for asterisk(disabled), freepbx, httpd-fpbx |
85 |
|
smeserver-freepbx-update event created NEED TEST |
86 |
|
php74-php-fpm fragment |
87 |
|
update httpd-fpbx template for php-fpm use |
88 |
|
TODO : update httpd-e-smith to use php-fpm for fpbx |
89 |
|
TODO : update install script for php74 |
90 |
|
add a copy of safe_asterisk |
91 |
|
TODO : create php folders and set rights |
92 |
|
improve logrotate |
93 |
|
|
94 |
* Mon Jan 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> 13-16.sme |
* Mon Jan 20 2020 Jean-Philipe Pialasse <tests@pialasse.com> 13-16.sme |
95 |
- add required modules to enable cel and cdr logging and search [SME: 10620] |
- add required modules to enable cel and cdr logging and search [SME: 10620] |
96 |
- add requires lame [SME: 9859] |
- add requires lame [SME: 9859] |
344 |
|
|
345 |
# until rebuilt of a smeserver-freepbx tar file: |
# until rebuilt of a smeserver-freepbx tar file: |
346 |
rm -rf root/etc/e-smith/db/configuration/defaults/freepbx/DeviceAndUser |
rm -rf root/etc/e-smith/db/configuration/defaults/freepbx/DeviceAndUser |
347 |
|
%patch11 -p1 |
348 |
|
|
349 |
%build |
%build |
350 |
# Build symlinks |
# Build symlinks |
369 |
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
370 |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
371 |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
372 |
|
--file /usr/local/bin/safe_asterisk 'attr(0755,root,root)' \ |
373 |
|
|grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \ |
374 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
375 |
|
|
376 |
%clean |
%clean |