1 |
# $Id: smeserver-freepbx.spec,v 1.18 2016/06/13 12:16:46 unnilennium Exp $ |
# $Id: smeserver-freepbx.spec,v 1.26 2017/01/23 21:25:24 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 10 |
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 |
|
|
25 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
26 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
43 |
Requires: asterisk-sounds-extra-en-ulaw |
Requires: asterisk-sounds-extra-en-ulaw |
44 |
Requires: asterisk-voicemail |
Requires: asterisk-voicemail |
45 |
Requires: asterisk-configs |
Requires: asterisk-configs |
46 |
|
Requires: ffmpeg |
47 |
|
Requires: mpg123 |
48 |
#Buildarch: noarch |
#Buildarch: noarch |
49 |
AutoReqProv: no |
AutoReqProv: no |
50 |
|
|
55 |
|
|
56 |
|
|
57 |
%changelog |
%changelog |
58 |
|
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> -10.sme |
59 |
|
- fix Missing HTML5 format converters [SME: 9859] |
60 |
|
- added requirement for mpg123 and ffmpeg available in smecontribs |
61 |
|
|
62 |
|
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> -9.sme |
63 |
|
- update framework before other modules [SME: 9860] |
64 |
|
|
65 |
|
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-8.sme |
66 |
|
- autoupgrade modules [SME: 9860] |
67 |
|
|
68 |
|
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme |
69 |
|
- fix wrong default UDPPorts on new install [SME: 9918] |
70 |
|
|
71 |
|
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme |
72 |
|
- fix error while backup with workstation [SME: 9760] |
73 |
|
|
74 |
|
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-5.sme |
75 |
|
-fix typo in smeserver-freepbx-13.bz9744.patch |
76 |
|
|
77 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme |
78 |
|
- fix [SME: 9702] |
79 |
|
- corrected syntax for port range |
80 |
|
|
81 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme |
82 |
|
- fix [SME: 9744] |
83 |
|
- fix wrong /tmp folder permission after update |
84 |
|
- Thank you Hsing-Foo Wang. |
85 |
|
|
86 |
* 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 |
87 |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
88 |
|
|
275 |
|
|
276 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
277 |
%patch0 -p1 |
%patch0 -p1 |
278 |
|
%patch1 -p1 |
279 |
|
%patch2 -p1 |
280 |
|
%patch3 -p1 |
281 |
|
%patch4 -p1 |
282 |
|
%patch5 -p1 |
283 |
|
|
284 |
|
|
285 |
%build |
%build |
286 |
# Build symlinks |
# Build symlinks |
317 |
|
|
318 |
%post |
%post |
319 |
|
|
320 |
|
#bug 9744, restore tmp permissions |
321 |
|
if [ `stat -c %U /tmp` == "asterisk" ]; then |
322 |
|
chmod o+rwxt /tmp/ |
323 |
|
chown root:root /tmp/ |
324 |
|
fi |
325 |
|
|
326 |
%preun |
%preun |
327 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
328 |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |