2008-07-23 17:37:44 +00:00
|
|
|
Name: hunspell-sr
|
|
|
|
Summary: Serbian hunspell dictionaries
|
2009-05-05 15:01:47 +00:00
|
|
|
%define upstreamid 20090213
|
2008-07-23 17:37:44 +00:00
|
|
|
Version: 0.%{upstreamid}
|
2009-05-05 15:01:47 +00:00
|
|
|
Release: 1%{?dist}
|
|
|
|
Source: http://extensions.services.openoffice.org/files/1572/2/dict-sr.oxt
|
2008-07-23 17:37:44 +00:00
|
|
|
Group: Applications/Text
|
2009-05-05 15:01:47 +00:00
|
|
|
URL: http://extensions.services.openoffice.org/project/dict-sr
|
2008-07-23 17:37:44 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
License: LGPLv2+
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: hunspell
|
2009-05-05 15:01:47 +00:00
|
|
|
Provides: hunspell-bs = %{version}-%{release}
|
2008-07-23 17:37:44 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Serbian hunspell dictionaries.
|
|
|
|
|
2009-05-05 15:01:47 +00:00
|
|
|
%package -n hyphen-sr
|
|
|
|
Requires: hyphen
|
|
|
|
Summary: Serbian hyphenation rules
|
|
|
|
Group: Applications/Text
|
|
|
|
Provides: hyphen-bs = %{version}-%{release}
|
|
|
|
|
|
|
|
%description -n hyphen-sr
|
|
|
|
Serbian hyphenation rules.
|
|
|
|
|
2008-07-23 17:37:44 +00:00
|
|
|
%prep
|
2009-05-05 15:01:47 +00:00
|
|
|
%setup -q -c
|
2008-07-23 17:37:44 +00:00
|
|
|
|
|
|
|
%build
|
2009-05-05 15:01:47 +00:00
|
|
|
cp -p README_sh.txt README_hyph.txt
|
2008-07-23 17:37:44 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
|
2009-05-05 15:01:47 +00:00
|
|
|
cp -p sr.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.dic
|
|
|
|
cp -p sr.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sr_YU.aff
|
|
|
|
cp -p sh.dic $RPM_BUILD_ROOT/%{_datadir}/myspell/sh_YU.dic
|
|
|
|
cp -p sh.aff $RPM_BUILD_ROOT/%{_datadir}/myspell/sh_YU.aff
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
|
|
|
cp -p hyph_sr.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sr_YU.dic
|
|
|
|
cp -p hyph_sh.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen/hyph_sh_YU.dic
|
2008-07-23 17:37:44 +00:00
|
|
|
|
|
|
|
sr_YU_aliases="sr_ME sr_RS"
|
2009-05-05 15:01:47 +00:00
|
|
|
sh_YU_aliases="sh_ME sh_RS bs_BA"
|
|
|
|
|
|
|
|
pushd $RPM_BUILD_ROOT/%{_datadir}/myspell/
|
2008-07-23 17:37:44 +00:00
|
|
|
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
|
|
|
|
popd
|
|
|
|
|
2009-05-05 15:01:47 +00:00
|
|
|
pushd $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
|
|
|
|
popd
|
|
|
|
|
2008-07-23 17:37:44 +00:00
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2009-05-05 15:01:47 +00:00
|
|
|
%doc README_sh.txt README_sr.txt registration/license*.txt
|
2008-07-23 17:37:44 +00:00
|
|
|
%{_datadir}/myspell/*
|
|
|
|
|
2009-05-05 15:01:47 +00:00
|
|
|
%files -n hyphen-sr
|
|
|
|
%doc README_hyph.txt
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/hyphen/*
|
|
|
|
|
2008-07-23 17:37:44 +00:00
|
|
|
%changelog
|
2009-05-05 15:01:47 +00:00
|
|
|
* Tue May 05 2009 Caolan McNamara <caolanm@redhat.com> - 0.20090213-1
|
|
|
|
- latest version
|
|
|
|
|
2009-02-25 05:31:39 +00:00
|
|
|
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20080711-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-07-23 17:37:44 +00:00
|
|
|
* Fri Jul 11 2008 Caolan McNamara <caolanm@redhat.com> - 0.20080711-1
|
|
|
|
- initial version
|