From bbaf15788e2cf315c241b5803acdaddb991b21ae Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 3 Aug 2008 18:08:27 +0000 Subject: [PATCH] distribution check --- lam-packaging/RPM/ldap-account-manager.spec | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lam-packaging/RPM/ldap-account-manager.spec b/lam-packaging/RPM/ldap-account-manager.spec index 8b06c650..223aa8d8 100644 --- a/lam-packaging/RPM/ldap-account-manager.spec +++ b/lam-packaging/RPM/ldap-account-manager.spec @@ -1,7 +1,8 @@ -%define httpd_rootdir /var/www/html +%define httpd_rootdir @@HTTP_DIR@@ %define lam_dir lam %define lam_uid @@USER@@ %define lam_gid @@GROUP@@ +%define distribution @@DISTRIBUTION@@ Name: ldap-account-manager License: GPL @@ -15,6 +16,15 @@ Summary: Administration of LDAP users, groups and hosts via Web GUI Vendor: Roland Gruber Packager: Roland Gruber BuildArchitectures: noarch +AutoReqProv: no +%if %distribution eq "SUSE" +Requires: mod_php_any perl +Requires: php +Requires: php-gettext +Requires: php-session +Requires: php-ldap +Requires: php-mhash +%endif %description