public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hunspell-eo] rawhide: Fix the conversion again for eo.dic file
@ 2026-07-17 15:43 Parag Nemade
  0 siblings, 0 replies; only message in thread
From: Parag Nemade @ 2026-07-17 15:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/hunspell-eo
Branch : rawhide
Commit : 8d3452e2a15b01ad1749ab20db94c50ed0f6d529
Author : Parag Nemade <panemade AT redhat DOT com>
Date   : 2026-07-17T18:54:29+05:30
Stats  : +15/-4 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/hunspell-eo/c/8d3452e2a15b01ad1749ab20db94c50ed0f6d529?branch=rawhide

Log:
Fix the conversion again for eo.dic file

---
diff --git a/hunspell-eo.spec b/hunspell-eo.spec
index 73160f4..057e503 100644
--- a/hunspell-eo.spec
+++ b/hunspell-eo.spec
@@ -9,7 +9,7 @@ Summary: Esperanto hunspell dictionaries
 %global upstreamid 20100218
 Version: 0.%{upstreamid}
 Epoch: 1
-Release: 21%{?dist}
+Release: 22%{?dist}
 Source: http://www.esperantilo.org/literumilo-fontoj.tar.gz
 URL: http://www.esperantilo.org
 License: GPL-2.0-or-later
@@ -24,9 +24,17 @@ Esperanto hunspell dictionaries.
 %prep
 %autosetup -n literumilo-fontoj
 
-iconv --from=ISO-8859-1 --to=UTF-8 eo_morf.dic > eo_morf.dic.new && \
-touch -r eo_morf.dic eo_morf.dic.new && \
-mv eo_morf.dic.new eo_morf.dic
+for i in eo_morf.dic; 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
+
 
 %build
 chmod -x *
@@ -47,6 +55,9 @@ cp -p eo_morf.aff $RPM_BUILD_ROOT/%{_datadir}/%{dict_dirname}/eo.aff
 %{_datadir}/%{dict_dirname}/*
 
 %changelog
+* Fri Jul 17 2026 Parag Nemade <panemade AT redhat DOT com> - 1:0.20100218-22
+- Fix the conversion again for eo.dic file
+
 * Thu Jul 16 2026 Parag Nemade <panemade AT redhat DOT com> - 1:0.20100218-21
 - Convert eo.dic to UTF-8 enconding format
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-17 15:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-17 15:43 [rpms/hunspell-eo] rawhide: Fix the conversion again for eo.dic file Parag Nemade

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox