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