Summary(pl): Asterisk-Stat: Analizator CDR
Name: asterisk-stat
Version: 2.0.1
-Release: 0.3
+Release: 0.4
License: ? (contains Freeware, LGPL, QPL parts)
Group: Applications/WWW
Source0: http://areski.net/asterisk-stat-v2/%{name}-v%{srcversion}.tar.gz
Requires: %{name}(DB_Driver) = %{version}-%{release}
Requires: adodb >= 4.67-1.17
Requires: jpgraph
-Requires: php
+Requires: php(gd)
Requires: php-cli
-Requires: php-gd
Requires: webapps
Requires: webserver
+Requires: webserver(php)
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _webapps /etc/webapps
%define _webapp %{name}
-%define _webappdir %{_webapps}/%{_webapp}
+%define _sysconfdir %{_webapps}/%{_webapp}
%define _appdir %{_datadir}/%{_webapp}
%description
Summary: Asterisk-stat DB Driver for MySQL
Summary(pl): Sterownik bazy danych MySQL dla Asterisk-stat
Group: Applications/WWW
-Requires: php-mysql
+Requires: php(mysql)
Provides: %{name}(DB_Driver) = %{version}-%{release}
%description db-mysql
-This virtual package provides MySQL database backend for Asterisk-stat.
+This virtual package provides MySQL database backend for
+Asterisk-stat.
%description db-mysql -l pl
Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla
Summary: Asterisk-stat DB Driver for PostgreSQL
Summary(pl): Sterownik bazy danych PostgreSQL dla Asterisk-stat
Group: Applications/WWW
-Requires: php-pgsql
+Requires: php(pgsql)
Provides: %{name}(DB_Driver) = %{version}-%{release}
%description db-pgsql
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_appdir},%{_webappdir},%{_sysconfdir}/%{name}}
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_sysconfdir}}
cp -aRf * $RPM_BUILD_ROOT%{_appdir}
-install %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
-install %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
-install %{SOURCE2} $RPM_BUILD_ROOT%{_webappdir}/config.php
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/config.php
%clean
rm -rf $RPM_BUILD_ROOT
-%triggerin -- apache1
+%triggerin -- apache1 < 1.3.37-3, apache1-base
%webapp_register apache %{_webapp}
-%triggerun -- apache1
+%triggerun -- apache1 < 1.3.37-3, apache1-base
%webapp_unregister apache %{_webapp}
%triggerin -- apache < 2.2.0, apache-base
%files
%defattr(644,root,root,755)
%doc CHANGELOG.txt
-%dir %attr(750,root,http) %{_webappdir}
-%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/config.php
-%config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
-%config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
-%{_datadir}/%{name}
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/config.php
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%{_appdir}
%files db-mysql
%defattr(644,root,root,755)