openoffice-lv/openoffice-lv.spec

109 lines
2.7 KiB
RPMSpec
Raw Normal View History

2008-09-28 21:14:17 +00:00
Name: openoffice-lv
Summary: Latvian linguistic dictionaries
2010-04-19 10:27:06 +00:00
Version: 0.9.0
Release: 1%{?dist}
Source: http://extensions.services.openoffice.org/e-files/1357/13/lv_LV-%{version}.oxt
2008-09-28 21:14:17 +00:00
Group: Applications/Text
2009-09-19 08:51:35 +00:00
URL: http://dict.dv.lv/
2008-09-28 21:14:17 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2010-04-19 10:27:06 +00:00
License: LGPLv2+
2008-09-28 21:14:17 +00:00
BuildArch: noarch
%description
Latvian linguistic dictionaries.
2009-09-19 08:51:35 +00:00
%package -n hunspell-lv
Summary: Latvian hunspell dictionaries
Group: Applications/Text
Requires: hunspell
%description -n hunspell-lv
Latvian hunspell dictionaries.
2008-09-28 21:14:17 +00:00
%package -n hyphen-lv
Summary: Latvian hyphenation rules
Group: Applications/Text
Requires: hyphen
%description -n hyphen-lv
Latvian hyphenation rules.
2009-09-19 08:51:35 +00:00
%package -n mythes-lv
Summary: Latvian thesaurus
2008-09-28 21:14:17 +00:00
Group: Applications/Text
2010-04-04 11:22:05 +00:00
Requires: mythes
2008-09-28 21:14:17 +00:00
2009-09-19 08:51:35 +00:00
%description -n mythes-lv
Latvian thesaurus.
2008-09-28 21:14:17 +00:00
%prep
%setup -q -c
%build
2009-09-19 08:51:35 +00:00
for i in README_lv_LV.txt README_hyph_lv_LV.txt; do
2009-07-11 10:36:53 +00:00
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
iconv -f ISO-8859-4 -t UTF-8 $i > $i.new
touch -r $i $i.new
mv -f $i.new $i
fi
tr -d '\r' < $i > $i.new
touch -r $i $i.new
mv -f $i.new $i
2008-09-28 21:14:17 +00:00
done
2010-04-19 10:27:06 +00:00
chmod -x *.dic
2009-07-11 10:36:53 +00:00
2008-09-28 21:14:17 +00:00
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/myspell
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
2009-09-19 08:51:35 +00:00
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
2008-09-28 21:14:17 +00:00
cp -p lv_LV.dic lv_LV.aff $RPM_BUILD_ROOT/%{_datadir}/myspell
cp -p hyph_lv_LV.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
2009-09-19 08:51:35 +00:00
cp -p th_lv_LV_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes
2008-09-28 21:14:17 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
2009-09-19 08:51:35 +00:00
%files -n hunspell-lv
%defattr(-,root,root,-)
%doc README_lv_LV.txt
%{_datadir}/myspell/*
2008-09-28 21:14:17 +00:00
%files -n hyphen-lv
%defattr(-,root,root,-)
%doc README_hyph_lv_LV.txt
%{_datadir}/hyphen/*
2009-09-19 08:51:35 +00:00
%files -n mythes-lv
2008-09-28 21:14:17 +00:00
%defattr(-,root,root,-)
2009-09-19 08:51:35 +00:00
%doc package-description.txt
%{_datadir}/mythes/*
2008-09-28 21:14:17 +00:00
%changelog
2010-04-19 10:27:06 +00:00
* Mon Apr 19 2010 Caolan McNamara <caolanm@redhat.com> - 0.9.0-1
- latest version
2010-04-04 11:22:05 +00:00
* Sun Apr 04 2010 Caolan McNamara <caolanm@redhat.com> - 0.8.2-2
- mythes now owns /usr/share/mythes
2009-09-19 08:51:35 +00:00
* Sat Sep 19 2009 Caolan McNamara <caolanm@redhat.com> - 0.8.2-1
- latest version
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8-0.3.b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-07-11 10:36:53 +00:00
* Sat Jul 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.8-0.2.b1
- tidy spec
2009-05-11 08:50:01 +00:00
* Mon May 11 2009 Caolan McNamara <caolanm@redhat.com> - 0.8-0.1.b1
- latest version
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2008-10-23 16:14:31 +00:00
* Thu Oct 23 2008 Caolan McNamara <caolanm@redhat.com> - 0.7.4-1
- latest version
2008-09-28 21:14:17 +00:00
* Sat Sep 20 2008 Caolan McNamara <caolanm@redhat.com> - 0.7.3-1
- initial version