/[smecontribs]/rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec
ViewVC logotype

Diff of /rpms/smeserver-freepbx/contribs10/smeserver-freepbx.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.15 by jpp, Fri Nov 18 18:02:39 2022 UTC Revision 1.28 by jpp, Tue Apr 23 03:27:22 2024 UTC
# Line 1  Line 1 
1  # $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 $
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 6  %define release 14
8  %define name smeserver-freepbx  %define name smeserver-freepbx
9    
10  Summary: Asterisk web GUI  Summary: Asterisk web GUI
# Line 20  Patch2: smeserver-freepbx-14-bz11986-ser Line 20  Patch2: smeserver-freepbx-14-bz11986-ser
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    Patch9: smeserver-freepbx-14-bz12481-bz12506.patch
27    
28  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot  BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
29  URL: http://www.freepbx.org/  URL: http://www.freepbx.org/
# Line 29  BuildRequires: tar Line 33  BuildRequires: tar
33    
34  Requires: mariadb  Requires: mariadb
35  Requires: nodejs >= 10  Requires: nodejs >= 10
36  #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
37  # freepbx 14 requires php56  # freepbx 14 requires php56
38  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
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  # freepbx 15 and 16
40    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
41    # freepbx 16
42    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
43    
44  Requires: httpd  Requires: httpd
45  Requires: php-pear  Requires: php-pear
46  Requires: /usr/sbin/asterisk  Requires: /usr/sbin/asterisk
 # not available for SME10 need to find module for mysql Requires: asterisk-addons  
47  #Requires: dahdi-tools  #Requires: dahdi-tools
48  #Requires: dahdi-linux  #Requires: dahdi-linux
49  Requires: sox  Requires: sox
# Line 44  Requires: mod_auth_tkt Line 51  Requires: mod_auth_tkt
51  Requires: e-smith-base  Requires: e-smith-base
52  Requires: freepbx-src  Requires: freepbx-src
53  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  
54  Requires: asterisk-voicemail  Requires: asterisk-voicemail
55  Requires: asterisk-configs  Requires: asterisk-configs
56  #SME10  #SME10
57  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-mysql asterisk-odbc asterisk-pjsip asterisk-sip  asterisk-festival asterisk-moh-opsound asterisk-snmp asterisk-mp3 asterisk-sounds-core-en asterisk-moh-opsound
58    Requires: asterisk-voicemail-plain
59  # conlicts with imap asterisk-voicemail-odbc asterisk-voicemail-plain  # conlicts with imap asterisk-voicemail-odbc asterisk-voicemail-plain
60  Requires: ffmpeg  Requires: ffmpeg
61  Requires: mpg123  Requires: mpg123
# Line 77  This package provide the integration of Line 83  This package provide the integration of
83    
84    
85  %changelog  %changelog
86    * Mon Apr 22 2024 Jean-Philippe Pialasse <jpp@koozali.org> 14-14.sme
87    - some logs not rotated [SME: 12506]
88    - moving freepbx php error log from /var/log/php [SME: 12481]
89    
90    * Wed Jan 04 2023 Jean-Philippe Pialasse <tests@pialasse.com> 14-13.sme
91    - fix permission denied on /usr/local/sbin/fwconsole from cron
92    
93    * Wed Dec 14 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-11.sme
94    - fix bugs installing FPBX 15
95    - fix amportal alerts [SME: 12259]
96    - compatible FBX 16 [SME: 12276]
97    - fix duplicate logrotate [SME: 12237]
98    - force php memory on install [SME: 10221]
99    
100    * Tue Dec 13 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-10.sme
101    - fix backup for FreePBX 15 and higher [SME: 12256]
102    - make compatible up to FreePBX 16 [SME: 11923]
103    
104    * Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-9.sme
105    - improve backup  [SME: 10703]
106    
107    * Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-8.sme
108    - fix patch for asterisk crontab [SME: 12227]
109    
110    * Wed Dec 07 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-7.sme
111    - fix voicemail not visible in UCP [SME: 12254]
112      force asterisk-voicemail-plain
113    
114  * Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-6.sme  * Fri Nov 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-6.sme
115  - fix creation of folder preventing migration [SME: 12226]  - fix creation of folder preventing migration [SME: 12226]
116    
# Line 360  This package provide the integration of Line 394  This package provide the integration of
394  %patch3 -p1  %patch3 -p1
395  %patch4 -p1  %patch4 -p1
396  %patch5 -p1  %patch5 -p1
397    %patch6 -p1
398    %patch7 -p1
399    %patch8 -p1
400    %patch9 -p1
401    rm -rf root/var/log/php
402    
403  %build  %build
404  # Build symlinks  # Build symlinks
# Line 369  perl createlinks Line 408  perl createlinks
408  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
409    
410  %{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session  %{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session
411    %{__mkdir_p} $RPM_BUILD_ROOT/var/log/freepbx
412    
413  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)  (cd root   ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
414  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \  /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
415            --file /sbin/e-smith/fwconsole 'attr(0755,root,root)' \
416          --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \          --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \
417          --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \          --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \
418          --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \          --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \
# Line 384  rm -rf $RPM_BUILD_ROOT Line 425  rm -rf $RPM_BUILD_ROOT
425          --file /etc/logrotate.d/asterisk 'config(noreplace)' \          --file /etc/logrotate.d/asterisk 'config(noreplace)' \
426          --dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \          --dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \
427          --file /usr/sbin/safe_asterisk  'attr(0755,root,root)' \          --file /usr/sbin/safe_asterisk  'attr(0755,root,root)' \
428          --dir /var/log/php/freepbx 'attr(0770,root,asterisk)' \          --dir /var/log/freepbx 'attr(0770,root,asterisk)' \
429          --dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \          --dir /var/lib/php/freepbx/sessions 'attr(0770,root,asterisk)' \
430          --dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \          --dir /var/lib/php/freepbx/temp 'attr(0770,root,asterisk)' \
431  |grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \  |grep -v '/var/lib/asterisk$'| grep -v '/etc/asterisk$' \
# Line 404  if [ `stat -c %U /tmp` == "asterisk"  ]; Line 445  if [ `stat -c %U /tmp` == "asterisk"  ];
445          chmod o+rwxt /tmp/          chmod o+rwxt /tmp/
446          chown root:root /tmp/          chown root:root /tmp/
447  fi  fi
448    if [ -f /var/log/php/freepbx/error.log ]; then
449            mv /var/log/php/freepbx/* /var/log/freepbx/  >& /dev/null || :
450    fi
451    
452  %preun  %preun
453  if [ $1 = 0 ] ; then  if [ $1 = 0 ] ; then


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed