1 |
# $Id: smeserver-freepbx.spec,v 1.20 2010/09/30 09:48:50 vip-ire Exp $ |
# $Id: smeserver-freepbx.spec,v 1.21 2011/01/05 14:46:04 vip-ire 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 0.1 |
%define version 0.1 |
7 |
%define release 29 |
%define release 30 |
8 |
%define name smeserver-freepbx |
%define name smeserver-freepbx |
9 |
|
|
10 |
Summary: Asterisk web GUI |
Summary: Asterisk web GUI |
47 |
Patch29: smeserver-freepbx-0.1-template_asterisk_conf.patch |
Patch29: smeserver-freepbx-0.1-template_asterisk_conf.patch |
48 |
Patch30: smeserver-freepbx-0.1-datadir_in_var_lib.patch |
Patch30: smeserver-freepbx-0.1-datadir_in_var_lib.patch |
49 |
Patch31: smeserver-freepbx-0.1-templates_logrotate.patch |
Patch31: smeserver-freepbx-0.1-templates_logrotate.patch |
50 |
|
Patch32: smeserver-freepbx-0.1-session_path.patch |
51 |
|
|
52 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
53 |
URL: http://www.freepbx.org/ |
URL: http://www.freepbx.org/ |
77 |
|
|
78 |
|
|
79 |
%changelog |
%changelog |
80 |
|
* Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme |
81 |
|
- CHange session path [SME: 6661] |
82 |
|
|
83 |
* Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme |
* Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme |
84 |
- astdatadir is /var/lib/asterisk |
- astdatadir is /var/lib/asterisk |
85 |
- templates for /etc/logrotate.d/asterisk |
- templates for /etc/logrotate.d/asterisk |
225 |
%patch29 -p1 |
%patch29 -p1 |
226 |
%patch30 -p1 |
%patch30 -p1 |
227 |
%patch31 -p1 |
%patch31 -p1 |
228 |
|
%patch32 -p1 |
229 |
|
|
230 |
%build |
%build |
231 |
# Build symlinks |
# Build symlinks |
234 |
|
|
235 |
%install |
%install |
236 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
237 |
|
|
238 |
|
%{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session |
239 |
|
|
240 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
241 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
242 |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
--file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \ |
250 |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
--file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \ |
251 |
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
--file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \ |
252 |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
--file /etc/logrotate.d/asterisk 'config(noreplace)' \ |
253 |
|
--dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \ |
254 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
255 |
|
|
256 |
%clean |
%clean |