Group :: Text tools
RPM: hyphen-pl
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Group: Text tools
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: hyphen-pl
Summary: Polish hyphenation rules
%global upstreamid 20060726
Version: 0.%{upstreamid}
Release: alt1_28
Source: http://download.services.openoffice.org/contrib/dictionaries/hyph_pl_PL.zip
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
License: LGPL-2.1-or-later
BuildArch: noarch
Requires: libhyphen
Source44: import.info
%description
Polish hyphenation rules.
%prep
%setup -q -c -n hyphen-pl
%build
for i in README_hyph_pl_PL.txt; do
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
iconv -f ISO-8859-2 -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
done
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
cp -p hyph_pl_PL.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
%files
%doc README_hyph_pl_PL.txt
%{_datadir}/hyphen/*
%changelog
…
Full changelog you can see here
# BEGIN SourceDeps(oneline):
BuildRequires: unzip
# END SourceDeps(oneline)
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: hyphen-pl
Summary: Polish hyphenation rules
%global upstreamid 20060726
Version: 0.%{upstreamid}
Release: alt1_28
Source: http://download.services.openoffice.org/contrib/dictionaries/hyph_pl_PL.zip
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
License: LGPL-2.1-or-later
BuildArch: noarch
Requires: libhyphen
Source44: import.info
%description
Polish hyphenation rules.
%prep
%setup -q -c -n hyphen-pl
%build
for i in README_hyph_pl_PL.txt; do
if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then
iconv -f ISO-8859-2 -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
done
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
cp -p hyph_pl_PL.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
%files
%doc README_hyph_pl_PL.txt
%{_datadir}/hyphen/*
%changelog
…
Full changelog you can see here