hunspell-ur/hunspell-ur.spec

61 lines
1.7 KiB
RPMSpec
Raw Normal View History

Name: hunspell-ur
Version: 0.64.1
Release: 1mamba
Epoch: 1
Summary: Urdu hunspell dictionaries
Group: System/Internationalization
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: https://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
* Thu Feb 04 2021 Automatic Build System <autodist@mambasoft.it> 0.64.1-1mamba
- automatic version update by autodist
* 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