From 52a61fd3c4e2e1d7ea969e2accb4b17dcf5fe856 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Mon, 26 Nov 2007 20:33:38 +0000 Subject: [PATCH] Resolves: rhbz#398361 move hyphenation rules into hyphen dir where OOo will now autodetect them --- openoffice.org-dict-cs_CZ.spec | 35 +++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/openoffice.org-dict-cs_CZ.spec b/openoffice.org-dict-cs_CZ.spec index f17c2ef..7c20535 100644 --- a/openoffice.org-dict-cs_CZ.spec +++ b/openoffice.org-dict-cs_CZ.spec @@ -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 - 20060303-6 +- Resolves: rhbz#398361 move hyphenation rules into hyphen dir where OOo will now autodetect them + * Tue Mar 27 2007 Tomas Mraz - 20060303-5 - add hunspell-cs subpackage (#232416) - openoffice datadir moved again