From 1c3d3c8e12b6a16f36aed1c9f5bc1df14b70674f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 8 Jan 2008 14:01:49 +0000 Subject: [PATCH] - use shared script for find-lang Changed files: dokuwiki.spec -> 1.20 --- dokuwiki.spec | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) diff --git a/dokuwiki.spec b/dokuwiki.spec index 47c1a6b..72cf2e1 100644 --- a/dokuwiki.spec +++ b/dokuwiki.spec @@ -2,13 +2,14 @@ Summary: PHP-based Wiki webapplication 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 @@ -103,27 +104,7 @@ ln $RPM_BUILD_ROOT%{_appdir}/lib/images/interwiki/{dokubug,issue}.gif 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 -- 2.44.0