SPECS: qt4.spec - Release 2 - new locale patch - polish translatio...
pascalek
pascalek at pld-linux.org
Tue Nov 28 20:06:51 CET 2006
Author: pascalek Date: Tue Nov 28 19:06:51 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- Release 2
- new locale patch
- polish translation for qt4 (only library)
- removed dont_enable bcond (usable translations are already in *.qm files)
---- Files affected:
SPECS:
qt4.spec (1.112 -> 1.113)
---- Diffs:
================================================================
Index: SPECS/qt4.spec
diff -u SPECS/qt4.spec:1.112 SPECS/qt4.spec:1.113
--- SPECS/qt4.spec:1.112 Sun Nov 19 12:00:51 2006
+++ SPECS/qt4.spec Tue Nov 28 20:06:46 2006
@@ -17,11 +17,8 @@
%bcond_without ibase # don't build ibase (InterBase/Firebird) plugin
%bcond_without pch # disable pch in qmake
%bcond_with sse # use SSE instructions in gui/painting module
-%bcond_with dont_enable # blocks translations, they are not yet available
%bcond_with AC # build for AC
-%undefine with_dont_enable
-
%ifnarch %{ix86} %{x8664} sparc sparcv9 alpha ppc
%undefine with_ibase
%endif
@@ -40,7 +37,7 @@
Summary(pt_BR): Estrutura para rodar aplicaçőes GUI Qt
Name: qt4
Version: 4.2.1
-Release: 1
+Release: 2
License: GPL/QPL
Group: X11/Libraries
Source0: ftp://ftp.trolltech.com/qt/source/qt-x11-opensource-src-%{version}.tar.gz
@@ -49,6 +46,7 @@
Source3: %{name}-designer.desktop
Source4: %{name}-assistant.desktop
Source5: %{name}-linguist.desktop
+Source6: %{name}_pl.ts
Patch0: %{name}-tools.patch
Patch2: %{name}-buildsystem.patch
Patch3: %{name}-locale.patch
@@ -1063,26 +1061,11 @@
echo "yes" | ./configure $COMMONOPT $OPT
%{__make}
-%if %{with dont_enable}
%{__make} \
sub-tools-all-ordered \
sub-demos-all-ordered \
sub-examples-all-ordered
-cd tools/designer/designer
-lrelease designer_de.ts
-lrelease designer_fr.ts
-cd -
-cd tools/assistant
-lrelease assistant_de.ts
-lrelease assistant_fr.ts
-cd -
-cd tools/linguist/linguist
-lrelease linguist_de.ts
-lrelease linguist_fr.ts
-cd -
-%endif
-
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir},%{_pkgconfigdir}}
@@ -1139,6 +1122,9 @@
#
# Locale
#
+cp %{SOURCE6} translations/qt_pl.ts
+LD_LIBRARY_PATH=lib bin/lrelease translations/qt_pl.ts -qm translations/qt_pl.qm
+
rm -f $RPM_BUILD_ROOT%{_datadir}/locale/*.qm
for file in translations/*.qm tools/assistant/*.qm tools/designer/designer/*.qm tools/linguist/linguist/*.qm
do
@@ -1146,21 +1132,12 @@
LANG=`echo $file | sed -r 's:.*/[a-zA-Z]*_(.*).qm:\1:'`
MOD=`echo $file | sed -r 's:.*/([a-zA-Z]*)_.*.qm:\1:'`
[ "$LANG" == "iw" ] && LANG=he
- [ "$MOD" == "qt" ] && MOD=qt4
+ MOD=qt4-$MOD
+ [ "$MOD" == "qt4-qt" ] && MOD=qt4
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale/$LANG/LC_MESSAGES
cp $file $RPM_BUILD_ROOT%{_datadir}/locale/$LANG/LC_MESSAGES/$MOD.qm
done
-%if %{with dont_enable}
-install tools/designer/designer/designer_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/designer.qm
-install tools/designer/designer/designer_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/designer.qm
-
-install tools/assistant/assistant_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/assistant.qm
-
-install tools/linguist/linguist/linguist_de.qm $RPM_BUILD_ROOT%{_datadir}/locale/de/LC_MESSAGES/linguist.qm
-install tools/linguist/linguist/linguist_fr.qm $RPM_BUILD_ROOT%{_datadir}/locale/fr/LC_MESSAGES/linguist.qm
-%endif
-
cd $RPM_BUILD_ROOT%{_includedir}/qt4/Qt
for f in ../Qt{3Support,Assistant,Core,DBus,Designer,Gui,Network,OpenGL,Sql,Svg,Test,UiTools,Xml}/*
do
@@ -1332,6 +1309,7 @@
%lang(es) %{_datadir}/locale/es/LC_MESSAGES/qt4.qm
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/qt4.qm
%lang(he) %{_datadir}/locale/he/LC_MESSAGES/qt4.qm
+%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/qt4.qm
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/qt4.qm
%lang(sk) %{_datadir}/locale/sk/LC_MESSAGES/qt4.qm
%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/qt4.qm
@@ -1437,7 +1415,7 @@
%attr(755,root,root) %{_bindir}/pixeltool
%attr(755,root,root) %{_bindir}/qt4-assistant
%attr(755,root,root) %{_qtdir}/bin/assistant
-%lang(de) %{_datadir}/locale/de/LC_MESSAGES/assistant.qm
+%lang(de) %{_datadir}/locale/de/LC_MESSAGES/qt4-assistant.qm
%{_desktopdir}/qt4-assistant.desktop
%{_pixmapsdir}/qt4-assistant.png
@@ -1567,6 +1545,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.113 2006/11/28 19:06:46 pascalek
+- Release 2
+- new locale patch
+- polish translation for qt4 (only library)
+- removed dont_enable bcond (usable translations are already in *.qm files)
+
Revision 1.112 2006/11/19 11:00:51 qboosh
- QtSvg R: QtXml, QtSvg-devel R: QtXml-devel
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/qt4.spec?r1=1.112&r2=1.113&f=u
More information about the pld-cvs-commit
mailing list