[Bug 871092] Review Request: updf - Application to write to PDF

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

 



https://bugzilla.redhat.com/show_bug.cgi?id=871092

--- Comment #15 from Antonio Trande <trpost@xxxxxxxxxxxx> ---
(In reply to comment #11)
> 
> Mario already pointed out one of the problems with the %files section: You
> are hardcoding the languages. Whenever a new translation is added, the build
> will fail. %find_lang does not work because the locales are in
> /usr/share/locale-langpack. This is wrong. Can you try patching the package
> to use /usr/share/locale instead?
> 
> Hint: I had a similar problem and solved it with sed, see line 45-50 at 
> http://pkgs.fedoraproject.org/cgit/rednotebook.git/tree/rednotebook.
> spec?id=de7097c1#n45

Ok. These lines:

# heavily borrowed from /usr/lib/rpm/find-lang.sh
#find %{buildroot} -type f -o -type l|sort|sed '
#s:'"%{buildroot}"'::
#s:\(.*/i18n/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
#s:^\([^%].*\)::
#/^$/d' > %{name}.lang

are very similar to ones on /usr/lib/rpm/find-lang.sh, so do I need to use them
to find all *.mo files and write %{name}.lang. The issue is how to do that.

Maybe do I need of a .sh file ? Or does exist another way ?

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/package-review



[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]