Name: hyphen-sv Summary: Swedish hyphenation rules %define upstreamid 20030814 Version: 0.%{upstreamid} Release: 1%{?dist} Source: http://ftp.services.openoffice.org/pub/OpenOffice.org/contrib/dictionaries/hyph_sv_SE.zip Group: Applications/Text URL: http://sv.speling.org/ 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 chmod -x * %build iconv -f ISO-8859-1 -t UTF-8 README_hyph_sv_SE.txt > README_hyph_sv_SE.txt.new mv README_hyph_sv_SE.txt.new README_hyph_sv_SE.txt %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,-) %doc README_hyph_sv_SE.txt %{_datadir}/hyphen/* %changelog * Fri Nov 23 2007 Caolan McNamara - 0.20030814-1 - initial version