SPECS: myspell-dictionaries.spec - add mozilla_words.patch
glen
glen at pld-linux.org
Sun Mar 4 22:10:33 CET 2007
Author: glen Date: Sun Mar 4 21:10:33 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add mozilla_words.patch
---- Files affected:
SPECS:
myspell-dictionaries.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: SPECS/myspell-dictionaries.spec
diff -u SPECS/myspell-dictionaries.spec:1.4 SPECS/myspell-dictionaries.spec:1.5
--- SPECS/myspell-dictionaries.spec:1.4 Sun Mar 4 17:27:32 2007
+++ SPECS/myspell-dictionaries.spec Sun Mar 4 22:10:27 2007
@@ -1,6 +1,6 @@
# $Revision$, $Date$
%define _ver 1.0.2
-%define _rel 0.4
+%define _rel 0.5
Summary: MySpell Spelling and Hyphenation dictionaries
Name: myspell-dictionaries
Version: %{_ver}
@@ -175,6 +175,7 @@
#Source306: http://dl.sourceforge.net/bgoffice/OOo-full-pack.zip
Source307: th_sk_SK.zip
# Source307-md5: df70385609f32d63a1e0d17712428755
+Patch0: myspell-mozilla_words.patch
BuildRequires: unzip
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -1452,7 +1453,7 @@
langpack="${basefile%.zip}"
echo "LANGPACK=$langpack"
mkdir -p doc/DICT/$langpack
- unzip -d doc/DICT/$langpack $dictfile
+ %{__unzip} -q -d doc/DICT/$langpack $dictfile
mkdir -p dic/DICT/$langpack
mv doc/DICT/$langpack/$langpack.{aff,dic} dic/DICT/$langpack
# create dummy file if docdir is empty
@@ -1461,8 +1462,6 @@
Spell checking dictionary for $langpack
EOF
fi
- # fix permissions
- chmod 644 doc/DICT/$langpack/*
done
# Handle spelling dictionaries
@@ -1475,7 +1474,7 @@
langpack="${basefile%.zip}"
echo "LANGPACK/(HPY)=$langpack"
mkdir -p doc/HYPH/$langpack
- unzip -d doc/HYPH/$langpack $hyphfile
+ %{__unzip} -q -d doc/HYPH/$langpack $hyphfile
mkdir -p dic/HYPH/$langpack
mv doc/HYPH/$langpack/$langpack.dic dic/HYPH/$langpack
# create dummy file if docdir is empty
@@ -1484,8 +1483,6 @@
Hyphenation dictionary for $langpack
EOF
fi
- # fix permissions
- chmod 644 doc/HYPH/$langpack/*
done
# Handle thesaurus dictionaries
@@ -1495,7 +1492,7 @@
langpack="${basefile%.zip}"
echo "LANGPACK(thes)=$langpack"
mkdir -p doc/THES/$langpack
- unzip -d doc/THES/$langpack $thesfile
+ %{__unzip} -q -d doc/THES/$langpack $thesfile
mkdir -p dic/THES/$langpack
mv doc/THES/$langpack/$langpack.{dat,idx} dic/THES/$langpack
# create dummy file if docdir is empty
@@ -1504,10 +1501,10 @@
Thesaurus dictionary for $langpack
EOF
fi
- # fix permissions
- chmod 644 doc/THES/$langpack/*
done
+%patch0 -p1
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{dictdir}
@@ -2936,6 +2933,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2007/03/04 21:10:27 glen
+- add mozilla_words.patch
+
Revision 1.4 2007/03/04 16:27:32 glen
- umask to scripts; simplify and drop bashism
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/myspell-dictionaries.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list