co-own %{nodejs_sitelib} directory

This will ensure the directory is removed when the last package that owns it
is removed. Before, the directory would be kept (empty) on systems where
all nodejs and modules were removed.
This commit is contained in:
Jan Staněk 2023-11-14 10:56:29 +01:00
parent cd3a130f92
commit 9e562d3d4c
No known key found for this signature in database
GPG Key ID: 2972F2037B243B6D

View File

@ -81,6 +81,7 @@ npm --offline run test || :
%files %files
%doc README.md %doc README.md
%license LICENSE %{npm_name}-%{version}-bundled-licenses.txt %license LICENSE %{npm_name}-%{version}-bundled-licenses.txt
%dir %{nodejs_sitelib}
%{nodejs_sitelib}/%{npm_name} %{nodejs_sitelib}/%{npm_name}
%changelog %changelog