rpm and %find_lang macro: odd behavior

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While trying to upgrade kstars to the latest version I'm seeing an odd behavior of rpm filelist and the %find_lang macro.

After having set '%find_lang kstars --with-kde' in the install section, the documentation directories are correctly listed in the kstars.lang file:
%lang(en) /usr/share/doc/HTML/en/kstars
%lang(de) /usr/share/doc/HTML/de/kstars
%lang(sv) /usr/share/doc/HTML/sv/kstars
%lang(es) /usr/share/doc/HTML/es/kstars
%lang(uk) /usr/share/doc/HTML/uk/kstars
%lang(pt) /usr/share/doc/HTML/pt_BR/kstars
%lang(nl) /usr/share/doc/HTML/nl/kstars
%lang(ca) /usr/share/doc/HTML/ca/kstars
%lang(it) /usr/share/doc/HTML/it/kstars

But this doesn't seem sufficient to rpm to package those files:
Installed (but unpackaged) file(s) found:
   /usr/share/doc/HTML/it/kstars/Add_Object_to_Session_plan.png
   /usr/share/doc/HTML/it/kstars/Add_Object_to_Session_plan.png
   /usr/share/doc/HTML/it/kstars/KStars_Neptune.png
   /usr/share/doc/HTML/it/kstars/KStars_Neptune.png
[...]

I need to manually add '%{_kf5_docdir}/HTML/*/kstars/*' to the %files section to build the package successfully.
Is this how it's supposed to work? It seems that all the lines '%lang(xx) /usr/share/doc/HTML/it/kstars' in the .language files are treated like '%dir %lang(xx) /usr/share/doc/HTML/it/kstars' and don't include directories content.
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux