hyphen-it/hyphen-it.spec

50 lines
1.2 KiB
RPMSpec
Raw Normal View History

Name: hyphen-it
Summary: Italian hyphenation rules
Version: 5.1.1
Release: %autorelease
# The license text is embedded within the README files
2023-06-04 15:06:13 +00:00
# Here we specify the thesaurus license only as other files are not packaged
License: LGPL-2.1-only
URL: https://pagure.io/dizionario_italiano
Source: %{url}/archive/%{version}/dizionario_italiano-%{version}.tar.gz
BuildArch: noarch
Requires: hyphen
Supplements: (hyphen and langpacks-it)
Provides: hyphen-la = %{version}
2007-11-26 20:21:30 +00:00
%description
Italian hyphenation rules.
2007-11-26 20:21:30 +00:00
%prep
2023-06-04 15:06:13 +00:00
%autosetup -n dizionario_italiano-%{version}
2007-11-26 20:21:30 +00:00
2007-11-26 20:21:30 +00:00
%build
# Nothing to do
2007-11-26 20:21:30 +00:00
2023-06-04 15:06:13 +00:00
2007-11-26 20:21:30 +00:00
%install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
cp -p hyph_it_IT.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
2007-11-29 08:44:09 +00:00
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"
2007-11-29 08:44:09 +00:00
for lang in $it_IT_aliases; do
ln -s hyph_it_IT.dic "hyph_"$lang".dic"
done
2007-11-26 20:21:30 +00:00
%files
2023-06-04 15:06:13 +00:00
%license LICENSES/lgpl-2.1.txt
%doc CHANGELOG.txt README.md README_hyph_it_IT.txt
%{_datadir}/hyphen/hyph_it_IT.dic
%{_datadir}/hyphen/hyph_it_CH.dic
%{_datadir}/hyphen/hyph_la_VA.dic
2007-11-26 20:21:30 +00:00
%changelog
%autochangelog