[Bug 488107] Review Request: django-pagination - Django pagination tools

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

 



Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


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


Mamoru Tasaka <mtasaka@xxxxxxxxxxxxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mtasaka@xxxxxxxxxxxxxxxxxxx




--- Comment #4 from Mamoru Tasaka <mtasaka@xxxxxxxxxxxxxxxxxxx>  2009-03-04 15:27:59 EDT ---
(In reply to comment #1)
> rpmlint output
> django-pagination.noarch: W: file-not-in-%lang
> /usr/lib/python2.6/site-packages/pagination/locale/de/LC_MESSAGES/django.mo
> django-pagination.noarch: W: file-not-in-%lang
> /usr/lib/python2.6/site-packages/pagination/locale/fr/LC_MESSAGES/django.mo
> django-pagination.noarch: W: file-not-in-%lang
> /usr/lib/python2.6/site-packages/pagination/locale/pl/LC_MESSAGES/django.mo
> 
> you should use lang macro to handle locales.


(In reply to comment #3)
> The only solution to the locale files in Django for now is to remove them;
> fixing this is on my todo list.

Perhaps what I am doing on rubygem-gettext.spec is useful.
http://cvs.fedoraproject.org/viewvc/rpms/rubygem-gettext/devel/rubygem-gettext.spec?revision=1.3

For this package, something like:
------------------------------------------------------------------
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

# modify find-lang.sh to deal with gettext .mo files under
# pagination/locale
%{__sed} -e 's|/share/locale/|/pagination/locale/|' \
 /usr/lib/rpm/find-lang.sh \
 > find-lang-modified.sh

sh find-lang-modified.sh %{buildroot} django django.lang
find %{buildroot}%{python_sitelib}/pagination/locale -type d | while read dir
do
 echo "%%dir ${dir#%{buildroot}}" >> django.lang
done
find %{buildroot}%{python_sitelib}/pagination/locale -name \*.po -delete

%clean
rm -rf $RPM_BUILD_ROOT

%files -f django.lang
%defattr(-,root,root,-)
%doc CONTRIBUTORS.txt LICENSE.txt docs/
%{python_sitelib}/*egg*/
%dir %{python_sitelib}/pagination/
%{python_sitelib}/pagination/__init__.py*
%{python_sitelib}/pagination/[m-z]*
--------------------------------------------------------------------

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Fedora-package-review mailing list
Fedora-package-review@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-package-review

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