commit d4310e9058ffa2280d359ffd55915602ade5a6e8
Author: Mathieu Bridon <boche...@fedoraproject.org>
Date:   Thu Jan 17 16:06:39 2013 +0800

    Make sure all files are UTF-8 encoded

 perl-Net-IDN-Encode.spec |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/perl-Net-IDN-Encode.spec b/perl-Net-IDN-Encode.spec
index 80e688c..094335b 100644
--- a/perl-Net-IDN-Encode.spec
+++ b/perl-Net-IDN-Encode.spec
@@ -35,6 +35,12 @@ Internationalized Domain Names (IDNs).
 chmod -x lib/Net/IDN/Encode.pm \
          lib/Net/IDN/Standards.pod
 
+# Convert files to UTF-8
+for FILE in LICENSE README; do
+  iconv -f ISO_8859-1 -t UTF8 $FILE > $FILE.utf8
+  mv $FILE.utf8 $FILE
+done
+
 
 %build
 %{__perl} Build.PL installdirs=vendor optimize="%{optflags}"
@@ -63,6 +69,7 @@ find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} 
\;
 - Add missing build requirements.
 - Add a requirement left out by rpmbuild.
 - Remove the incorrect executable bits.
+- Make sure all files are UTF-8 encoded.
 
 * Wed Jan 02 2013 Mathieu Bridon <boche...@fedoraproject.org> - 2.003-1
 - Initial package for Fedora, with help from cpanspec.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/perl-devel

Reply via email to