!1 init package

Merge pull request !1 from 薄皮小笼包/master
This commit is contained in:
openeuler-ci-bot 2020-07-16 15:51:55 +08:00 committed by Gitee
commit 486e0fd046
3 changed files with 67 additions and 0 deletions

BIN
dict-sr.oxt Normal file

Binary file not shown.

63
hunspell-sr.spec Normal file
View File

@ -0,0 +1,63 @@
Name: hunspell-sr
%global upstreamid 20130330
Version: 0.20130330
Release: 12
Summary: Hunspell dictionaries and Hyphenation rules for Serbian
License: LGPLv3
URL: http://extensions.services.openoffice.org/project/dict-sr
Source: https://downloads.sourceforge.net/project/aoo-extensions/1572/10/dict-sr.oxt
BuildArch: noarch
Requires: hunspell hyphen-sr
Supplements: (hunspell and langpacks-sr)
Supplements: (hyphen and langpacks-sr)
Provides: hunspell-bs = %{version}-%{release}
Provides: hyphen-bs = %{version}-%{release}
Provides: hyphen-sr = %{version}-%{release}
Obsoletes: hyphen-sr < %{version}-%{release}
%description
Hunspell dictionaries and Hyphenation rules for Serbian.
%prep
%autosetup -c -n hunspell-sr -p1
%build
%install
install -Dp sr.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.dic
install -p sr.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.aff
install -p sr-Latn.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sh_YU.dic
install -p sr-Latn.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sh_YU.aff
install -Dp hyph_sr.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sr_YU.dic
install -p hyph_sr-Latn.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sh_YU.dic
sr_YU_aliases="sr_ME sr_RS"
sh_YU_aliases="sh_ME sh_RS bs_BA"
cd $RPM_BUILD_ROOT/%{_datadir}/myspell/
for lang in $sr_YU_aliases; do
ln -s sr_YU.aff $lang.aff
ln -s sr_YU.dic $lang.dic
done
for lang in $sh_YU_aliases; do
ln -s sh_YU.aff $lang.aff
ln -s sh_YU.dic $lang.dic
done
cd -
cd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
for lang in $sr_YU_aliases; do
ln -s hyph_sr_YU.dic "hyph_"$lang".dic"
done
for lang in $sh_YU_aliases; do
ln -s hyph_sh_YU.dic "hyph_"$lang".dic"
done
cd -
%files
%doc registration/license*.txt
%{_datadir}/myspell/*
%{_datadir}/hyphen/*
%changelog
* Tue Apr 21 2020 huanghaitao <huanghaitao8@huawei.com> - 0.20130330-12
- package init

4
hunspell-sr.yaml Normal file
View File

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