packages: yum/yum.spec - need unicode locale while testing

glen glen at pld-linux.org
Tue Mar 22 07:22:05 CET 2011


Author: glen                         Date: Tue Mar 22 06:22:05 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- need unicode locale while testing

---- Files affected:
packages/yum:
   yum.spec (1.89 -> 1.90) 

---- Diffs:

================================================================
Index: packages/yum/yum.spec
diff -u packages/yum/yum.spec:1.89 packages/yum/yum.spec:1.90
--- packages/yum/yum.spec:1.89	Tue Mar 22 07:19:03 2011
+++ packages/yum/yum.spec	Tue Mar 22 07:22:00 2011
@@ -5,6 +5,7 @@
 
 # TODO
 # - PLDize (or drop) /etc/yum/version-groups.conf
+# - fix yum startup (likely vserver chroot patch needs updating):
 # # yum
 #Loaded plugins: refresh-packagekit
 #Traceback (most recent call last):
@@ -44,9 +45,14 @@
 URL:		http://yum.baseurl.org/
 BuildRequires:	gettext-devel
 BuildRequires:	intltool
-%{?with_tests:BuildRequires:	python-nose}
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.228
+%if %{with tests}
+BuildRequires:	python-nose
+%if %(locale -a | grep -qFx en_US.utf8; echo $?)
+BuildRequires:  glibc-localedb-all
+%endif
+%endif
 Requires:	python >= 1:2.5
 Requires:	python-iniparse
 Requires:	python-libxml2
@@ -89,7 +95,11 @@
 %build
 %{__make}
 
-%{?with_tests:%{__make} test}
+%if %{with tests}
+# test/check-po-yes-no.py prints chinese to screen, need to enable utf8
+export LC_ALL=en_US.utf8
+%{__make} test
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -187,6 +197,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.90  2011/03/22 06:22:00  glen
+- need unicode locale while testing
+
 Revision 1.89  2011/03/22 06:19:03  glen
 - run testing
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/yum/yum.spec?r1=1.89&r2=1.90&f=u



More information about the pld-cvs-commit mailing list