1 |
# $Id: smeserver-freepbx.spec,v 1.18 2016/06/13 12:16:46 unnilennium Exp $ |
# $Id: smeserver-freepbx.spec,v 1.24 2017/01/09 23:25:11 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 8 |
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/ |
53 |
|
|
54 |
|
|
55 |
%changelog |
%changelog |
56 |
|
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-8.sme |
57 |
|
- autoupgrade modules [SME: 9860] |
58 |
|
|
59 |
|
* Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme |
60 |
|
- fix wrong default UDPPorts on new install [SME: 9918] |
61 |
|
|
62 |
|
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme |
63 |
|
- fix error while backup with workstation [SME: 9760] |
64 |
|
|
65 |
|
* Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-5.sme |
66 |
|
-fix typo in smeserver-freepbx-13.bz9744.patch |
67 |
|
|
68 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme |
69 |
|
- fix [SME: 9702] |
70 |
|
- corrected syntax for port range |
71 |
|
|
72 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme |
73 |
|
- fix [SME: 9744] |
74 |
|
- fix wrong /tmp folder permission after update |
75 |
|
- Thank you Hsing-Foo Wang. |
76 |
|
|
77 |
* 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 |
78 |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
79 |
|
|
266 |
|
|
267 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
268 |
%patch0 -p1 |
%patch0 -p1 |
269 |
|
%patch1 -p1 |
270 |
|
%patch2 -p1 |
271 |
|
%patch3 -p1 |
272 |
|
%patch4 -p1 |
273 |
|
%patch5 -p1 |
274 |
|
|
275 |
|
|
276 |
%build |
%build |
277 |
# Build symlinks |
# Build symlinks |
308 |
|
|
309 |
%post |
%post |
310 |
|
|
311 |
|
#bug 9744, restore tmp permissions |
312 |
|
if [ `stat -c %U /tmp` == "asterisk" ]; then |
313 |
|
chmod o+rwxt /tmp/ |
314 |
|
chown root:root /tmp/ |
315 |
|
fi |
316 |
|
|
317 |
%preun |
%preun |
318 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
319 |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |