summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobbie Harwood <rharwood@redhat.com>2017-04-13 20:00:11 +0000
committerRobbie Harwood <rharwood@redhat.com>2017-04-13 20:00:14 +0000
commit291b968871e72c24382a700453618ec50abc25b3 (patch)
treea0fbb31fd19bb0546fedcbd64328139693cb4e91
parent3d952fc6c01e3f41592d21cf10c94ef6f71ab287 (diff)
downloadkrb5-291b968871e72c24382a700453618ec50abc25b3.tar.gz
krb5-291b968871e72c24382a700453618ec50abc25b3.tar.xz
krb5-291b968871e72c24382a700453618ec50abc25b3.zip
Include fixes for previous commit
Resolves: #1433083
-rw-r--r--krb5.spec14
1 files changed, 10 insertions, 4 deletions
diff --git a/krb5.spec b/krb5.spec
index 36c8594..031e584 100644
--- a/krb5.spec
+++ b/krb5.spec
@@ -18,7 +18,7 @@ Summary: The Kerberos network authentication system
Name: krb5
Version: 1.15.1
# for prerelease, should be e.g., 0.3.beta2%{?dist}
-Release: 5%{?dist}
+Release: 6%{?dist}
# - Maybe we should explode from the now-available-to-everybody tarball instead?
# http://web.mit.edu/kerberos/dist/krb5/1.13/krb5-1.13.2-signed.tar
# - The sources below are stored in a lookaside cache. Upload with
@@ -511,13 +511,15 @@ rm -- "$RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/preauth/test.so"
%post libs -p /sbin/ldconfig
%triggerun libs -- krb5-libs
-old_ver=$(rpm -q --qf '%%{VERSION}' krb5-libs)
+# At this point in time, rpm considers both packages "installed" and prints
+# everything on the same line instead of something useful
+old_ver=$(rpm -q --qf '%%{VERSION}\n' krb5-libs | sort -V | head -n 1 | tr -d '\n')
-old_rel=$(rpm -q --qf '%%{RELEASE}' krb5-libs)
+old_rel=$(rpm -q --qf '%%{RELEASE}\n' krb5-libs | sort -V | head -n 1 | tr -d '\n')
old_rel=${old_rel%%.*}
+# add includedir /etc/krb5.conf.d to top of file
if [[ $old_ver < 1.15.1 || ( $old_ver = 1.15.1 && $old_rel < 5 ) ]]; then
- # add includedir /etc/krb5.conf.d to top of file
if ! grep -q 'includedir /etc/krb5.conf.d' /etc/krb5.conf ; then
sed -i '1i # To opt out of the system crypto-policies configuration of krb5, remove the\n# symlink at /etc/krb5.conf.d/crypto-policies which will not be recreated.\nincludedir /etc/krb5.conf.d/\n' /etc/krb5.conf
fi
@@ -728,6 +730,10 @@ exit 0
%{_libdir}/libkadm5srv_mit.so.*
%changelog
+* Thu Apr 13 2017 Robbie Harwood <rharwood@redhat.com> - 1.15.1-6
+- Include fixes for previous commit
+- Resolves: #1433083
+
* Thu Apr 13 2017 Robbie Harwood <rharwood@redhat.com> - 1.15.1-5
- Automatically add includedir where not present
- Try removing sleep statement to see if it is still needed