]> git.pld-linux.org Git - packages/asterisk-stat.git/blame - asterisk-stat.spec
- adapterized
[packages/asterisk-stat.git] / asterisk-stat.spec
CommitLineData
6676cf97
MWP
1#
2#TODO - webapps
3#TODO - patch - include in /usr/share/asterisk-stat/lib/defines.php and add file in SOURCES
4#TODO - remove jgroph from source
5#TODO - Subpackage for databases?
6#TODO - license
7
8%define srcversion 2_0_1
9
10Summary: Asterisk-Stat: CDR Analyser
11Summary(pl): Asterisk-Stat: Analizator CDR
12Name: asterisk-stat
13Version: 2.0.1
14Release: 0.1
15License: -
16Group: Applications/WWW
17Source0: http://areski.net/%{name}-v2/%{name}-v%{srcversion}.tar.gz
18# Source0-md5: aad3fe2f9826e8d63dfc9bdea2315d4a
19#Source1: %{name}.conf
20#Source2: %{name}-config.php
21#Patch0: %{name}-config.patch
8fade7ab 22URL: http://areski.net/asterisk-stat-v2/about.php
6676cf97
MWP
23BuildRequires: rpm-perlprov
24Requires: php
25Requires: php-cli
26Requires: php-gd
27Requires: php-mysql
28Requires: webserver
29Requires: webapps
30Requires: jpgraph
31BuildArch: noarch
32BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33
34%define _webapps /etc/webapps
35%define _webapp %{name}
36%define _webappdir %{_webapps}/%{_webapp}
37%define _appdir %{_datadir}/%{_webapp}
38
39%description
8fade7ab
MWP
40Asterisk-Stat is providing different reports & Graph to allow the
41Asterisk-admin to analyse quickly and easily the traffic on their
42Asterisk server. All the graphic & reports are based over the CDR
43database.
6676cf97
MWP
44
45%description -l pl
46
47%prep
48%setup -q -n %{name}-v2
49#%patch0 -p1
50
51find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
52
53%build
54
55%install
56rm -rf $RPM_BUILD_ROOT
57install -d $RPM_BUILD_ROOT{%{_appdir},%{_webappdir},%{_sysconfdir}/%{name}}
58
59cp -aRf * $RPM_BUILD_ROOT%{_appdir}
60
61install %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
62install %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
63install %{SOURCE2} $RPM_BUILD_ROOT%{sysconfdir}/%{name}/
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%triggerin -- apache1
69%webapp_register apache %{_webapp}
70
71%triggerun -- apache1
72%webapp_unregister apache %{_webapp}
73
74%triggerin -- apache < 2.2.0, apache-base
75%webapp_register httpd %{_webapp}
76
77%triggerun -- apache < 2.2.0, apache-base
78%webapp_unregister httpd %{_webapp}
79
80%files
81%defattr(644,root,root,755)
82%doc CHANGELOG.txt
83#%%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-config.php
84%{_datadir}/%{name}
This page took 0.634557 seconds and 4 git commands to generate.