1 |
# $Id: smeserver-freepbx.spec,v 1.16 2022/12/07 06:01:37 jpp Exp $ |
# $Id: smeserver-freepbx.spec,v 1.21 2022/12/15 07:06:18 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 14 |
%define version 14 |
7 |
%define release 8 |
%define release 11 |
8 |
%define name smeserver-freepbx |
%define name smeserver-freepbx |
9 |
|
|
10 |
Summary: Asterisk web GUI |
Summary: Asterisk web GUI |
20 |
Patch3: smeserver-freepbx-14-bz12009-backup.patch |
Patch3: smeserver-freepbx-14-bz12009-backup.patch |
21 |
Patch4: smeserver-freepbx-14-bz12046-httpd24.patch |
Patch4: smeserver-freepbx-14-bz12046-httpd24.patch |
22 |
Patch5: smeserver-freepbx-14-bz12226.patch |
Patch5: smeserver-freepbx-14-bz12226.patch |
23 |
|
Patch6: smeserver-freepbx-14-bz10703-backup.patch |
24 |
|
Patch7: smeserver-freepbx-14-bz11923-bz12256.patch |
25 |
|
Patch8: smeserver-freepbx-14-go15.patch |
26 |
|
|
27 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
28 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
32 |
|
|
33 |
Requires: mariadb |
Requires: mariadb |
34 |
Requires: nodejs >= 10 |
Requires: nodejs >= 10 |
35 |
#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 |
Requires: jq |
36 |
# freepbx 14 requires php56 |
# freepbx 14 requires php56 |
37 |
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 |
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 |
38 |
#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 |
# freepbx 15 and 16 |
39 |
|
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 |
40 |
|
# freepbx 16 |
41 |
|
Requires: php80-php-pear php80-php-cgi php80-php-common php80-php-curl php80-php-mbstring php80-php-gd php80-php-mysql php80-php-gettext php80-php-bcmath php80-php-zip php80-php-xml php80-php-imap php80-php-json php80-php-process php80-php-snmp |
42 |
|
|
43 |
Requires: httpd |
Requires: httpd |
44 |
Requires: php-pear |
Requires: php-pear |
45 |
Requires: /usr/sbin/asterisk |
Requires: /usr/sbin/asterisk |
|
# 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 |
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 |
|
# not available for sme10 Requires: asterisk-sounds-extra-en-ulaw |
|
|
# not available for sme10 Requires: asterisk-resample |
|
53 |
Requires: asterisk-voicemail |
Requires: asterisk-voicemail |
54 |
Requires: asterisk-configs |
Requires: asterisk-configs |
55 |
#SME10 |
#SME10 |
82 |
|
|
83 |
|
|
84 |
%changelog |
%changelog |
85 |
|
* Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-11.sme |
86 |
|
- fix bugs installing FPBX 15 |
87 |
|
- fix amportal alerts [SME: 12259] |
88 |
|
- compatible FBX 16 [SME: 12276] |
89 |
|
- fix duplicate logrotate [SME: 12237] |
90 |
|
- force php memory on install [SME: 10221] |
91 |
|
|
92 |
|
* Tue Dec 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-10.sme |
93 |
|
- fix backup for FreePBX 15 and higher [SME: 12256] |
94 |
|
- make compatible up to FreePBX 16 [SME: 11923] |
95 |
|
|
96 |
|
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-9.sme |
97 |
|
- improve backup [SME: 10703] |
98 |
|
|
99 |
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-8.sme |
* Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-8.sme |
100 |
- fix patch for asterisk crontab [SME: 12227] |
- fix patch for asterisk crontab [SME: 12227] |
101 |
|
|
386 |
%patch3 -p1 |
%patch3 -p1 |
387 |
%patch4 -p1 |
%patch4 -p1 |
388 |
%patch5 -p1 |
%patch5 -p1 |
389 |
|
%patch6 -p1 |
390 |
|
%patch7 -p1 |
391 |
|
%patch8 -p1 |
392 |
|
|
393 |
%build |
%build |
394 |
# Build symlinks |
# Build symlinks |
401 |
|
|
402 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
403 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
404 |
|
--file /sbin/e-smith/fwconsole 'attr(0755,root,root)' \ |
405 |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
406 |
--file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ |
--file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ |
407 |
--dir /var/service/httpd-fpbx 'attr(01755,root,root)' \ |
--dir /var/service/httpd-fpbx 'attr(01755,root,root)' \ |