diff --git a/dict-sr.oxt b/dict-sr.oxt new file mode 100644 index 0000000..fb81d93 Binary files /dev/null and b/dict-sr.oxt differ diff --git a/hunspell-sr.spec b/hunspell-sr.spec new file mode 100644 index 0000000..4cb223b --- /dev/null +++ b/hunspell-sr.spec @@ -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 - 0.20130330-12 +- package init diff --git a/hunspell-sr.yaml b/hunspell-sr.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/hunspell-sr.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA