hyphen-it/hyphen-it.spec
2023-06-04 11:54:49 +02:00

41 lines
966 B
RPMSpec

Name: hyphen-it
Summary: Italian hyphenation rules
%global upstreamid 20071127
Version: 0.%{upstreamid}
Release: %autorelease
Source: http://download.services.openoffice.org/contrib/dictionaries/hyph_it_IT.zip
URL: http://wiki.services.openoffice.org/wiki/Dictionaries
License: LGPL-2.1-or-later
BuildArch: noarch
Requires: hyphen
Supplements: (hyphen and langpacks-it)
Provides: hyphen-la = 0.%{upstreamid}-3%{?dist}
%description
Italian hyphenation rules.
%prep
%autosetup -c -n hyphen-it
chmod -x *
%build
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
cp -p hyph_it_IT.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
pushd $RPM_BUILD_ROOT/%{_datadir}/hyphen/
#http://extensions.services.openoffice.org/project/dict-la uses the it_IT for Latin
#so we'll do the same
it_IT_aliases="it_CH la_VA"
for lang in $it_IT_aliases; do
ln -s hyph_it_IT.dic "hyph_"$lang".dic"
done
%files
%doc README_hyph_it_IT.txt
%{_datadir}/hyphen/*
%changelog
%autochangelog