diff --git a/.cvsignore b/.cvsignore index e69de29..5d939fc 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +hyph_pl_PL.zip diff --git a/hyphen-pl.spec b/hyphen-pl.spec new file mode 100644 index 0000000..eccfd29 --- /dev/null +++ b/hyphen-pl.spec @@ -0,0 +1,40 @@ +Name: hyphen-pl +Summary: Polish hyphenation rules +%define upstreamid 20060726 +Version: 0.%{upstreamid} +Release: 1%{?dist} +Source: http://pl.openoffice.org/pliki/hyph_pl_PL.zip +Group: Applications/Text +URL: http://wiki.services.openoffice.org/wiki/Dictionaries +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +License: LGPLv2+ +BuildArch: noarch +Requires: hyphen + +%description +Polish hyphenation rules. + +%prep +%setup -q -c -n hyphen-pl + +%build +unzip hyph_pl_PL.zip +tr -d '\r' < README_hyph_pl_PL.txt > README_hyph_pl_PL.txt.new +iconv -f ISO-8859-2 -t UTF-8 README_hyph_pl_PL.txt.new > README_hyph_pl_PL.txt + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen +cp -p hyph_pl_PL.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc README_hyph_pl_PL.txt +%{_datadir}/hyphen/* + +%changelog +* Fri Nov 23 2007 Caolan McNamara - 0.20060726-1 +- initial version diff --git a/sources b/sources index e69de29..1eda935 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e015c046f60437d39223b1253b78a4e2 hyph_pl_PL.zip