hunspell-ur/hunspell-ur.spec

58 lines
1.6 KiB
RPMSpec
Raw Permalink Normal View History

Name: hunspell-ur
Version: 0.64
Release: 1mamba
Epoch: 1
Summary: Urdu hunspell dictionaries
Group: System/Internationalization
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
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 <ercole69@gmail.com> 0.64-1mamba
- changed version number due to a typo from 0.94 to 0.64
* Tue Mar 15 2011 gil <puntogil@libero.it> 0.94-1mamba
- package created by autospec