diff --git a/README.md b/README.md index 2415ecf..a89b8ec 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # hunspell-ur +Urdu hunspell dictionaries. + diff --git a/UrduDictionary.xpi b/UrduDictionary.xpi new file mode 100644 index 0000000..6abbb87 Binary files /dev/null and b/UrduDictionary.xpi differ diff --git a/hunspell-ur.spec b/hunspell-ur.spec new file mode 100644 index 0000000..390fba9 --- /dev/null +++ b/hunspell-ur.spec @@ -0,0 +1,57 @@ +Name: hunspell-ur +Version: 0.64 +Release: 1mamba +Epoch: 1 +Summary: Urdu hunspell dictionaries +Group: System/Internationalization +Vendor: openmamba +Distribution: openmamba +Packager: gil +URL: http://urdudictionary.codeplex.com/ +#http://urdudictionary.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=30004#DownloadId=74761 +#and click yes to License agree +Source: UrduDictionary.xpi +License: LGPL +BuildRequires: librdf +Requires: hunspell +#BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Urdu hunspell dictionaries. + +%prep +%setup -q -c %{name}-%{version} + + +%build + +%{_bindir}/rdfproc hunspell-ur parse install.rdf +%{_bindir}/rdfproc hunspell-ur print | grep install-manifest | grep -v targetApplication | sed -e 's/.*#//' | sed -e 's/], "/: /'| sed -e 's/"}//' > CREDITS + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +mkdir -p %{buildroot}%{_datadir}/myspell +cp -p dictionaries/ur.aff %{buildroot}%{_datadir}/myspell/ur_PK.aff +cp -p dictionaries/ur.dic %{buildroot}%{_datadir}/myspell/ur_PK.dic + +pushd %{buildroot}%{_datadir}/myspell/ + ln -s ur_PK.aff ur_IN.aff + ln -s ur_PK.dic ur_IN.dic +popd + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_datadir}/myspell +%doc CREDITS + +%changelog +* Sun Apr 10 2011 Ercole 'ercolinux' Carpanetto 0.64-1mamba +- changed version number due to a typo from 0.94 to 0.64 + +* Tue Mar 15 2011 gil 0.94-1mamba +- package created by autospec