SPECS: asterisk-stat.spec - add db package
wolvverine
wolvverine at pld-linux.org
Fri May 26 14:24:32 CEST 2006
Author: wolvverine Date: Fri May 26 12:24:32 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add db package
---- Files affected:
SPECS:
asterisk-stat.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/asterisk-stat.spec
diff -u SPECS/asterisk-stat.spec:1.6 SPECS/asterisk-stat.spec:1.7
--- SPECS/asterisk-stat.spec:1.6 Fri May 26 12:57:57 2006
+++ SPECS/asterisk-stat.spec Fri May 26 14:24:27 2006
@@ -1,7 +1,6 @@
# $Revision$, $Date$
# TODO
# - remove jgraph from source
-# - Subpackage for databases?
# - license
# - move application config to webapps dir (redefine _sysconfdir to webappdir)
@@ -20,11 +19,11 @@
Patch0: %{name}-config.patch
URL: http://areski.net/asterisk-stat-v2/about.php
BuildRequires: rpm-perlprov
+Requires: %{name}(DB_Driver) = %{version}-%{release}
Requires: jpgraph
Requires: php
Requires: php-cli
Requires: php-gd
-Requires: php-mysql
Requires: webapps
Requires: webserver
BuildArch: noarch
@@ -47,6 +46,37 @@
serwerze Asteriska. Wszystkie wykresy i raporty są oparte na bazie
danych CDR.
+%package db-mysql
+Summary: Asterisk-stat DB Driver for MySQL
+Summary(pl): Sterownik bazy danych MySQL dla Asterisk-stat
+Group: Applications/WWW
+Requires: php-mysql < 4:5.0.0
+Provides: %{name}(DB_Driver) = %{version}-%{release}
+
+%description db-mysql
+This virtual package provides MySQL database backend for Asterisk-stat.
+
+%description db-mysql -l pl
+Ten wirtualny pakiet dostarcza backend bazy danych MySQL dla
+Asterisk-stat.
+
+%package db-pgsql
+Summary: Asterisk-stat DB Driver for PostgreSQL
+Summary(pl): Sterownik bazy danych PostgreSQL dla Asterisk-stat
+Group: Applications/WWW
+Requires: php-pgsql < 4:5.0.0
+Provides: %{name}(DB_Driver) = %{version}-%{release}
+
+%description db-pgsql
+This virtual package provides PostgreSQL database backend for
+Asterisk-stat.
+
+%description db-pgsql -l pl
+Ten wirtualny pakiet dostarcza backend bazy danych PostgreSQL dla
+Asterisk-stat.
+
+
+
%prep
%setup -q -n %{name}-v2
%patch0 -p1
@@ -86,12 +116,21 @@
%config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
%{_datadir}/%{name}
+%files db-mysql
+%defattr(644,root,root,755)
+
+%files db-pgsql
+%defattr(644,root,root,755)
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2006/05/26 12:24:27 wolvverine
+- add db package
+
Revision 1.6 2006/05/26 10:57:57 glen
- update todo
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/asterisk-stat.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list