public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Parag Nemade <panemade AT redhat DOT com>
To: git-commits@fedoraproject.org
Subject: [rpms/hunspell-eo] rawhide: Fix the conversion again for eo.dic file
Date: Fri, 17 Jul 2026 15:43:18 GMT	[thread overview]
Message-ID: <178430299827.1.4256198231832303431.rpms-hunspell-eo-8d3452e2a15b@fedoraproject.org> (raw)

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
 

                 reply	other threads:[~2026-07-17 15:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178430299827.1.4256198231832303431.rpms-hunspell-eo-8d3452e2a15b@fedoraproject.org \
    --to=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox