SPECS: dokuwiki.spec - use shared script for find-lang
glen
glen at pld-linux.org
Tue Jan 8 15:01:54 CET 2008
Author: glen Date: Tue Jan 8 14:01:54 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- use shared script for find-lang
---- Files affected:
SPECS:
dokuwiki.spec (1.19 -> 1.20)
---- Diffs:
================================================================
Index: SPECS/dokuwiki.spec
diff -u SPECS/dokuwiki.spec:1.19 SPECS/dokuwiki.spec:1.20
--- SPECS/dokuwiki.spec:1.19 Tue Jan 8 14:57:39 2008
+++ SPECS/dokuwiki.spec Tue Jan 8 15:01:49 2008
@@ -3,13 +3,14 @@
Summary(pl.UTF-8): Aplikacja WWW Wiki oparta na PHP
Name: dokuwiki
Version: 20070626b
-Release: 0.28
+Release: 0.29
License: GPL v2
Group: Applications/WWW
Source0: http://www.splitbrain.org/_media/projects/dokuwiki/%{name}-2007-06-26b.tgz
# Source0-md5: 84e9b5e8e617658bb0264aa3836f23b3
Source1: %{name}-apache.conf
Source2: %{name}-lighttpd.conf
+Source3: %{name}-find-lang.sh
Patch0: %{name}-paths.patch
Patch1: %{name}-config.patch
Patch2: %{name}-mysqlauth.patch
@@ -104,27 +105,7 @@
ln $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/{dokubug,bug}.gif
# find locales
-> %{name}.lang
-find $RPM_BUILD_ROOT%{_appdir} -type d -name lang | while read dir; do
- echo "%dir ${dir#$RPM_BUILD_ROOT}" >> %{name}.lang
- for dir in $dir/*; do
- lang=${dir##*/}
- dir=${dir#$RPM_BUILD_ROOT}
- case "$lang" in
- zh-tw)
- lang=zh_TW
- ;;
- pt-br)
- lang=pt_BR
- ;;
- *-*)
- : Need mapping for $lang!
- exit 1
- ;;
- esac
- echo "%lang($lang) ${dir#$RPM_BUILD_ROOT}" >> %{name}.lang
- done
-done
+sh %{SOURCE3} %{name}.lang
%clean
rm -rf $RPM_BUILD_ROOT
@@ -266,6 +247,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.20 2008-01-08 14:01:49 glen
+- use shared script for find-lang
+
Revision 1.19 2008-01-08 13:57:39 glen
- %lang entries
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/dokuwiki.spec?r1=1.19&r2=1.20&f=u
More information about the pld-cvs-commit
mailing list