hyphen-sv/hyphen-sv.spec

51 lines
1.2 KiB
RPMSpec
Raw Normal View History

2008-08-23 19:00:42 +00:00
Name: hyphen-sv
Summary: Swedish hyphenation rules
2009-02-17 16:21:37 +00:00
Version: 1.00.1
2008-08-23 19:00:42 +00:00
Release: 1%{?dist}
2009-02-17 16:21:37 +00:00
Source: http://extensions.services.openoffice.org/files/1966/4/hyph_sv_SE.oxt
2008-08-23 19:00:42 +00:00
Group: Applications/Text
2009-02-17 16:21:37 +00:00
URL: http://extensions.services.openoffice.org/node/1968
2008-08-23 19:00:42 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
License: LGPLv2+
BuildArch: noarch
Requires: hyphen
%description
Swedish hyphenation rules.
%prep
%setup -q -c -n hyphen-sv
%build
2009-02-17 16:21:37 +00:00
chmod -x *
iconv -f ISO-8859-1 -t UTF-8 README_sv_SE.txt > README_sv_SE.txt.new
touch -r README_sv_SE.txt README_sv_SE.txt.new
mv -f README_sv_SE.txt.new README_sv_SE.txt
2008-08-23 19:00:42 +00:00
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
cp -p hyph_sv_SE.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen
sv_SE_aliases="sv_FI"
for lang in $sv_SE_aliases; do
ln -s hyph_sv_SE.dic hyph_$lang.dic
done
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
2009-02-17 16:21:37 +00:00
%doc README_sv_SE.txt
2008-08-23 19:00:42 +00:00
%{_datadir}/hyphen/*
%changelog
2009-02-17 16:21:37 +00:00
* Tue Feb 17 2009 Caolan McNamara <caolanm@redhat.com> - 1.00.1-1
- latest version
2008-08-23 19:00:42 +00:00
* Fri Nov 23 2007 Caolan McNamara <caolanm@redhat.com> - 0.20030814-1
- initial version