From bc0f275b1e07941b97bc193f7f0b8d57982832c5 Mon Sep 17 00:00:00 2001 From: Petr Špaček Date: Jul 18 2018 10:28:45 +0000 Subject: move ownership of /usr/share/lua/5.3 and /usr/lib64/lua/5.3 to lua-libs As far as I can tell there should not be any effect visible outside of RPM database and fedora-review tool. This change is needed to make lua-libs package + *other* Lua packages compliant with packaging guidelines. Formerly the lua-libs package put a library /usr/lib64/lua/5.3 directory but did not own the directory itself. This is being flagged by fedora-review as non-compliance. This problem affected other Lua packages which put library into /usr/lib64/lua/5.3 as well. These other libraries were always flagged by fedora-review as non-compliant because the library package did not Require a package which owns /usr/lib64/lua/5.3. (The build system autogenerates depedency on lua-libs which did not own the directory.) --- diff --git a/lua.spec b/lua.spec index fd12da5..2dc7cfa 100644 --- a/lua.spec +++ b/lua.spec @@ -188,20 +188,19 @@ install -Dpm 0644 %{SOURCE1000} $RPM_BUILD_ROOT/%{macrosdir}/macros.lua %doc README doc/*.html doc/*.css doc/*.gif doc/*.png %{_bindir}/lua %{_bindir}/luac -%if 0%{?bootstrap} -%dir %{_libdir}/lua/%{bootstrap_major_version} -%dir %{_datadir}/lua/%{bootstrap_major_version} -%endif %{_mandir}/man1/lua*.1* + +%files libs %dir %{_libdir}/lua %dir %{_libdir}/lua/%{major_version} +%{_libdir}/liblua-%{major_version}.so %dir %{_datadir}/lua %dir %{_datadir}/lua/%{major_version} -%files libs -%{_libdir}/liblua-%{major_version}.so %if 0%{?bootstrap} +%dir %{_libdir}/lua/%{bootstrap_major_version} %{_libdir}/liblua-%{bootstrap_major_version}.so +%dir %{_datadir}/lua/%{bootstrap_major_version} %endif %files devel