]> git.pld-linux.org Git - packages/asterisk-stat.git/blobdiff - asterisk-stat.spec
- php virtual extension deps
[packages/asterisk-stat.git] / asterisk-stat.spec
index 1b35da39010acd82263f6be5b7a2c92e9bfb388a..25f8e60ff6b542e8322222d5a9c2d5388907de29 100644 (file)
@@ -5,7 +5,7 @@ Summary:        Asterisk-Stat: CDR Analyser
 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
@@ -20,17 +20,17 @@ BuildRequires:      rpmbuild(macros) >= 1.264
 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
@@ -49,11 +49,12 @@ danych CDR.
 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
@@ -63,7 +64,7 @@ Asterisk-stat.
 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
@@ -84,20 +85,20 @@ find '(' -name '*.php' -o -name '*.inc' ')' -print0 | xargs -0 sed -i -e 's,\r$,
 
 %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
@@ -109,11 +110,11 @@ rm -rf $RPM_BUILD_ROOT
 %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)
This page took 0.078195 seconds and 4 git commands to generate.