- add hunspell-cs subpackage (#232416)
- openoffice datadir moved again
This commit is contained in:
parent
546f2f59cd
commit
e3eb5f0590
@ -1,6 +1,6 @@
|
||||
Name: openoffice.org-dict-cs_CZ
|
||||
Version: 20060303
|
||||
Release: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Czech spellchecker and hyphenation dictionaries for OpenOffice.org
|
||||
License: GPL
|
||||
Group: Applications/Productivity
|
||||
@ -9,12 +9,21 @@ Source0: openoffice.org-dict-cs_CZ.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Requires: openoffice.org-core
|
||||
|
||||
%define instdir %{_libdir}/openoffice.org2.0
|
||||
%define instdir %{_libdir}/openoffice.org
|
||||
%define hunspelldir %{_datadir}/myspell
|
||||
%define debug_package %{nil}
|
||||
|
||||
%description
|
||||
This package contains the czech spellchecker and hyphenation dictionaries for
|
||||
the Openoffice.org application suite.
|
||||
This package contains the czech hyphenation dictionaries for the Openoffice.org
|
||||
application suite.
|
||||
|
||||
%package -n hunspell-cs
|
||||
Group: Applications/Text
|
||||
Summary: Czech hunspell dictionary
|
||||
Requires: hunspell
|
||||
|
||||
%description -n hunspell-cs
|
||||
This package contains the czech dictionary for the hunspell spellchecker.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
@ -24,25 +33,33 @@ the Openoffice.org application suite.
|
||||
%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 *.aff *.dic $RPM_BUILD_ROOT%{instdir}/share/dict/ooo
|
||||
install -m 644 hyph*.dic $RPM_BUILD_ROOT%{instdir}/share/dict/ooo
|
||||
|
||||
%clean
|
||||
%{__rm} -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README*.txt
|
||||
%{instdir}/share/dict/ooo/*
|
||||
%doc README_cs*.txt
|
||||
%{instdir}/share/dict/ooo/hyph*
|
||||
|
||||
%files -n hunspell-cs
|
||||
%defattr(-,root,root)
|
||||
%doc README_hyph*.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
|
||||
|
||||
grep -q '^DICT cs CZ cs_CZ' %{instdir}/share/dict/ooo/dictionary.lst || \
|
||||
echo 'DICT cs CZ cs_CZ' >> %{instdir}/share/dict/ooo/dictionary.lst
|
||||
|
||||
%changelog
|
||||
* Tue Mar 27 2007 Tomas Mraz <tmraz@redhat.com> - 20060303-5
|
||||
- add hunspell-cs subpackage (#232416)
|
||||
- openoffice datadir moved again
|
||||
|
||||
* Mon Jan 29 2007 Tomas Mraz <tmraz@redhat.com> - 20060303-4
|
||||
- disable useless debuginfo (#225094)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user