package init

This commit is contained in:
small_leek 2020-07-09 20:25:52 +08:00
parent 681f269917
commit 16414d90d2
3 changed files with 40 additions and 0 deletions

36
hunspell-ur.spec Normal file
View File

@ -0,0 +1,36 @@
Name: hunspell-ur
Version: 0.64
Release: 16
Summary: Hunspell dictionaries for Urdu
License: LGPLv2+
URL: http://urdudictionary.codeplex.com
source0: https://download.informer.com/win-1192698625-744a85ee-689fa894/urdudictionary.xpi
BuildArch: noarch
BuildRequires: redland
Requires: hunspell
Supplements: (hunspell and langpacks-ur)
%description
Hunspell dictionaries for Urdu.
%prep
%autosetup -c -n hunspell-ur -p1
%build
rdfproc hunspell-ur parse install.rdf
rdfproc hunspell-ur print | grep install-manifest | grep -v targetApplication | sed -e 's/.*#//' | sed -e 's/], "/: /'| sed -e 's/"}//' > CREDITS
%install
install -Dp dictionaries/ur.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/ur_PK.aff
install -Dp dictionaries/ur.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/ur_PK.dic
cd $RPM_BUILD_ROOT/%{_datadir}/myspell/
ln -s ur_PK.aff ur_IN.aff
ln -s ur_PK.dic ur_IN.dic
cd -
%files
%doc CREDITS
%{_datadir}/myspell/*
%changelog
* Thu May 14 2020 huanghaitao <huanghaitao8@huawei.com> - 0.64-16
- package init

4
hunspell-ur.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: NA
src_repo: NA
tag_prefix: NA
seperator: NA

BIN
urdudictionary.xpi Normal file

Binary file not shown.