1 |
# $Id: smeserver-freepbx.spec,v 1.18 2016/06/13 12:16:46 unnilennium Exp $ |
# $Id: smeserver-freepbx.spec,v 1.19 2016/07/26 16:24:23 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 3 |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
21 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
22 |
|
|
48 |
|
|
49 |
|
|
50 |
%changelog |
%changelog |
51 |
|
* Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> -3.sme |
52 |
|
- fix [SME: 9744] |
53 |
|
- fix wrong /tmp folder permission after update |
54 |
|
- Thank you Hsing-Foo Wang. |
55 |
|
|
56 |
* 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 |
57 |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
- fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702] |
58 |
|
|
245 |
|
|
246 |
%setup -q -n %{name}-%{version} |
%setup -q -n %{name}-%{version} |
247 |
%patch0 -p1 |
%patch0 -p1 |
248 |
|
%patch1 -p1 |
249 |
|
|
250 |
%build |
%build |
251 |
# Build symlinks |
# Build symlinks |
282 |
|
|
283 |
%post |
%post |
284 |
|
|
285 |
|
#bug 9744, restore tmp permissions |
286 |
|
if [ `stat -c %U /tmp` == "asterisk" ]; then |
287 |
|
chmod o+rwxt /tmp/ |
288 |
|
chown root:root /tmp/ |
289 |
|
fi |
290 |
|
|
291 |
%preun |
%preun |
292 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
293 |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |
/etc/rc.d/init.d/freepbx stop >& /dev/null || : |