64 lines
1.8 KiB
RPMSpec
64 lines
1.8 KiB
RPMSpec
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
|