openoffice-lv/openoffice-lv.spec

63 lines
1.4 KiB
RPMSpec
Raw Normal View History

2008-09-28 21:14:17 +00:00
Name: openoffice-lv
Summary: Latvian linguistic dictionaries
Version: 0.7.3
Release: 1%{?dist}
Source: http://downloads.sourceforge.net/%{name}/lv_LV-%{version}.zip
Group: Applications/Text
URL: http://sourceforge.net/projects/openoffice-lv/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: GPLv2+
BuildArch: noarch
%description
Latvian linguistic dictionaries.
%package -n hyphen-lv
Summary: Latvian hyphenation rules
Group: Applications/Text
Requires: hyphen
%description -n hyphen-lv
Latvian hyphenation rules.
%package -n hunspell-lv
Summary: Latvian hunspell dictionaries
Group: Applications/Text
Requires: hunspell
%description -n hunspell-lv
Latvian hunspell dictionaries.
%prep
%setup -q -c
%build
for i in README_lv_LV.txt README_hyph_lv_LV.txt changelog.txt; do
tr -d '\r' < $i > $i.new
iconv -f ISO-8859-4 -t UTF-8 $i.new > $i
done
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
cp -p lv_LV.dic lv_LV.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p hyph_lv_LV.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
%clean
rm -rf $RPM_BUILD_ROOT
%files -n hyphen-lv
%defattr(-,root,root,-)
%doc README_hyph_lv_LV.txt
%{_datadir}/hyphen/*
%files -n hunspell-lv
%defattr(-,root,root,-)
%doc README_lv_LV.txt changelog.txt
%{_datadir}/myspell/*
%changelog
* Sat Sep 20 2008 Caolan McNamara <caolanm@redhat.com> - 0.7.3-1
- initial version