[akonadi/f15] backport mod(s) from master to make switching backends easier

Rex Dieter rdieter at fedoraproject.org
Thu Jul 21 13:08:09 UTC 2011


commit 28f0d34616062025759665ed2f2bb6b17fed34e6
Author: Rex Dieter <rdieter at fedoraproject.org>
Date:   Thu Jul 21 08:07:38 2011 -0500

    backport mod(s) from master to make switching backends easier

 akonadi.spec |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/akonadi.spec b/akonadi.spec
index b5b94cd..ddc7678 100644
--- a/akonadi.spec
+++ b/akonadi.spec
@@ -1,6 +1,6 @@
 
 ## can be Can be either MYSQL(default), POSTGRES or SQLITE
-#global database_backend MYSQL 
+%global database_backend MYSQL 
 
 Summary: PIM Storage Service
 Name:    akonadi
@@ -38,19 +38,23 @@ BuildRequires: sqlite-devel >= 3.6.23
 
 %{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
 
+%if "%{?database_backend}" == "MYSQL"
 # when/if akonadi grows support for other backends, consider splitting
 # these similar to how phonon is done currently.
 Requires: qt4-mysql%{?_isa}
 # not *strictly* required, but we need a functional default configuration
 Requires: mysql-server
+%endif
 Requires(postun): /sbin/ldconfig
 
 %description
 %{summary}.
+%if "%{?database_backend}" == "MYSQL"
 Requires an available instance of mysql server at runtime.  
 Akonadi can spawn a per-user one automatically if the mysql-server 
 package is installed on the machine.
 See also: %{_sysconfdir}/akonadi/mysql-global.conf
+%endif
 
 %package devel
 Summary: Developer files for %{name}


More information about the scm-commits mailing list