1 |
# $Id: smeserver-freepbx.spec,v 1.18 2016/06/13 12:16:46 unnilennium Exp $ |
# $Id: smeserver-freepbx.spec,v 1.20 2016/10/24 02:58:18 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 4 |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
22 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
23 |
|
|
49 |
|
|
50 |
|
|
51 |
%changelog |
%changelog |
52 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme |
53 |
|
- fix [SME: 9702] |
54 |
|
- corrected syntax for port range |
55 |
|
|
56 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme |
57 |
|
- fix [SME: 9744] |
58 |
|
- fix wrong /tmp folder permission after update |
59 |
|
- Thank you Hsing-Foo Wang. |
60 |
|
|
61 |
* 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 |
62 |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
63 |
|
|
250 |
|
|
251 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
252 |
%patch0 -p1 |
%patch0 -p1 |
253 |
|
%patch1 -p1 |
254 |
|
%patch2 -p1 |
255 |
|
|
256 |
%build |
%build |
257 |
# Build symlinks |
# Build symlinks |
288 |
|
|
289 |
%post |
%post |
290 |
|
|
291 |
|
#bug 9744, restore tmp permissions |
292 |
|
if [ `stat -c %U /tmp` == "asterisk" ]; then |
293 |
|
chmod o+rwxt /tmp/ |
294 |
|
chown root:root /tmp/ |
295 |
|
fi |
296 |
|
|
297 |
%preun |
%preun |
298 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
299 |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |