From bcfece1051b14d6ef2359ed2ba7f4a533117ab6b Mon Sep 17 00:00:00 2001 From: Mattia Verga Date: Jun 04 2023 15:08:29 +0000 Subject: Use sources from pagure.io project --- diff --git a/.gitignore b/.gitignore index e09fb60..da0383b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ thesaurus2_it_02_09_l_2008_11_29.zip +/dizionario_italiano-5.1.1.tar.gz diff --git a/mythes-it.spec b/mythes-it.spec index cf6ee74..b43ad11 100644 --- a/mythes-it.spec +++ b/mythes-it.spec @@ -1,37 +1,33 @@ -Name: mythes-it -Summary: Italian thesaurus -Version: 2.0.9l -Release: %autorelease -Source: http://downloads.sourceforge.net/sourceforge/linguistico/thesaurus2_it_02_09_l_2008_11_29.zip -URL: http://linguistico.sourceforge.net/pages/thesaurus_italiano.html -License: AGPL-3.0-or-later -BuildArch: noarch -Requires: mythes -Supplements: (mythes and langpacks-it) +Name: mythes-it +Summary: Italian thesaurus +Version: 5.1.1 +Release: %autorelease +# The license text is embedded within the README files +# Here we specify the thesaurus license only as other files are not packaged +License: GPL-3.0-only +URL: https://pagure.io/dizionario_italiano +Source: %{url}/archive/%{version}/dizionario_italiano-%{version}.tar.gz + +BuildArch: noarch +Requires: mythes +Supplements: (mythes and langpacks-it) %description Italian thesaurus. + %prep -%autosetup -c +%autosetup -n dizionario_italiano-%{version} + %build -for i in th_it_IT_README th_it_IT_ChangeLog th_it_IT_AUTHORS; do - if ! iconv -f utf-8 -t utf-8 -o /dev/null $i > /dev/null 2>&1; then - iconv -f ISO-8859-1 -t UTF-8 $i > $i.new - touch -r $i $i.new - mv -f $i.new $i - fi - tr -d '\r' < $i > $i.new - touch -r $i $i.new - mv -f $i.new $i -done +# Nothing to do %install mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes -cp -p th_it_IT.dat $RPM_BUILD_ROOT/%{_datadir}/mythes/th_it_IT_v2.dat -cp -p th_it_IT.idx $RPM_BUILD_ROOT/%{_datadir}/mythes/th_it_IT_v2.idx +cp -p th_it_IT_v2.dat $RPM_BUILD_ROOT/%{_datadir}/mythes/th_it_IT_v2.dat +cp -p th_it_IT_v2.idx $RPM_BUILD_ROOT/%{_datadir}/mythes/th_it_IT_v2.idx pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/ it_IT_aliases="it_CH" @@ -42,9 +38,10 @@ done %files -%doc th_it_IT_README th_it_IT_ChangeLog th_it_IT_INSTALL th_it_IT_copyright_licenza.txt th_it_IT_lettera_in_inglese.txt th_it_IT_AUTHORS -%license th_it_IT_COPYING -%{_datadir}/mythes/* +%license LICENSES/gpl-3.0.txt +%doc CHANGELOG.txt README.md README_th_it_IT.txt +%{_datadir}/mythes/th_it_IT_v2.* +%{_datadir}/mythes/th_it_CH_v2.* %changelog %autochangelog diff --git a/sources b/sources index 9ea2e7b..26ef02c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -e3df0f7a03df3b4bf0525f6b6548e129 thesaurus2_it_02_09_l_2008_11_29.zip +SHA512 (dizionario_italiano-5.1.1.tar.gz) = eedc5771162ba3b7bd451a96883df471a691a07ec74de432c0bb31cb77c4f774df914946d504cfee1e51a615336cff3589139a6b946632729ce5cb3d25469fe2