]> git.pld-linux.org Git - packages/asterisk-stat.git/blame_incremental - asterisk-stat.spec
- migrate to apache 2.4
[packages/asterisk-stat.git] / asterisk-stat.spec
... / ...
CommitLineData
1# TODO
2# - license
3%define srcversion 2_0_1
4Summary: Asterisk-Stat: CDR Analyser
5Summary(pl.UTF-8): Asterisk-Stat: Analizator CDR
6Name: asterisk-stat
7Version: 2.0.1
8Release: 0.4
9License: ? (contains Freeware, LGPL, QPL parts)
10Group: Applications/WWW
11Source0: http://areski.net/asterisk-stat-v2/%{name}-v%{srcversion}.tar.gz
12# Source0-md5: aad3fe2f9826e8d63dfc9bdea2315d4a
13Source1: %{name}.conf
14Source2: %{name}-config.php
15Patch0: %{name}-config.patch
16Patch1: %{name}-jpgraph.patch
17URL: http://areski.net/asterisk-stat-v2/about.php
18BuildRequires: rpm-perlprov
19BuildRequires: rpmbuild(macros) >= 1.264
20BuildRequires: sed >= 4.0
21Requires: %{name}(DB_Driver) = %{version}-%{release}
22Requires: adodb >= 4.67-1.17
23Requires: jpgraph
24Requires: php(gd)
25Requires: php-cli
26Requires: webapps
27Requires: webserver
28Requires: webserver(php)
29BuildArch: noarch
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%define _webapps /etc/webapps
33%define _webapp %{name}
34%define _sysconfdir %{_webapps}/%{_webapp}
35%define _appdir %{_datadir}/%{_webapp}
36
37%description
38Asterisk-Stat is providing different reports & Graph to allow the
39Asterisk-admin to analyse quickly and easily the traffic on their
40Asterisk server. All the graphic & reports are based over the CDR
41database.
42
43%description -l pl.UTF-8
44Asterisk-Stat udostępnia różne raporty i wykresy pozwalające
45administratorowi Asteriska szybko i łatwo przeanalizować ruch na
46serwerze Asteriska. Wszystkie wykresy i raporty są oparte na bazie
47danych CDR.
48
49%package db-mysql
50Summary: Asterisk-stat DB Driver for MySQL
51Summary(pl.UTF-8): Sterownik bazy danych MySQL dla Asterisk-stat
52Group: Applications/WWW
53Requires: php(mysql)
54Provides: %{name}(DB_Driver) = %{version}-%{release}
55
56%description db-mysql
57This virtual package provides MySQL database backend for
58Asterisk-stat.
59
60%description db-mysql -l pl.UTF-8
61Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla
62Asterisk-stat.
63
64%package db-pgsql
65Summary: Asterisk-stat DB Driver for PostgreSQL
66Summary(pl.UTF-8): Sterownik bazy danych PostgreSQL dla Asterisk-stat
67Group: Applications/WWW
68Requires: php(pgsql)
69Provides: %{name}(DB_Driver) = %{version}-%{release}
70
71%description db-pgsql
72This virtual package provides PostgreSQL database backend for
73Asterisk-stat.
74
75%description db-pgsql -l pl.UTF-8
76Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
77Asterisk-stat.
78
79%prep
80%setup -q -n %{name}-v2
81%patch0 -p1
82%patch1 -p1
83
84rm -drf jpgraph_lib
85find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
86
87%install
88rm -rf $RPM_BUILD_ROOT
89install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
90cp -aRf * $RPM_BUILD_ROOT%{_appdir}
91
92install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
93install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
94install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/config.php
95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99%triggerin -- apache1 < 1.3.37-3, apache1-base
100%webapp_register apache %{_webapp}
101
102%triggerun -- apache1 < 1.3.37-3, apache1-base
103%webapp_unregister apache %{_webapp}
104
105%triggerin -- apache < 2.2.0, apache-base
106%webapp_register httpd %{_webapp}
107
108%triggerun -- apache < 2.2.0, apache-base
109%webapp_unregister httpd %{_webapp}
110
111%files
112%defattr(644,root,root,755)
113%doc CHANGELOG.txt
114%dir %attr(750,root,http) %{_sysconfdir}
115%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php
116%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
117%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
118%{_appdir}
119
120%files db-mysql
121%defattr(644,root,root,755)
122
123%files db-pgsql
124%defattr(644,root,root,755)
This page took 0.082595 seconds and 5 git commands to generate.