diff --git a/README.md b/README.md index 75881fa..9d94b25 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # hunspell-zu +Zulu hunspell dictionaries. + diff --git a/hunspell-zu.spec b/hunspell-zu.spec new file mode 100644 index 0000000..cf6337b --- /dev/null +++ b/hunspell-zu.spec @@ -0,0 +1,53 @@ +Name: hunspell-zu +Version: 20100125 +Release: 2mamba +Summary: Zulu hunspell dictionaries +Group: System/Internationalization +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://www.translate.org.za/ +Source: http://releases.mozilla.org/pub/mozilla.org/addons/46490/zulu__south_africa__dictionary-%{version}-fx+tb.xpi +License: LGPL +Requires: hunspell +#BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Zulu hunspell dictionaries. + +%prep +%setup -q -c %{name}-%{version} + +%build + +if ! iconv -f utf-8 -t utf-8 -o /dev/null README-zu-ZA.txt > /dev/null 2>&1; then + iconv -f ISO-8859-2 -t UTF-8 README-zu-ZA.txt > README-zu-ZA.txti.new + touch -r README-zu-ZA.txt README-zu-ZA.txt.new + mv -f README-zu-ZA.txti.new README-zu-ZA.txt +fi +tr -d '\r' < README-zu-ZA.txt > README-zu-ZA.txt.new +touch -r README-zu-ZA.txt README-zu-ZA.txt.new +mv -f README-zu-ZA.txt.new README-zu-ZA.txt + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_datadir}/myspell +cp -p dictionaries/zu-ZA.aff %{buildroot}%{_datadir}/myspell/zu.aff +cp -p dictionaries/zu-ZA.dic %{buildroot}%{_datadir}/myspell/zu.dic + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_datadir}/myspell +%doc README-zu-ZA.txt + +%changelog +* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto 20100125-2mamba +- rebuilt + +* Tue Mar 15 2011 gil 20100125-1mamba +- package created by autospec diff --git a/zulu__south_africa__dictionary-20100125-fx+tb.xpi b/zulu__south_africa__dictionary-20100125-fx+tb.xpi new file mode 100644 index 0000000..947e3d7 Binary files /dev/null and b/zulu__south_africa__dictionary-20100125-fx+tb.xpi differ