1 |
# $Id: smeserver-freepbx.spec,v 1.18 2016/06/13 12:16:46 unnilennium Exp $ |
# $Id: smeserver-freepbx.spec,v 1.28 2017/01/25 21:09:53 unnilennium 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 13 |
%define version 13 |
7 |
%define release 2 |
%define release 12 |
8 |
%define name smeserver-freepbx |
%define name smeserver-freepbx |
9 |
|
|
10 |
Summary: Asterisk web GUI |
Summary: Asterisk web GUI |
16 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
17 |
|
|
18 |
Patch0: smeserver-freepbx-13.bz9702.udpports.patch |
Patch0: smeserver-freepbx-13.bz9702.udpports.patch |
19 |
|
Patch1: smeserver-freepbx-13.bz9744.patch |
20 |
|
Patch2: smeserver-freepbx-13.bz9702-2.patch |
21 |
|
Patch3: smeserver-freepbx-13.bz9760.patch |
22 |
|
Patch4: smeserver-freepbx-13.bz9918.defaultUDPports.patch |
23 |
|
Patch5: smeserver-freepbx-13.bz9860.AutoUpgradeModules.patch |
24 |
|
Patch6: smeserver-freepbx-13.bz9637.backupFBX.patch |
25 |
|
Patch7: smeserver-freepbx-13.bz10120.noiseAmportal.patch |
26 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
27 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
28 |
|
|
44 |
Requires: asterisk-sounds-extra-en-ulaw |
Requires: asterisk-sounds-extra-en-ulaw |
45 |
Requires: asterisk-voicemail |
Requires: asterisk-voicemail |
46 |
Requires: asterisk-configs |
Requires: asterisk-configs |
47 |
|
Requires: ffmpeg |
48 |
|
Requires: mpg123 |
49 |
#Buildarch: noarch |
#Buildarch: noarch |
50 |
AutoReqProv: no |
AutoReqProv: no |
51 |
|
|
56 |
|
|
57 |
|
|
58 |
%changelog |
%changelog |
59 |
|
* Sat Feb 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> -12.sme |
60 |
|
- fix noise rebooting and restarting freepbx [SME: 10120] |
61 |
|
|
62 |
|
* Wed Jan 25 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-11.sme |
63 |
|
- NFR: auto backup of whole FBX config during pre-backup event [SME: 9637] |
64 |
|
- both asdb and fpbx, asterisk config files, freepbx folders, voicemails are part of backup |
65 |
|
- 2 versions are kepts |
66 |
|
- weekly backup is also done. |
67 |
|
|
68 |
|
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-10.sme |
69 |
|
- fix Missing HTML5 format converters [SME: 9859] |
70 |
|
- added requirement for mpg123 and ffmpeg available in smecontribs |
71 |
|
|
72 |
|
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-9.sme |
73 |
|
- update framework before other modules [SME: 9860] |
74 |
|
|
75 |
|
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-8.sme |
76 |
|
- autoupgrade modules [SME: 9860] |
77 |
|
|
78 |
|
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme |
79 |
|
- fix wrong default UDPPorts on new install [SME: 9918] |
80 |
|
|
81 |
|
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme |
82 |
|
- fix error while backup with workstation [SME: 9760] |
83 |
|
|
84 |
|
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-5.sme |
85 |
|
-fix typo in smeserver-freepbx-13.bz9744.patch |
86 |
|
|
87 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme |
88 |
|
- fix [SME: 9702] |
89 |
|
- corrected syntax for port range |
90 |
|
|
91 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme |
92 |
|
- fix [SME: 9744] |
93 |
|
- fix wrong /tmp folder permission after update |
94 |
|
- Thank you Hsing-Foo Wang. |
95 |
|
|
96 |
* Tue Jul 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-2.sme |
* Tue Jul 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-2.sme |
97 |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
98 |
|
|
285 |
|
|
286 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
287 |
%patch0 -p1 |
%patch0 -p1 |
288 |
|
%patch1 -p1 |
289 |
|
%patch2 -p1 |
290 |
|
%patch3 -p1 |
291 |
|
%patch4 -p1 |
292 |
|
%patch5 -p1 |
293 |
|
%patch6 -p1 |
294 |
|
%patch7 -p1 |
295 |
|
|
296 |
|
|
297 |
%build |
%build |
298 |
# Build symlinks |
# Build symlinks |
329 |
|
|
330 |
%post |
%post |
331 |
|
|
332 |
|
#bug 9744, restore tmp permissions |
333 |
|
if [ `stat -c %U /tmp` == "asterisk" ]; then |
334 |
|
chmod o+rwxt /tmp/ |
335 |
|
chown root:root /tmp/ |
336 |
|
fi |
337 |
|
|
338 |
%preun |
%preun |
339 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
340 |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |