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