Switch to libreoffice dictionaries from libreitalia.org
This commit is contained in:
parent
5b76f24d31
commit
aedeebc90d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
hyph_it_IT.zip
|
||||
/italiano-5.1.1.tar.xz
|
||||
|
19
generate-tarball.sh
Executable file
19
generate-tarball.sh
Executable 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
|
@ -1,24 +1,32 @@
|
||||
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}
|
||||
Name: hyphen-it
|
||||
Summary: Italian hyphenation rules
|
||||
Version: 5.1.1
|
||||
Release: %autorelease
|
||||
# The license text is embedded within the README files
|
||||
License: LGPL-2.1-or-later
|
||||
URL: https://libreitalia.org
|
||||
# A ready source tarball is not provided
|
||||
# We use the generate-tarball.sh script to clone libreoffice dictionaries
|
||||
# repository and set up the source tarball. You'll need git installed.
|
||||
# ./generate-tarball %%version
|
||||
Source: italiano-%{version}.tar.xz
|
||||
|
||||
BuildArch: noarch
|
||||
Requires: hyphen
|
||||
Supplements: (hyphen and langpacks-it)
|
||||
Provides: hyphen-la = %{version}
|
||||
|
||||
%description
|
||||
Italian hyphenation rules.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -c -n hyphen-it
|
||||
%autosetup -n italiano-%{version}
|
||||
chmod -x *
|
||||
|
||||
|
||||
%build
|
||||
# Nothing to do
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||||
@ -33,8 +41,11 @@ done
|
||||
|
||||
|
||||
%files
|
||||
%doc README_hyph_it_IT.txt
|
||||
%{_datadir}/hyphen/*
|
||||
%doc CHANGELOG.txt README_hyph_it_IT.txt
|
||||
%{_datadir}/hyphen/hyph_it_IT.dic
|
||||
%{_datadir}/hyphen/hyph_it_CH.dic
|
||||
%{_datadir}/hyphen/hyph_la_VA.dic
|
||||
|
||||
|
||||
%changelog
|
||||
%autochangelog
|
||||
|
Loading…
Reference in New Issue
Block a user