/[smecontribs]/rpms/smeserver-freepbx/contribs9/smeserver-freepbx.spec
ViewVC logotype

Annotation of /rpms/smeserver-freepbx/contribs9/smeserver-freepbx.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.27 - (hide annotations) (download)
Tue Jan 24 00:03:46 2017 UTC (7 years, 3 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-freepbx-13-10_el6_sme
Changes since 1.26: +8 -2 lines
* Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> -10.sme
- fix Missing HTML5 format converters  [SME: 9859]
- added requirement for mpg123 and ffmpeg available in smecontribs

1 unnilennium 1.27 # $Id: smeserver-freepbx.spec,v 1.26 2017/01/23 21:25:24 unnilennium Exp $
2 unnilennium 1.1 # Authority: vip-ire
3     # Name: Daniel Berteaud
4    
5     #%define fpbxversion 2.5.0
6 unnilennium 1.18 %define version 13
7 unnilennium 1.27 %define release 10
8 unnilennium 1.1 %define name smeserver-freepbx
9    
10     Summary: Asterisk web GUI
11     Name: %{name}
12     Version: %{version}
13     Release: %{release}%{?dist}
14     License: GPL
15     Group: System/Servers
16     Source: %{name}-%{version}.tar.gz
17    
18 unnilennium 1.19 Patch0: smeserver-freepbx-13.bz9702.udpports.patch
19 unnilennium 1.20 Patch1: smeserver-freepbx-13.bz9744.patch
20 unnilennium 1.21 Patch2: smeserver-freepbx-13.bz9702-2.patch
21 unnilennium 1.23 Patch3: smeserver-freepbx-13.bz9760.patch
22 unnilennium 1.24 Patch4: smeserver-freepbx-13.bz9918.defaultUDPports.patch
23 unnilennium 1.25 Patch5:smeserver-freepbx-13.bz9860.AutoUpgradeModules.patch
24    
25 unnilennium 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
26     URL: http://www.freepbx.org/
27    
28     BuildRequires: e-smith-devtools
29     BuildRequires: tar
30    
31     Requires: mysql
32     Requires: httpd
33     Requires: php-pear
34     Requires: /usr/sbin/asterisk
35 unnilennium 1.4 Requires: asterisk-addons
36 unnilennium 1.1 Requires: dahdi-tools
37     Requires: dahdi-linux
38     Requires: sox
39     Requires: mod_auth_tkt
40     Requires: e-smith-base
41     Requires: freepbx-src
42 unnilennium 1.6 Requires: asterisk-sounds-core-en-ulaw
43     Requires: asterisk-sounds-extra-en-ulaw
44     Requires: asterisk-voicemail
45 unnilennium 1.15 Requires: asterisk-configs
46 unnilennium 1.27 Requires: ffmpeg
47     Requires: mpg123
48 unnilennium 1.1 #Buildarch: noarch
49     AutoReqProv: no
50    
51    
52     %description
53     FreePBX is a Standardised Implementation of Asterisk that gives you a GUI to manage your system. If you have looked into Asterisk, you would know that it does not come with any built in programming. You cannot plug a phone into it and make it work without editing configuration files, writing dialplans, and various messing about. FreePBX simplifies this by giving you a pre-written set of dialplans that allow you to have a fully functional PBX pretty much straight away.
54     This package provide the integration of FreePBX on SME Server.
55    
56    
57 unnilennium 1.3 %changelog
58 unnilennium 1.27 * Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> -10.sme
59     - fix Missing HTML5 format converters [SME: 9859]
60     - added requirement for mpg123 and ffmpeg available in smecontribs
61    
62 unnilennium 1.26 * Mon Jan 23 2017 Jean-Philipe Pialasse <tests@pialasse.com> -9.sme
63     - update framework before other modules [SME: 9860]
64    
65 unnilennium 1.25 * Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-8.sme
66     - autoupgrade modules [SME: 9860]
67    
68 unnilennium 1.24 * Mon Jan 09 2017 Jean-Philipe Pialasse <tests@pialasse.com> 13-7.sme
69     - fix wrong default UDPPorts on new install [SME: 9918]
70    
71 unnilennium 1.23 * Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-6.sme
72     - fix error while backup with workstation [SME: 9760]
73    
74     * Mon Oct 24 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-5.sme
75 unnilennium 1.22 -fix typo in smeserver-freepbx-13.bz9744.patch
76    
77 unnilennium 1.21 * Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-4.sme
78     - fix [SME: 9702]
79     - corrected syntax for port range
80    
81     * Sun Oct 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-3.sme
82 unnilennium 1.20 - fix [SME: 9744]
83     - fix wrong /tmp folder permission after update
84     - Thank you Hsing-Foo Wang.
85    
86 unnilennium 1.19 * Tue Jul 26 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-2.sme
87     - fix wrong UDP ports change 1000:2000 to 10000:20000 [SME: 9702]
88    
89 unnilennium 1.18 * Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 13-1.sme
90     - bump version to current Freepbx version 13
91    
92 unnilennium 1.17 * Mon Jun 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> -47.sme
93     - add all needed port for Freepbx sip pjsip and RTP [SME: 9495]
94    
95 unnilennium 1.15 * Sat Jun 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> -46.sme
96     - fix missing config files (requires asterisk-configs) [SME: 9577]
97 unnilennium 1.16 - fix recuring reconfiguration error while installing digium phone module [SME: 9575]
98     - added port 5061 for tls to TCP ports [SME: 9576]
99 unnilennium 1.15
100 unnilennium 1.14 * Thu Jun 09 2016 Jean-Philipe Pialasse <tests@pialasse.com> -45.sme
101     - fix wrong logrotate pattern [SME: 9516]
102     - as the contrib is only in smedev, i do not fix existing log files badly rotated
103    
104 unnilennium 1.13 * Mon May 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-44.sme
105     - remove fop db [SME: 9495]
106     - add some mysql setting for freepbxdb (user, email)
107     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-7.patch
108    
109 unnilennium 1.12 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-43.sme
110     - add path to ucp module [SME: 9495]
111     - add 256Mo as default for freepbx php Memory
112     - add AllowOveride All for .htaccess
113     - remove httpd config to old FOP panel
114     - add port 5061 for freepbx
115     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-5.patch
116     - configuration of amportal.conf and its mysql equivalent
117     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-6.patch
118    
119 unnilennium 1.10 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-42.sme
120     - remove FOP patches [SME: 9495]
121     - deleted link to expand amportal.conf
122     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-4.patch
123    
124 unnilennium 1.9 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-41.sme
125 unnilennium 1.7 - remove heading of /etc/asterisk/asterisk.conf [SME: 9495]
126 unnilennium 1.9 - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-3.patch
127     - bump
128 unnilennium 1.7
129 unnilennium 1.6 * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-38.sme
130     - remove expand template amportal.conf [SME: 9495]
131     - chown /var/lib/asterisk
132     - installation configuration options
133     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-2.patch
134     - Requires: asterisk-sounds-core-en-ulaw asterisk-sounds-extra-en-ulaw asterisk-voicemail
135    
136     * Sun May 15 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-37.sme
137 unnilennium 1.5 - new path to sql files [SME: 9495]
138     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-1.patch
139    
140 unnilennium 1.4 * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-36.sme
141     - adapt script to fpbx13 and asterisk 13 [SME: 9495]
142     - change Requires Requires: %{_libdir}/asterisk/modules/app_addon_sql_mysql.so to
143     - Requires: asterisk-addons as this is the paquet providing it, and it changed name to app_mysql.so
144    
145     * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-35.sme
146 unnilennium 1.3 - adapt script to fpbx13 and asterisk 13 [SME: 9495]
147     - smeserver-freepbx-0.1-Sme9Ast13Fpbx13-0.patch
148    
149     * Fri May 06 2016 Jean-Philipe Pialasse <tests@pialasse.com> 0.1-34.sme
150 unnilennium 1.2 - first import to SME9 [SME: 9495]
151 unnilennium 1.1
152     * Sun May 12 2013 JP Pialasse <tests@pialasse.com> 0.1-33.sme
153     - buildarch removed in order to find the correct %{_libdir}/asterisk/modules/app_addon_sql_mysql.so
154    
155     * Thu Oct 20 2011 Daniel B. <daniel@firewall-services.com> 0.1-32.sme
156     - Protect by locations (so other alias can be defined to protect with LL::NG for example)
157    
158     * Mon Oct 17 2011 Daniel B. <daniel@firewall-services.com> 0.1-31.sme
159     - Add misdn.log to logrotate
160    
161     * Thu Oct 13 2011 Daniel B. <daniel@firewall-services.com> 0.1-30.sme
162     - Change session path [SME: 6661]
163    
164     * Wed Jan 05 2011 Daniel B. <daniel@firewall-services.com> 0.1-29.sme
165     - astdatadir is /var/lib/asterisk
166     - templates for /etc/logrotate.d/asterisk
167    
168     * Mon Sep 20 2010 Daniel B. <daniel@firewall-services.com> 0.1-28.sme
169     - Create and populate the mysql databases in mysql.init
170     - Templates for /etc/asterisk/asterisk.conf
171    
172     * Thu Jul 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-27]
173     - Read ARI password from the DB (and initialize a random one)
174    
175     * Mon Feb 22 2010 Daniel B. <daniel@firewall-services.com> [0.1-26]
176     - Remove hard-coded dependencies on asterisk and asterisk-addons14
177     Depends now on asterisk binary and app_addon_sql_mysql.so files
178     (so it can work with asterisk or asterisk14)
179    
180     * Mon Feb 15 2010 Daniel B. <daniel@firewall-services.com> [0.1-25]
181     - Remove /etc/logrotate.d/asterisk which is now included in asterisk14
182    
183     * Tue Feb 09 2010 Daniel B. <daniel@firewall-services.com> [0.1-24]
184     - Depends now on asterisk14 and asterisk-addons14
185    
186     * Wed Jan 06 2010 Daniel B. <daniel@firewall-services.com> [0.1-23]
187     - disable dynamic hints
188    
189     * Tue Oct 06 2009 Daniel B. <daniel@firewall-services.com> [0.1-22]
190     - include /opt/freepbx/admin/functions.inc.php in freepbx-dump-astdb
191     action script for FreePBX 2.6 compatibility
192    
193     * Tue May 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-21]
194     - Add CHECKREFERER=FALSE in amportal.conf to repvent error message in some
195     modules (due to the ProxyPass configuration)
196    
197     * Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-20]
198     - Fix CDR db password in cdr_mysql.conf template
199     - Use a separate service in SME db for FOP
200    
201     * Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-19]
202     - remove scoreboard directive from httpd-fpbx config
203     - remove some modules (mod_ssl, mod_proxy)
204    
205     * Sat Apr 11 2009 Daniel B. <daniel@firewall-services.com> [0.1-18]
206     - templatize cdr_mysql.conf [SME: 5153]
207     - templatize manager.conf
208     - remove freepbx-cron-scheduler.php from root crontab so only
209     asterisk user runs it (prevent email error sent from cron)
210    
211     * Fri Mar 27 2009 Daniel B. <daniel@firewall-services.com> [0.1-17]
212     - Remove obsolete /admin Alias from apache
213     - Run the security script on bootsrape-console-save event
214    
215     * Mon Mar 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-16]
216     - Security Fixe: put a random password for ARI admin (this should be documented)
217    
218     * Thu Mar 19 2009 Daniel B. <daniel@firewall-services.com> [0.1-15]
219     - Check if /opt/freepbx/admin exists (retry the install if a first one failed)
220     - Remove tabs from spec
221    
222     * Wed Mar 18 2009 Daniel B. <daniel@firewall-services.com> [0.1-14]
223     - Remove speex from dependencies
224    
225     * Thu Mar 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-13]
226     - Remove zaptel dependency, replaced with dahdi-tools and dahdi-linux
227    
228     * Mon Feb 23 2009 Daniel B. <daniel@firewall-services.com> [0.1-12]
229     - Fix logrotate issue (send a sigusr1 signal to httpd-fpbx)
230    
231     * Thu Feb 12 2009 Daniel B. <daniel@firewall-services.com> [0.1-11]
232     - Full support for the new DAHDI driver, droping zaptel
233    
234     * Mon Feb 09 2009 Daniel B. <daniel@firewall-services.com> [0.1-10]
235     - add support for DAHDI channel
236    
237     * Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9]
238     - move expand-templates from post-upgrade event to bootstrap-console-save
239    
240     * Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8]
241     - Add support for trunk name in mail alerts
242    
243     * Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7]
244     - Add a simple script to alert admin by mail on trunk errors
245    
246     * Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6]
247     - Use AdminPanels props so access can be configured using
248     smeserver-userpanels contrib. AdminUsers and FopUsers
249     props aren't used anymore
250    
251     * Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5]
252     - add logrotate default config file for asterisk's logs
253     - spec cleanup
254    
255     * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4]
256     - fix logrotate issue
257    
258     * Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
259     - split freepbx sources in a separate package (freepbx-src)
260     - alternative genzaptelconf
261    
262     * Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
263     - Fix fop not being displayed in admin page
264    
265     * Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
266     - updated to 2.5.0 final
267     - spec cleaning
268     - templates cleaning
269     - templates to update mysql informations
270    
271     * Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0]
272     - initial release
273    
274     %prep
275    
276     %setup -q -n %{name}-%{version}
277 unnilennium 1.19 %patch0 -p1
278 unnilennium 1.20 %patch1 -p1
279 unnilennium 1.21 %patch2 -p1
280 unnilennium 1.23 %patch3 -p1
281 unnilennium 1.24 %patch4 -p1
282 unnilennium 1.25 %patch5 -p1
283    
284 unnilennium 1.1
285     %build
286     # Build symlinks
287     perl createlinks
288    
289    
290     %install
291     rm -rf $RPM_BUILD_ROOT
292    
293     %{__mkdir_p} $RPM_BUILD_ROOT/var/lib/php/fpbx-session
294    
295     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
296     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
297     --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \
298     --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \
299     --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \
300     --dir /var/service/httpd-fpbx/supervise 'attr(0700,root,root)' \
301     --dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \
302     --file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \
303     --dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \
304     --dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \
305     --file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \
306     --file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \
307     --file /etc/logrotate.d/asterisk 'config(noreplace)' \
308     --dir /var/lib/php/fpbx-session 'attr(0770,root,asterisk)' \
309     > %{name}-%{version}-%{release}-filelist
310    
311     %clean
312     rm -rf $RPM_BUILD_ROOT
313    
314     %files -f %{name}-%{version}-%{release}-filelist
315     %defattr(-,root,root)
316    
317    
318     %post
319    
320 unnilennium 1.20 #bug 9744, restore tmp permissions
321     if [ `stat -c %U /tmp` == "asterisk" ]; then
322     chmod o+rwxt /tmp/
323     chown root:root /tmp/
324     fi
325    
326 unnilennium 1.1 %preun
327     if [ $1 = 0 ] ; then
328     /etc/rc.d/init.d/freepbx stop >& /dev/null || :
329     fi
330    
331     true
332    

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed