Arch / Locale packaging issue.

Elan Ruusamäe glen at delfi.ee
Tue Jun 15 16:23:25 CEST 2010


On Tuesday 15 June 2010 17:17:23 Elan Ruusamäe wrote:
> On Tuesday 15 June 2010 13:29:08 Caleb Maclennan wrote:
> > I'm having some trouble packaging trac-0.12.
> >
> > The current spec compiles, but the languages files are not generated
> > properly. If I remove BuildArch: noarch, everything builds and runs
> > fine but
>
> i don't see any lang files with disabled bulldarch: noarch either.

the *.mo is not present which it should install:

setup.py

    package_data = {
        '': ['templates/*'],
        'trac': ['htdocs/*.*', 'htdocs/README', 'htdocs/js/*.*',
                 'htdocs/js/messages/*.*', 'htdocs/css/*.*',
                 'htdocs/guide/*', 'locale/*/LC_MESSAGES/messages.mo'],

so first is needed to produce .po -> .mo 

which are in trac/locale dir:

Trac-0.12 $ find -name '*.po'| head -n1
./trac/locale/sl/LC_MESSAGES/messages-js.po

-- 
glen


More information about the pld-devel-en mailing list