Switch to libreoffice dictionaries from libreitalia.org

This commit is contained in:
Mattia Verga 2023-06-04 11:56:34 +02:00
parent 5b76f24d31
commit aedeebc90d
4 changed files with 47 additions and 16 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
hyph_it_IT.zip hyph_it_IT.zip
/italiano-5.1.1.tar.xz

19
generate-tarball.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
VERSION=$1
# Clone LO dictionaries sources
git clone https://git.libreoffice.org/dictionaries
# Extract italian language only
mkdir italiano-$VERSION
cp -p dictionaries/it_IT/CHANGELOG.txt italiano-$VERSION/
cp -p dictionaries/it_IT/README_hyph_it_IT.txt italiano-$VERSION/
cp -p dictionaries/it_IT/hyph_it_IT.dic italiano-$VERSION/
# Make compressed tarball
tar -cJvf italiano-$VERSION.tar.xz italiano-$VERSION
# Remove temporary directory
rm -rf italiano-$VERSION
rm -rf dictionaries

View File

@ -1,24 +1,32 @@
Name: hyphen-it Name: hyphen-it
Summary: Italian hyphenation rules Summary: Italian hyphenation rules
%global upstreamid 20071127 Version: 5.1.1
Version: 0.%{upstreamid} Release: %autorelease
Release: %autorelease # The license text is embedded within the README files
Source: http://download.services.openoffice.org/contrib/dictionaries/hyph_it_IT.zip License: LGPL-2.1-or-later
URL: http://wiki.services.openoffice.org/wiki/Dictionaries URL: https://libreitalia.org
License: LGPL-2.1-or-later # A ready source tarball is not provided
BuildArch: noarch # We use the generate-tarball.sh script to clone libreoffice dictionaries
Requires: hyphen # repository and set up the source tarball. You'll need git installed.
Supplements: (hyphen and langpacks-it) # ./generate-tarball %%version
Provides: hyphen-la = 0.%{upstreamid}-3%{?dist} Source: italiano-%{version}.tar.xz
BuildArch: noarch
Requires: hyphen
Supplements: (hyphen and langpacks-it)
Provides: hyphen-la = %{version}
%description %description
Italian hyphenation rules. Italian hyphenation rules.
%prep %prep
%autosetup -c -n hyphen-it %autosetup -n italiano-%{version}
chmod -x * chmod -x *
%build %build
# Nothing to do
%install %install
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
@ -33,8 +41,11 @@ done
%files %files
%doc README_hyph_it_IT.txt %doc CHANGELOG.txt README_hyph_it_IT.txt
%{_datadir}/hyphen/* %{_datadir}/hyphen/hyph_it_IT.dic
%{_datadir}/hyphen/hyph_it_CH.dic
%{_datadir}/hyphen/hyph_la_VA.dic
%changelog %changelog
%autochangelog %autochangelog

View File

@ -1 +1 @@
ee57402fa3930e0641d627ec7f4f1619 hyph_it_IT.zip SHA512 (italiano-5.1.1.tar.xz) = d4d2d7adf12f782a4685c9bf2ad7d3b43f5f81ceef84c510d3a492a76aeb8a87a74e00124f5e710a6972f29cc4969ac7d80cf6f88c9d93ccbd45c50d6cbf0a76