--- rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec 2022/07/30 17:54:15 1.14 +++ rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec 2022/12/15 07:06:18 1.21 @@ -1,10 +1,10 @@ -# $Id: smeserver-freepbx.spec,v 1.13 2022/07/22 06:54:14 jpp Exp $ +# $Id: smeserver-freepbx.spec,v 1.20 2022/12/15 05:08:55 jpp Exp $ # Authority: vip-ire # Name: Daniel Berteaud #%define fpbxversion 2.5.0 %define version 14 -%define release 5 +%define release 11 %define name smeserver-freepbx Summary: Asterisk web GUI @@ -19,6 +19,10 @@ Patch1: smeserver-freepbx-14-bz11924-sou Patch2: smeserver-freepbx-14-bz11986-service-fwconsole.patch Patch3: smeserver-freepbx-14-bz12009-backup.patch Patch4: smeserver-freepbx-14-bz12046-httpd24.patch +Patch5: smeserver-freepbx-14-bz12226.patch +Patch6: smeserver-freepbx-14-bz10703-backup.patch +Patch7: smeserver-freepbx-14-bz11923-bz12256.patch +Patch8: smeserver-freepbx-14-go15.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot URL: http://www.freepbx.org/ @@ -28,14 +32,17 @@ BuildRequires: tar Requires: mariadb Requires: nodejs >= 10 -#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 # freepbx 14 requires php56 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: 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 +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 16 +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 + Requires: httpd Requires: php-pear Requires: /usr/sbin/asterisk -# not available for SME10 need to find module for mysql Requires: asterisk-addons #Requires: dahdi-tools #Requires: dahdi-linux Requires: sox @@ -43,12 +50,11 @@ Requires: mod_auth_tkt Requires: e-smith-base Requires: freepbx-src Requires: asterisk-sounds-core-en-ulaw -# not available for sme10 Requires: asterisk-sounds-extra-en-ulaw -# not available for sme10 Requires: asterisk-resample Requires: asterisk-voicemail Requires: asterisk-configs #SME10 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 +Requires: asterisk-voicemail-plain # conlicts with imap asterisk-voicemail-odbc asterisk-voicemail-plain Requires: ffmpeg Requires: mpg123 @@ -76,7 +82,27 @@ This package provide the integration of %changelog -* Sat Jul 30 2022 Brian Read %{version}-5.sme +* Wed Dec 14 2022 Jean-Philippe Pialasse 14-11.sme +- fix bugs installing FPBX 15 + +* Tue Dec 13 2022 Jean-Philippe Pialasse 14-10.sme +- fix backup for FreePBX 15 and higher [SME: 12256] +- make compatible up to FreePBX 16 [SME: 11923] + +* Wed Dec 07 2022 Jean-Philippe Pialasse 14-9.sme +- improve backup [SME: 10703] + +* Wed Dec 07 2022 Jean-Philippe Pialasse 14-8.sme +- fix patch for asterisk crontab [SME: 12227] + +* Wed Dec 07 2022 Jean-Philippe Pialasse 14-7.sme +- fix voicemail not visible in UCP [SME: 12254] + force asterisk-voicemail-plain + +* Fri Nov 18 2022 Jean-Philippe Pialasse 14-6.sme +- fix creation of folder preventing migration [SME: 12226] + +* Sat Jul 30 2022 Brian Read 14-5.sme - Re-build and link to latest devtools [SME: 11997] * Fri Jul 22 2022 Jean-Philippe Pialasse 14-4.sme @@ -355,6 +381,10 @@ This package provide the integration of %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 %build # Build symlinks @@ -367,6 +397,7 @@ rm -rf $RPM_BUILD_ROOT (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ + --file /sbin/e-smith/fwconsole 'attr(0755,root,root)' \ --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \ --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \