Resolves: rhbz#398361 move hyphenation rules into hyphen dir where OOo will
now autodetect them
This commit is contained in:
parent
0f228472af
commit
52a61fd3c4
@ -1,16 +1,16 @@
|
||||
Name: openoffice.org-dict-cs_CZ
|
||||
Version: 20060303
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Czech spellchecker and hyphenation dictionaries for OpenOffice.org
|
||||
License: GPL+
|
||||
Group: Applications/Productivity
|
||||
URL: ftp://ftp.linux.cz/pub/localization/OpenOffice.org/devel/Czech/spell_checking/
|
||||
Source0: openoffice.org-dict-cs_CZ.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: openoffice.org-core
|
||||
BuildArch: noarch
|
||||
|
||||
%define instdir %{_libdir}/openoffice.org
|
||||
%define hunspelldir %{_datadir}/myspell
|
||||
%define hyphendir %{_datadir}/hyphen
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
@ -25,37 +25,46 @@ Requires: hunspell
|
||||
%description -n hunspell-cs
|
||||
This package contains the czech dictionary for the hunspell spellchecker.
|
||||
|
||||
%package -n hyphen-cs
|
||||
Group: Applications/Text
|
||||
Summary: Czech hyphenation rules
|
||||
Requires: hyphen
|
||||
|
||||
%description -n hyphen-cs
|
||||
Czech hyphenation rules.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
|
||||
%build
|
||||
iconv -f ISO-8859-2 -t UTF-8 README_hyph_cs_CZ.txt > README_hyph_cs_CZ.txt.new
|
||||
mv -f README_hyph_cs_CZ.txt.new README_hyph_cs_CZ.txt
|
||||
|
||||
%install
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT%{hunspelldir}
|
||||
install -m 644 cs* $RPM_BUILD_ROOT%{hunspelldir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{instdir}/share/dict/ooo
|
||||
install -m 644 hyph*.dic $RPM_BUILD_ROOT%{instdir}/share/dict/ooo
|
||||
mkdir -p $RPM_BUILD_ROOT%{hyphendir}
|
||||
install -m 644 hyph*.dic $RPM_BUILD_ROOT%{hyphendir}
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%files -n hyphen-cs
|
||||
%defattr(-,root,root)
|
||||
%doc README_cs*.txt
|
||||
%{instdir}/share/dict/ooo/hyph*
|
||||
%doc README_hyph_cs_CZ.txt
|
||||
%{hyphendir}/hyph_cs*
|
||||
|
||||
%files -n hunspell-cs
|
||||
%defattr(-,root,root)
|
||||
%doc README_hyph*.txt
|
||||
%doc README_cs_CZ.txt
|
||||
%{hunspelldir}/cs*
|
||||
|
||||
%triggerin -- openoffice.org-core
|
||||
grep -q '^HYPH cs CZ hyph_cs_CZ' %{instdir}/share/dict/ooo/dictionary.lst || \
|
||||
echo 'HYPH cs CZ hyph_cs_CZ' >> %{instdir}/share/dict/ooo/dictionary.lst
|
||||
|
||||
%changelog
|
||||
* Mon Nov 26 2007 Caolan McNamara <caolanm@redhat.com> - 20060303-6
|
||||
- Resolves: rhbz#398361 move hyphenation rules into hyphen dir where OOo will now autodetect them
|
||||
|
||||
* Tue Mar 27 2007 Tomas Mraz <tmraz@redhat.com> - 20060303-5
|
||||
- add hunspell-cs subpackage (#232416)
|
||||
- openoffice datadir moved again
|
||||
|
||||
Loading…
Reference in New Issue
Block a user