diff --git a/.cvsignore b/.cvsignore index e69de29..c74a6bf 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +hyph_sv_SE.zip diff --git a/hyphen-sv.spec b/hyphen-sv.spec new file mode 100644 index 0000000..a7e3586 --- /dev/null +++ b/hyphen-sv.spec @@ -0,0 +1,47 @@ +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 diff --git a/import.log b/import.log new file mode 100644 index 0000000..003b327 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +hyphen-sv-0_20030814-1_fc9:HEAD:hyphen-sv-0.20030814-1.fc9.src.rpm:1219518032 diff --git a/sources b/sources index e69de29..7bfc316 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a1c31b48cbf570bb05f22e98dacb9e17 hyph_sv_SE.zip