]> git.pld-linux.org Git - packages/freepbx.git/blame - freepbx.spec
- corect license
[packages/freepbx.git] / freepbx.spec
CommitLineData
ba69b208 1Summary: FreePBX - Asterisk Management Portal (AMP)
7c4fe11f 2Summary(pl): FreePBX - interfejs WWW do Asteriska
ba69b208
MWP
3Name: freepbx
4Version: 2.0.1
5Release: 0.1
8031f0b3 6License: GPL
ba69b208
MWP
7Group: Applications
8Source0: http://dl.sourceforge.net/amportal/%{name}-%{version}.tar.gz
9# Source0-md5: aa100b6928a3e1a61603fb969485381a
10URL: http://www.coalescentsystems.ca/
8031f0b3
MWP
11BuildRequires: rpmbuild(macros) >= 1.228
12Requires(post,preun): /sbin/chkconfig
13#Requires: Asterisk >= 1.2
ba69b208
MWP
14Requires: php-program
15Requires: php-pear-DB
16Requires: php-pcre
17Requires: libxml2
18Requires: libtiff
19Requires: lame
20
21#Requires: httpd
22#Requires: Apache2
23#Requires: mysql-client
24#Requires: mysql
25
26Requires: php-mysql
27Requires: php-gettext
28Requires: php-posix
29Requires: php-gd
30Requires: openssl
31Requires: perl
32Requires: perl-CPAN
33Requires: bison
34Requires: ncurses
35Requires: audiofile
36Requires: curl
37Requires: sox
38Requires: perl-Net-Telnet
39Requires: perl-IPC-Signal
40Requires: perl-Proc-WaitStat
41Requires: asterisk-perl
42BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44%description
45Coalescent Systems Inc. launched the freePBX (formerly Asterisk
46Management Portal) project to bring together best-of-breed
47applications to produce a standardized implementation of Asterisk
48complete with web-based administrative interface.
49
50%description -l pl
51
52%prep
53%setup -q
54#%patch0 -p1
8031f0b3 55find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
ba69b208
MWP
56
57%build
58
59%install
60rm -rf $RPM_BUILD_ROOT
61
62install -d $RPM_BUILD_ROOT
63install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{cgi-bin,agi-bin,astetc,bin,htdocs,htdocs_panel,mohmp3,sbin,sounds}
8031f0b3
MWP
64install -d $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d
65install -d $RPM_BUILD_ROOT%{_bindir}
ba69b208
MWP
66
67cd ./amp_conf
68cp -R htdocs/* $RPM_BUILD_ROOT%{_datadir}/%{name}/htdocs
69install cgi-bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/cgi-bin
70install agi-bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/agi-bin
71install bin/* $RPM_BUILD_ROOT%{_datadir}/%{name}/bin
72install mohmp3/* $RPM_BUILD_ROOT%{_datadir}/%{name}/mohmp3
73install sounds/* $RPM_BUILD_ROOT%{_datadir}/%{name}/sounds
74
8031f0b3
MWP
75#install init/op_panel_redhat.sh $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/%{name}
76#install op_server.pl $RPM_BUILD_ROOT%{_bindir}
ba69b208
MWP
77#TODO
78#htdocs_panel
79#sbin
80#astetc
81
82%clean
83rm -rf $RPM_BUILD_ROOT
84
8031f0b3
MWP
85%post
86/sbin/chkconfig --add %{name}
87%service %{name} restart
88
89%preun
90if [ "$1" = "0" ]; then
91 %service -q %{name} stop
92 /sbin/chkconfig --del %{name}
93fi
ba69b208
MWP
94
95%files
96%defattr(644,root,root,755)
97#%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
8031f0b3
MWP
98%attr(754,root,root) /etc/rc.d/init.d/%{name}
99#%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
100%dir %{_sysconfdir}
101%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
102%attr(755,root,root) %{_bindir}/*
103%{_datadir}/%{name}
This page took 0.084385 seconds and 4 git commands to generate.