Browse code

Adding dependency for openldap,m4 and fixing bug 1665701

Change-Id: I288ff011c68e982e8554128f0333cc3b8b055ec6
Reviewed-on: http://photon-jenkins.eng.vmware.com/1013
Reviewed-by: Sharath George
Tested-by: Sharath George

Kumar Kaushik authored on 2016/05/26 10:37:06
Showing 1 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:        Commonly used Mail transport agent (MTA)
2 2
 Name:           sendmail
3 3
 Version:        8.15.2
4
-Release:        4%{?dist}
4
+Release:        5%{?dist}
5 5
 URL:            http://www.sendmail.org/
6 6
 License:        GPLv2+ and GPLv3+ and LGPLv2+
7 7
 Group:          Email/Server/Library
... ...
@@ -14,6 +14,8 @@ BuildRequires:  openssl-devel
14 14
 BuildRequires:  db-devel
15 15
 BuildRequires:  shadow
16 16
 Requires:       systemd
17
+Requires:       m4
18
+Requires:       openldap
17 19
 
18 20
 %define sha1 sendmail=5801d4b06f4e38ef228a5954a44d17636eaa5a16
19 21
 
... ...
@@ -124,12 +126,11 @@ install -v -m700 -d /var/spool/mqueue
124 124
 
125 125
 %post
126 126
 if [ $1 -eq 1 ] ; then
127
-  echo $(hostname) > /etc/mail/local-host-names
127
+  echo $(hostname -f) > /etc/mail/local-host-names
128 128
   cat > /etc/mail/aliases << "EOF"
129
-  postmaster: root
130
-  MAILER-DAEMON: root
131
-
132
-  EOF
129
+postmaster: root
130
+MAILER-DAEMON: root
131
+EOF
133 132
   /bin/newaliases
134 133
 
135 134
   cd /etc/mail
... ...
@@ -166,6 +167,8 @@ fi
166 166
 
167 167
 
168 168
 %changelog
169
+*       Wed May 25 2016 Kumar Kaushik <kaushikk@vmware.com> 8.15.2-5
170
+-       Adding dependencies and fixing post section installation bug.
169 171
 *	Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.15.2-4
170 172
 -	GA - Bump release of all rpms
171 173
 *   	Wed May 4 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 8.15.2-3