Translation files are not installed?
I saw http://copr-dist-git.fedorainfracloud.org/cgit/alexpl/scidavis/scidavis.git/tree/scidavis.spec#n59
%{__cp} -p %{name}/translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
%find_lang %{name} --with-qt
and when I tried %find_lang %{name} --with-qt without copying the translations the macro didn't find anything. Is /usr/share/scidavis/translations/ the proper location and why doesn't qmake install it?
On Sun, Aug 06, 2017 at 02:12:39PM -0700, Matthias Mailänder wrote:
I saw http://copr-dist-git.fedorainfracloud.org/cgit/alexpl/scidavis/scidavis.git/tree/scidavis.spec#n59
%{__cp} -p %{name}/translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/ %find_lang %{name} --with-qtand when I tried
%find_lang %{name} --with-qtwithout copying the translations the macro didn't find anything. Is/usr/share/scidavis/translations/the proper location and why doesn'tqmakeinstall it?
That is the correct location. Typing "make install" in the scidavis executable directory installs it, at least with scidavis 1.19 or later.
--
Dr Russell Standish Phone 0425 253119 (mobile) Principal, High Performance Coders Visiting Senior Research Fellow [email protected] Economics, Kingston University http://www.hpcoders.com.au
The 'make install' step also fails to install translation files on Slackware. Tested with all versions from 0.2.? to 1.22. :-P The same occurs on ArchLinux (see the penultimate comment at https://aur.archlinux.org/packages/scidavis/). Since it occurs on Fedora too, I guess that it is a more general bug...
Here is what happens for me on OpenSUSE using scidavis-1.22:
rusnuc>rm -rf /tmp/user
rusnuc>make -j9 INSTALL_ROOT=/tmp install
....
rusnuc>ls /tmp/usr/share/scidavis/translations/
scidavis_cs-alt.qm scidavis_es.qm scidavis_pt-br.qm
scidavis_cs.qm scidavis_fr.qm scidavis_ru.qm
scidavis_de.qm scidavis_ja.qm scidavis_sv.qm
Looks to me like they're being installed.
But in scidavis.spec (for producing the Linux packages on OBS) is the following:
%install
pushd scidavis
make INSTALL_ROOT=%{buildroot} install
# not sure why we have to explicitly copy these files
mkdir -p %{buildroot}/usr/share/scidavis/translations
cp translations/*.qm %{buildroot}/usr/share/scidavis/translations
popd
Which indicates that at some point, translations weren't being copied on some distros.