diff --git a/dnf5.spec b/dnf5.spec index 583a1874b..a4c57fdac 100644 --- a/dnf5.spec +++ b/dnf5.spec @@ -381,7 +381,7 @@ Package management library. %dir %{_libdir}/libdnf5 %{_libdir}/libdnf5.so.2* %license lgpl-2.1.txt -%{_var}/cache/libdnf5/ +%ghost %attr(0755, root, root) %dir %{_var}/cache/libdnf5 # ========== libdnf5-cli ========== diff --git a/libdnf5/CMakeLists.txt b/libdnf5/CMakeLists.txt index c5c4c4805..d360901ee 100644 --- a/libdnf5/CMakeLists.txt +++ b/libdnf5/CMakeLists.txt @@ -142,9 +142,6 @@ list(JOIN LIBDNF5_PC_REQUIRES_PRIVATE ", " LIBDNF5_PC_REQUIRES_PRIVATE_STRING) configure_file("libdnf5.pc.in" ${CMAKE_CURRENT_BINARY_DIR}/libdnf5.pc @ONLY) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libdnf5.pc DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}/pkgconfig) -# Makes an empty directory for libdnf5 cache -install(DIRECTORY DESTINATION "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/cache/libdnf5") - # Makes an empty directory for libdnf5 distribution drop-in configuration files install(DIRECTORY DESTINATION "${CMAKE_INSTALL_PREFIX}/share/dnf5/libdnf.conf.d")