1 |
# $Id: smeserver-freepbx.spec,v 1.5 2022/03/28 03:13:09 jpp Exp $ |
# $Id: smeserver-freepbx.spec,v 1.10 2022/05/31 04:17:50 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 1 |
%define release 4 |
8 |
%define name smeserver-freepbx |
%define name smeserver-freepbx |
9 |
|
|
10 |
Summary: Asterisk web GUI |
Summary: Asterisk web GUI |
14 |
License: GPL |
License: GPL |
15 |
Group: System/Servers |
Group: System/Servers |
16 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
17 |
|
Patch0: smeserver-freepbx-14-bz11940-bz9756-cron.patch |
18 |
|
Patch1: smeserver-freepbx-14-bz11924-sounds.patch |
19 |
|
Patch2: smeserver-freepbx-14-bz11986-service-fwconsole.patch |
20 |
|
Patch3: smeserver-freepbx-14-bz12009-backup.patch |
21 |
|
|
22 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
74 |
|
|
75 |
|
|
76 |
%changelog |
%changelog |
77 |
|
* Fri Jul 22 2022 Jean-Philippe Pialasse <tests@pialasse.com> %{version}-4.sme |
78 |
|
- add to core backup [SME: 12009] |
79 |
|
|
80 |
|
* Tue May 31 2022 Jean-Philippe Pialasse <tests@pialasse.com> %{version}-3.sme |
81 |
|
- fix service file fwconsole path [SME: 11986] |
82 |
|
|
83 |
|
* Sat Apr 16 2022 Jean-Philippe Pialasse <tests@pialasse.com> %{version}-2.sme |
84 |
|
- fix huge amount of error if asterisk disabled [SME: 9756] |
85 |
|
- fix multiple email sent because of asterisk cron php path [SME: 11940] |
86 |
|
- on uninstall remove asterisk crontab to avoid noise [SME: 10131] |
87 |
|
- allow access to sounds folder for gui [SME: 11924] |
88 |
|
|
89 |
* Sun Mar 27 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-1.sme |
* Sun Mar 27 2022 Jean-Philippe Pialasse <tests@pialasse.com> 14-1.sme |
90 |
- first version 14 [SME: 11613] |
- first version 14 [SME: 11613] |
91 |
|
|
108 |
* 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 |
109 |
- 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] |
110 |
- add requires lame [SME: 9859] |
- add requires lame [SME: 9859] |
111 |
|
- fix sounds ownership so they can be handled via gui [SME: 11924] |
112 |
|
|
113 |
* Mon Jan 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 13-15.sme |
* Mon Jan 29 2018 Jean-Philipe Pialasse <tests@pialasse.com> 13-15.sme |
114 |
- fix warning tampered files in GUI [SME: 10496] |
- fix warning tampered files in GUI [SME: 10496] |
344 |
|
|
345 |
%prep |
%prep |
346 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
347 |
|
%patch0 -p1 |
348 |
|
%patch1 -p1 |
349 |
|
%patch2 -p1 |
350 |
|
%patch3 -p1 |
351 |
|
|
352 |
%build |
%build |
353 |
# Build symlinks |
# Build symlinks |
395 |
|
|
396 |
%preun |
%preun |
397 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
398 |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
/usr/bin/systemctl stop freepbx >& /dev/null || : |
399 |
fi |
fi |
|
|
|
400 |
true |
true |
401 |
|
%postun |
402 |
|
if [ $1 = 0 ] ; then |
403 |
|
#remove cron for asterisk on uninstallation to avoid noise |
404 |
|
/usr/bin/crontab -u asterisk -r >& /dev/null || : |
405 |
|
fi |
406 |
|
true |
407 |
|
|
408 |
|
|
409 |
|
|