Use sources from pagure.io project
This commit is contained in:
parent
aedeebc90d
commit
4bdf9b9ca1
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
hyph_it_IT.zip
|
||||
/italiano-5.1.1.tar.xz
|
||||
/dizionario_italiano-5.1.1.tar.gz
|
||||
|
@ -1,19 +0,0 @@
|
||||
#!/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
|
@ -3,13 +3,10 @@ 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
|
||||
# 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
|
||||
@ -21,13 +18,13 @@ Italian hyphenation rules.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n italiano-%{version}
|
||||
chmod -x *
|
||||
%autosetup -n dizionario_italiano-%{version}
|
||||
|
||||
|
||||
%build
|
||||
# Nothing to do
|
||||
|
||||
|
||||
%install
|
||||
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||||
cp -p hyph_it_IT.dic $RPM_BUILD_ROOT/%{_datadir}/hyphen
|
||||
@ -41,7 +38,8 @@ done
|
||||
|
||||
|
||||
%files
|
||||
%doc CHANGELOG.txt README_hyph_it_IT.txt
|
||||
%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
|
||||
|
2
sources
2
sources
@ -1 +1 @@
|
||||
SHA512 (italiano-5.1.1.tar.xz) = d4d2d7adf12f782a4685c9bf2ad7d3b43f5f81ceef84c510d3a492a76aeb8a87a74e00124f5e710a6972f29cc4969ac7d80cf6f88c9d93ccbd45c50d6cbf0a76
|
||||
SHA512 (dizionario_italiano-5.1.1.tar.gz) = eedc5771162ba3b7bd451a96883df471a691a07ec74de432c0bb31cb77c4f774df914946d504cfee1e51a615336cff3589139a6b946632729ce5cb3d25469fe2
|
||||
|
Loading…
Reference in New Issue
Block a user