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
|
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
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user