diff --git a/librepo.spec b/librepo.spec
index 385be6d..851f2ad 100644
--- a/librepo.spec
+++ b/librepo.spec
@@ -11,7 +11,7 @@
 
 Name:           librepo
 Version:        1.9.0
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Repodata downloading library
 
 License:        LGPLv2+
@@ -130,8 +130,12 @@ pushd build-py3
 popd
 %endif
 
+%if 0%{?rhel} && 0%{?rhel} <= 7
 %post -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
+%else
+%ldconfig_scriptlets
+%endif
 
 %files
 %license COPYING
@@ -152,7 +156,10 @@ popd
 %endif
 
 %changelog
-* Tue Jun 26 2018 Jaroslav Mracek <> - 1.9.0-1
+* Tue Jun 26 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.9.0-2
+- Fix ldconfig_scriptlets once more
+
+* Tue Jun 26 2018 Jaroslav Mracek <jmracek@redhat.com> - 1.9.0-1
 - Update to 1.9.0
 
 * Mon Jun 18 2018 Miro HronĨok <mhroncok@redhat.com> - 1.8.1-9