rpms/openoffice.org-dict-cs_CZ/devel openoffice.org-dict-cs_CZ.spec, 1.7, 1.8

Caolan McNamara (caolanm) fedora-extras-commits at redhat.com
Mon Nov 26 20:34:11 UTC 2007


Author: caolanm

Update of /cvs/pkgs/rpms/openoffice.org-dict-cs_CZ/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv9788

Modified Files:
	openoffice.org-dict-cs_CZ.spec 
Log Message:
 Resolves: rhbz#398361 move hyphenation rules into hyphen dir where OOo will now autodetect them


Index: openoffice.org-dict-cs_CZ.spec
===================================================================
RCS file: /cvs/pkgs/rpms/openoffice.org-dict-cs_CZ/devel/openoffice.org-dict-cs_CZ.spec,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- openoffice.org-dict-cs_CZ.spec	23 Aug 2007 09:47:41 -0000	1.7
+++ openoffice.org-dict-cs_CZ.spec	26 Nov 2007 20:33:38 -0000	1.8
@@ -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 @@
 %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 at 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 at redhat.com> - 20060303-5
 - add hunspell-cs subpackage (#232416)
 - openoffice datadir moved again




More information about the fedora-extras-commits mailing list