SPECS: winetools.spec - unify, discard subshells (simplify); rel 3

glen glen at pld-linux.org
Wed Oct 25 01:27:41 CEST 2006


Author: glen                         Date: Tue Oct 24 23:27:41 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- unify, discard subshells (simplify); rel 3

---- Files affected:
SPECS:
   winetools.spec (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: SPECS/winetools.spec
diff -u SPECS/winetools.spec:1.14 SPECS/winetools.spec:1.15
--- SPECS/winetools.spec:1.14	Wed Oct 25 01:04:49 2006
+++ SPECS/winetools.spec	Wed Oct 25 01:27:35 2006
@@ -2,7 +2,7 @@
 # TODO:
 # - icon and some desktop file
 %define		_suffix	jo
-%define		_rel 2
+%define		_rel 3
 Summary:	WineTools - a menu driven installer for installing Windows programs under Linux
 Summary(pl):	WineTools - oparty na menu instalator do windowsowych programów pod Linuksem
 Name:		winetools
@@ -80,7 +80,8 @@
 mv gettext.sh.dummy gettext.sh
 %patch0 -p1
 
-sed -i -e 's#\. findwine#. %{_winetoolsdir}/findwine#' scripts/*
+%{__sed} -i -e 's#\. findwine#. %{_winetoolsdir}/findwine#' scripts/*
+mv po/{de_DE at euro,de}.po
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -94,13 +95,12 @@
 install 3rdParty/*.{cfg,reg,txt} $RPM_BUILD_ROOT%{_winetoolsdir}/3rdParty
 install gettext.sh $RPM_BUILD_ROOT%{_winetoolsdir}
 
-cd po
-mv {de_DE at euro,de}.po
-for i in $(ls *.po | cut -f1 -d.); do
-	install -d $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES
-	msgfmt $i.po -o $RPM_BUILD_ROOT%{_datadir}/locale/$i/LC_MESSAGES/wt2.mo
+for i in po/*.po; do
+	locale=${i#po/}
+	locale=${locale%.po}
+	install -d $RPM_BUILD_ROOT%{_datadir}/locale/$locale/LC_MESSAGES
+	msgfmt po/$locale.po -o $RPM_BUILD_ROOT%{_datadir}/locale/$locale/LC_MESSAGES/wt2.mo
 done
-cd ..
 
 %find_lang wt2
 
@@ -137,6 +137,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.15  2006/10/24 23:27:35  glen
+- unify, discard subshells (simplify); rel 3
+
 Revision 1.14  2006/10/24 23:04:49  sls
 - renamed locale (de_DE at euro -> de)
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/winetools.spec?r1=1.14&r2=1.15&f=u



More information about the pld-cvs-commit mailing list