summaryrefslogtreecommitdiffstats
path: root/redhat/genrpm.sh
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2012-10-21 19:23:00 +0200
committerFrancois Andriot <francois.andriot@free.fr>2012-10-21 19:23:00 +0200
commit59daf455b483742c6c47099652117074df37889a (patch)
tree5271c465e9468df4e8fe1814bdb413164b40823e /redhat/genrpm.sh
parent7834467b40a454432c3f8d84b6b43e299afe4933 (diff)
downloadtde-packaging-59daf455b483742c6c47099652117074df37889a.tar.gz
tde-packaging-59daf455b483742c6c47099652117074df37889a.zip
RHEL/Fedora/MGA/MDV/Suse: update extras for TDE 3.5.13.1
Diffstat (limited to 'redhat/genrpm.sh')
-rwxr-xr-xredhat/genrpm.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/redhat/genrpm.sh b/redhat/genrpm.sh
index 9decbeb12..10f5dfbb0 100755
--- a/redhat/genrpm.sh
+++ b/redhat/genrpm.sh
@@ -31,7 +31,8 @@ EOF
# Checks RPMBUILD environment
RHEL="$( rpm -E "%{rhel}" )"
FEDORA="$( rpm -E "%{fedora}" )"
-if [ "${RHEL}" = "%{rhel}" ] && [ "${FEDORA}" = "%{fedora}" ]; then
+SUSE="$( rpm -E "%{suse_version}" )"
+if [ "${RHEL}" = "%{rhel}" ] && [ "${FEDORA}" = "%{fedora}" ] && [ "${SUSE}" = "%{suse_version}" ]; then
cat <<EOF
Error: RPM macro %rhel or %fedora must be set to the distribution version to build !
E.g: