--- rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec 2022/11/18 18:02:39 1.15 +++ rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec 2024/04/23 03:27:22 1.28 @@ -1,10 +1,10 @@ -# $Id: smeserver-freepbx.spec,v 1.14 2022/07/30 17:54:15 brianr Exp $ +# $Id: smeserver-freepbx.spec,v 1.27 2024/04/23 03:25:29 jpp Exp $ # Authority: vip-ire # Name: Daniel Berteaud #%define fpbxversion 2.5.0 %define version 14 -%define release 6 +%define release 14 %define name smeserver-freepbx Summary: Asterisk web GUI @@ -20,6 +20,10 @@ Patch2: smeserver-freepbx-14-bz11986-ser 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 +Patch9: smeserver-freepbx-14-bz12481-bz12506.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot URL: http://www.freepbx.org/ @@ -29,14 +33,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 @@ -44,12 +51,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 @@ -77,6 +83,34 @@ This package provide the integration of %changelog +* Mon Apr 22 2024 Jean-Philippe Pialasse 14-14.sme +- some logs not rotated [SME: 12506] +- moving freepbx php error log from /var/log/php [SME: 12481] + +* Wed Jan 04 2023 Jean-Philippe Pialasse 14-13.sme +- fix permission denied on /usr/local/sbin/fwconsole from cron + +* Wed Dec 14 2022 Jean-Philippe Pialasse 14-11.sme +- fix bugs installing FPBX 15 +- fix amportal alerts [SME: 12259] +- compatible FBX 16 [SME: 12276] +- fix duplicate logrotate [SME: 12237] +- force php memory on install [SME: 10221] + +* 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] @@ -360,6 +394,11 @@ This package provide the integration of %patch3 -p1 %patch4 -p1 %patch5 -p1 +%patch6 -p1 +%patch7 -p1 +%patch8 -p1 +%patch9 -p1 +rm -rf root/var/log/php %build # Build symlinks @@ -369,9 +408,11 @@ perl createlinks rm -rf $RPM_BUILD_ROOT %{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session +%{__mkdir_p} $RPM_BUILD_ROOT/var/log/freepbx (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)' \ @@ -384,7 +425,7 @@ rm -rf $RPM_BUILD_ROOT --file /etc/logrotate.d/asterisk 'config(noreplace)' \ --dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ --file /usr/sbin/safe_asterisk 'attr(0755,root,root)' \ - --dir /var/log/php/freepbx 'attr(0770,root,asterisk)' \ + --dir /var/log/freepbx 'attr(0770,root,asterisk)' \ --dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \ --dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \ |grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \ @@ -404,6 +445,9 @@ if [ `stat -c %U /tmp` == "asterisk" ]; chmod o+rwxt /tmp/ chown root:root /tmp/ fi +if [ -f /var/log/php/freepbx/error.log ]; then + mv /var/log/php/freepbx/* /var/log/freepbx/ >& /dev/null || : +fi %preun if [ $1 = 0 ] ; then