1 |
# $Id: freepbx-src.spec,v 1.2 2016/05/06 08:41:37 unnilennium Exp $ |
# $Id: freepbx-src.spec,v 1.3 2016/05/16 07:06:26 unnilennium Exp $ |
2 |
# Authority: vip-ire |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
# Name: Daniel Berteaud |
4 |
|
|
52 |
%prep |
%prep |
53 |
|
|
54 |
%setup -q -n freepbx-%{version} |
%setup -q -n freepbx-%{version} |
|
%patch0 -p1 |
|
55 |
|
|
56 |
%build |
|
57 |
|
#%build |
58 |
# Extract freePBX archive |
# Extract freePBX archive |
59 |
%{__mkdir_p} root/usr/share/freepbx/sources |
%{__mkdir_p} root/usr/share/freepbx/sources |
60 |
tar xzf %{SOURCE0} -C root/usr/share/freepbx/sources |
tar xzf %{SOURCE0} -C root/usr/share/freepbx/sources |
61 |
# Extract panel module (not an official module yet) |
# Extract panel module (not an official module yet) |
62 |
tar xzf %{SOURCE1} -C root/usr/share/freepbx/sources/freepbx-%{version}/amp_conf/htdocs/admin/modules |
# rem by JP not compatible anymore |
63 |
ln -s /usr/share/freepbx/sources/freepbx-%{version} root/usr/share/freepbx/sources/freepbx |
#tar xzf %{SOURCE1} -C root/usr/share/freepbx/sources/freepbx-%{version}/amp_conf/htdocs/admin/modules |
64 |
|
ln -s freepbx-%{version} root/usr/share/freepbx/sources/freepbx |
65 |
|
%patch0 -p1 |
66 |
|
%build |
67 |
|
|
68 |
%install |
%install |
69 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |