1 |
# $Id: smeserver-freepbx.spec,v 1.34 2020/01/21 08:52:40 jpp Exp $ |
# $Id: smeserver-freepbx.spec,v 1.4 2022/03/27 20:13:44 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 |
|
# freepbx 14 requires php56 |
42 |
|
Requires: php56-php-pear php56-php-cgi php56-php-common php56-php-curl php56-php-mbstring php56-php-gd php56-php-mysql php56-php-gettext php56-php-bcmath php56-php-zip php56-php-xml php56-php-imap php56-php-json php56-php-process php56-php-snmp |
43 |
|
#Requires: php70-php-pear php70-php-cgi php70-php-common php70-php-curl php70-php-mbstring php70-php-gd php70-php-mysql php70-php-gettext php70-php-bcmath php70-php-zip php70-php-xml php70-php-imap php70-php-json php70-php-process php70-php-snmp |
44 |
|
#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 |
45 |
Requires: httpd |
Requires: httpd |
46 |
Requires: php-pear |
Requires: php-pear |
47 |
Requires: /usr/sbin/asterisk |
Requires: /usr/sbin/asterisk |
48 |
Requires: asterisk-addons |
# not available for SME10 need to find module for mysql Requires: asterisk-addons |
49 |
Requires: dahdi-tools |
#Requires: dahdi-tools |
50 |
Requires: dahdi-linux |
#Requires: dahdi-linux |
51 |
Requires: sox |
Requires: sox |
52 |
Requires: mod_auth_tkt |
Requires: mod_auth_tkt |
53 |
Requires: e-smith-base |
Requires: e-smith-base |
54 |
Requires: freepbx-src |
Requires: freepbx-src |
55 |
Requires: asterisk-sounds-core-en-ulaw |
Requires: asterisk-sounds-core-en-ulaw |
56 |
Requires: asterisk-sounds-extra-en-ulaw |
# not available for sme10 Requires: asterisk-sounds-extra-en-ulaw |
57 |
Requires: asterisk-resample |
# not available for sme10 Requires: asterisk-resample |
58 |
Requires: asterisk-voicemail |
Requires: asterisk-voicemail |
59 |
Requires: asterisk-configs |
Requires: asterisk-configs |
60 |
|
#SME10 |
61 |
|
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 |
62 |
|
# conlicts with imap asterisk-voicemail-odbc asterisk-voicemail-plain |
63 |
Requires: ffmpeg |
Requires: ffmpeg |
64 |
Requires: mpg123 |
Requires: mpg123 |
65 |
Requires: mysql-connector-odbc |
Requires: mysql-connector-odbc |
66 |
Requires: unixODBC |
Requires: unixODBC |
67 |
Requires: asterisk-odbc |
Requires: asterisk-odbc |
68 |
Requires: lame |
Requires: lame |
69 |
Requires: e-smith-manager >= 2.6.0-22 |
Requires: xz |
70 |
|
Requires: asterisk-ael asterisk-iax2 asterisk-fax asterisk-ldap asterisk-misdn |
71 |
|
Requires: MySQL-python opus nmap icu vsftpd libicu-devel gcc-c++ |
72 |
|
Requires: asterisk-moh-opsound-alaw asterisk-moh-opsound-g722 asterisk-moh-opsound-g729 asterisk-moh-opsound-gsm asterisk-moh-opsound-siren14 asterisk-moh-opsound-siren7 asterisk-moh-opsound-sln16 asterisk-moh-opsound-ulaw asterisk-moh-opsound-wav |
73 |
|
Requires: asterisk-sounds-core-en-alaw asterisk-sounds-core-en-g722 asterisk-sounds-core-en-g729 asterisk-sounds-core-en-gsm asterisk-sounds-core-en-siren14 asterisk-sounds-core-en-siren7 asterisk-sounds-core-en-sln16 asterisk-sounds-core-en-ulaw asterisk-sounds-core-en-wav |
74 |
|
# Requires: asterisk-sounds-core-fr-alaw asterisk-sounds-core-fr-g722 asterisk-sounds-core-fr-g729 asterisk-sounds-core-fr-gsm asterisk-sounds-core-fr-siren14 asterisk-sounds-core-fr-siren7 asterisk-sounds-core-fr-sln16 asterisk-sounds-core-fr-ulaw asterisk-sounds-core-fr-wav |
75 |
|
# Requires: asterisk-sounds-core-it-alaw asterisk-sounds-core-it-g722 asterisk-sounds-core-it-g729 asterisk-sounds-core-it-gsm asterisk-sounds-core-it-siren14 asterisk-sounds-core-it-siren7 asterisk-sounds-core-it-sln16 asterisk-sounds-core-it-ulaw asterisk-sounds-core-it-wav |
76 |
|
# Requires: asterisk-sounds-core-es-alaw asterisk-sounds-core-es-g722 asterisk-sounds-core-es-g729 asterisk-sounds-core-es-gsm asterisk-sounds-core-es-siren14 asterisk-sounds-core-es-siren7 asterisk-sounds-core-es-sln16 asterisk-sounds-core-es-ulaw asterisk-sounds-core-es-wav |
77 |
|
|
78 |
#Buildarch: noarch |
#Buildarch: noarch |
79 |
AutoReqProv: no |
AutoReqProv: no |
85 |
|
|
86 |
|
|
87 |
%changelog |
%changelog |
88 |
|
* Wed Nov 10 2021 Jean-Philippe Pialasse <tests@pialasse.com> 13-17.sme |
89 |
|
- first import to SME10 [SME: 11613] |
90 |
|
- make it Freepbx 14 compatible [SME: 10705] |
91 |
|
add dependencies for SME10 mariadb nodejs >= 10 php70* |
92 |
|
remove missing rpms asterisk-sounds-extra-en-ulaw asterisk-resample asterisk-addons |
93 |
|
remove double owned folders /etc/asterisk /var/lib/asterisk |
94 |
|
systemd ready for asterisk(disabled), freepbx, httpd-fpbx |
95 |
|
smeserver-freepbx-update event created NEED TEST |
96 |
|
php70-php-fpm fragment |
97 |
|
update httpd-fpbx template for php-fpm use |
98 |
|
update httpd-e-smith to use php-fpm for fpbx |
99 |
|
update install script for php74 |
100 |
|
add a copy of safe_asterisk |
101 |
|
create php folders and set rights |
102 |
|
improve logrotate |
103 |
|
|
104 |
* 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 |
105 |
- 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] |
106 |
- add requires lame [SME: 9859] |
- add requires lame [SME: 9859] |
354 |
|
|
355 |
# until rebuilt of a smeserver-freepbx tar file: |
# until rebuilt of a smeserver-freepbx tar file: |
356 |
rm -rf root/etc/e-smith/db/configuration/defaults/freepbx/DeviceAndUser |
rm -rf root/etc/e-smith/db/configuration/defaults/freepbx/DeviceAndUser |
357 |
|
rm -rf root/var/log/httpd-fpbx |
358 |
|
%patch11 -p1 |
359 |
|
mkdir -p root/var/log/php/freepbx |
360 |
|
mkdir -p root/var/lib/php/freepbx/sessions root/var/lib/php/freepbx/temp |
361 |
|
|
362 |
%build |
%build |
363 |
# Build symlinks |
# Build symlinks |
377 |
--dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \ |
--dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \ |
378 |
--file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \ |
--file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \ |
379 |
--dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \ |
--dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \ |
|
--dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \ |
|
380 |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
381 |
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
--file /usr/share/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
382 |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
383 |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
384 |
|
--file /usr/sbin/safe_asterisk 'attr(0755,root,root)' \ |
385 |
|
--dir /var/log/php/freepbx 'attr(0770,root,asterisk)' \ |
386 |
|
--dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \ |
387 |
|
--dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \ |
388 |
|
|grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \ |
389 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
390 |
|
|
391 |
%clean |
%clean |