1 |
slords |
1.1 |
# Authority: vip-ire |
2 |
|
|
# Name: Daniel Berteaud |
3 |
|
|
|
4 |
|
|
%define version 2.5.1 |
5 |
|
|
%define release 0 |
6 |
|
|
%define name freepbx-src |
7 |
|
|
|
8 |
|
|
|
9 |
|
|
Summary: FreePBX Sources |
10 |
|
|
Name: %{name} |
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: GPL |
14 |
|
|
Group: System/Servers |
15 |
|
|
|
16 |
|
|
Source0: freepbx-%{version}.tar.gz |
17 |
|
|
Source1: panel-0.1.tgz |
18 |
|
|
|
19 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
|
|
URL: http://www.freepbx.org/ |
21 |
|
|
|
22 |
|
|
BuildArch: noarch |
23 |
|
|
|
24 |
|
|
AutoReqProv: no |
25 |
|
|
|
26 |
|
|
%description |
27 |
|
|
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. |
28 |
|
|
This package only contains the sources, and should be installed with smeserver-freepbx |
29 |
|
|
|
30 |
|
|
|
31 |
|
|
* Mon Aug 04 2008 daniel B. <daniel@firewall-services.com> [2.5.1-0] |
32 |
|
|
- initial release based on freepbx 2.5.1 |
33 |
|
|
|
34 |
|
|
%prep |
35 |
|
|
|
36 |
|
|
%setup -q -n freepbx-%{version} |
37 |
|
|
|
38 |
|
|
%build |
39 |
|
|
# Extract freePBX archive |
40 |
|
|
%{__mkdir_p} root/usr/share/freepbx/sources |
41 |
|
|
tar xzf %{SOURCE0} -C root/usr/share/freepbx/sources |
42 |
|
|
# Extract panel module (not an official module yet) |
43 |
|
|
tar xzf %{SOURCE1} -C root/usr/share/freepbx/sources/freepbx-%{version}/amp_conf/htdocs/admin/modules |
44 |
|
|
ln -s /usr/share/freepbx/sources/freepbx-%{version} root/usr/share/freepbx/sources/freepbx |
45 |
|
|
|
46 |
|
|
%install |
47 |
|
|
rm -rf $RPM_BUILD_ROOT |
48 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
49 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
50 |
|
|
> %{name}-%{version}-%{release}-filelist |
51 |
|
|
|
52 |
|
|
%clean |
53 |
|
|
rm -rf $RPM_BUILD_ROOT |
54 |
|
|
|
55 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
56 |
|
|
%defattr(-,root,root) |
57 |
|
|
|
58 |
|
|
|