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

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

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


Revision 1.1 - (hide annotations) (download)
Mon Mar 2 17:31:24 2009 UTC (15 years, 8 months ago) by slords
Branch: MAIN
Initial import of smeserver-freepbx

1 slords 1.1 # Authority: vip-ire
2     # Name: Daniel Berteaud
3    
4    
5     #%define fpbxversion 2.5.0
6     %define version 0.1
7     %define release 9
8     %define name smeserver-freepbx
9    
10    
11     Summary: Asterisk web GUI
12     Name: %{name}
13     Version: %{version}
14     Release: %{release}%{?dist}
15     License: GPL
16     Group: System/Servers
17     Source: %{name}-%{version}.tar.gz
18     Patch0: smeserver-freepbx-0.1-fop_link.patch
19     Patch1: smeserver-freepbx-0.1-genzaptelconf.patch
20     Patch2: smeserver-freepbx-0.1-logrotate.patch
21     Patch3: smeserver-freepbx-0.1-asterisk_logrotate.patch
22     Patch4: smeserver-freepbx-0.1-userpanels.patch
23     Patch5: smeserver-freepbx-0.1-trunk_alert_mail.patch
24     Patch6: smeserver-freepbx-0.1-trunk_name_in_alert.patch
25     Patch7: smeserver-freepbx-0.1-postupgrade_to_bootstrap.patch
26     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
27     URL: http://www.freepbx.org/
28    
29     BuildRequires: e-smith-devtools
30     BuildRequires: tar
31    
32     Requires: mysql
33     Requires: httpd
34     Requires: php-pear
35     Requires: asterisk
36     Requires: asterisk-addons
37     Requires: zaptel
38     Requires: speex
39     Requires: sox
40     Requires: mod_auth_tkt
41     Requires: e-smith-base
42     Requires: freepbx-src
43     Buildarch: noarch
44     AutoReqProv: no
45    
46    
47     %description
48     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.
49     This package provide the integration of FreePBX on SME Server.
50    
51    
52     %changelog
53     * Mon Dec 08 2008 Daniel B. <daniel@firewall-services.com> [0.1-9]
54     - move expand-templates from post-upgrade event to bootstrap-console-save
55    
56     * Thu Nov 27 2008 Daniel B. <daniel@firewall-services.com> [0.1-8]
57     - Add support for trunk name in mail alerts
58    
59     * Wed Nov 26 2008 Daniel B. <daniel@firewall-services.com> [0.1-7]
60     - Add a simple script to alert admin by mail on trunk errors
61    
62     * Thu Nov 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-6]
63     - Use AdminPanels props so access can be configured using
64     smeserver-userpanels contrib. AdminUsers and FopUsers
65     props aren't used anymore
66    
67     * Wed Nov 19 2008 Daniel B. <daniel@firewall-services.com> [0.1-5]
68     - add logrotate default config file for asterisk's logs
69     - spec cleanup
70    
71     * Thu Nov 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-4]
72     - fix logrotate issue
73    
74     * Wed Nov 05 2008 Daniel B. <daniel@firewall-services.com> [0.1-3]
75     - split freepbx sources in a separate package (freepbx-src)
76     - alternative genzaptelconf
77    
78     * Mon Oct 13 2008 Daniel B. <daniel@firewall-services.com> [0.1-2]
79     - Fix fop not being displayed in admin page
80    
81     * Sat Sep 20 2008 Daniel B. <daniel@firewall-services.com> [0.1-1]
82     - updated to 2.5.0 final
83     - spec cleaning
84     - templates cleaning
85     - templates to update mysql informations
86    
87     * Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [0.1-0]
88     - initial release
89    
90     %prep
91    
92     %setup -q -n %{name}-%{version}
93     %patch0 -p1
94     %patch1 -p1
95     %patch2 -p1
96     %patch3 -p1
97     %patch4 -p1
98     %patch5 -p1
99     %patch6 -p1
100     %patch7 -p1
101    
102     %build
103     # Build symlinks
104     perl createlinks
105    
106    
107     %install
108     rm -rf $RPM_BUILD_ROOT
109     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
110     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
111     --file /usr/share/freepbx/scripts/uninstall.sh 'attr(0750,root,root)' \
112     --file /usr/share/freepbx/scripts/restore-astdb.php 'attr(0750,root,root)' \
113     --dir /var/service/httpd-fpbx 'attr(01755,root,root)' \
114     --dir /var/service/httpd-fpbx/supervise 'attr(0700,root,root)' \
115     --dir /var/service/httpd-fpbx/log 'attr(0755,root,root)' \
116     --file /var/service/httpd-fpbx/log/run 'attr(0755,root,root)' \
117     --dir /var/service/httpd-fpbx/log/supervise 'attr(0700,root,root)' \
118     --dir /var/log/httpd-fpbx 'attr(0750,smelog,smelog)' \
119     --file /var/lib/asterisk/bin/genzaptelconf 'attr(0750,root,root)' \
120     --file /var/lib/asterisk/agi-bin/trunk_alert_mail.agi 'attr(0750,asterisk,asterisk)' \
121     --file /etc/logrotate.d/asterisk 'config(noreplace)' \
122     > %{name}-%{version}-%{release}-filelist
123    
124     %clean
125     rm -rf $RPM_BUILD_ROOT
126    
127     %files -f %{name}-%{version}-%{release}-filelist
128     %defattr(-,root,root)
129    
130    
131     %post
132    
133     %preun
134     if [ $1 = 0 ] ; then
135     /etc/rc.d/init.d/freepbx stop >& /dev/null || :
136     fi
137    
138     true
139    

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