Bug 1246869

Summary: No translation in frescobaldi package
Product: [Fedora] Fedora Reporter: dominique <chepioq>
Component: frescobaldiAssignee: Gwyn Ciesla <gwync>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: brendan.jones.it, chepioq, gwync, yoann
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.18.1-2.fc22 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-21 10:48:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description dominique 2015-07-26 13:59:13 UTC
Description of problem:
I install frescobaldi, but there is no translation available.

But I look in the rpm source and I can see that the .mo file is present in frescobaldi_app/po.

For test I rebuild with rpmbuild, but there are no .mo files in usr/lib/python2.7/site-packages/frescobaldi_app/po.

I look the spec and I see that : 
.....................................
## File lists
# Create the lang file. %%find_lang does not handle .po files
for file in %{buildroot}%{python_sitelib}/%{name}_app/po/*.mo; do
    bn=$(basename $file)
    language=$(basename $file|cut -f 2 -d _|sed 's|\..*||')
    echo %%lang\($language\) %{python_sitelib}/%{name}_app/po/$bn >> frescobaldi.lang
    done

...................
%files -f %{name}.lang
%doc ChangeLog COPYING README* THANKS TODO
%{_bindir}/%{name}
%{python_sitelib}/%{name}_app
# the following is in our lang file
%exclude %{python_sitelib}/%{name}_app/po/*.mo
%{python_sitelib}/%{name}-%{version}-py2.7.egg-info
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/*

For test I modify the line : 

%exclude %{python_sitelib}/%{name}_app/po/*.mo

by: 
%{python_sitelib}/%{name}_app/po/*.mo

I rebuild with this new spec, compilation work with warning (package .mo listed twice)

I install this new rpm and I have the translation.

Can you rebuild a package with a new spec and with translation ?

Comment 1 Yoann Le Bars 2015-07-26 14:57:11 UTC
Adding myself to the CC users.

Comment 2 Fedora Update System 2015-09-15 15:39:08 UTC
frescobaldi-2.18.1-2.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15914

Comment 3 Fedora Update System 2015-09-15 15:40:34 UTC
frescobaldi-2.18.1-2.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15915

Comment 4 Fedora Update System 2015-09-15 22:56:13 UTC
frescobaldi-2.18.1-2.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update frescobaldi'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15915

Comment 5 Fedora Update System 2015-09-16 04:52:58 UTC
frescobaldi-2.18.1-2.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update frescobaldi'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15914

Comment 6 Fedora Update System 2015-09-21 10:48:36 UTC
frescobaldi-2.18.1-2.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2015-09-24 08:24:50 UTC
frescobaldi-2.18.1-2.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.