ppisar pushed to perl-Language-Prolog-Yaswi (master). "Normalize encoding by patch"

notifications at fedoraproject.org notifications at fedoraproject.org
Tue Jun 9 12:53:51 UTC 2015


From b0506bac72e819d87f62aa3bca5af8d240beb845 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
Date: Tue, 9 Jun 2015 14:49:49 +0200
Subject: Normalize encoding by patch


diff --git a/Language-Prolog-Yaswi-0.21-Convert-documentation-to-UTF-8.patch b/Language-Prolog-Yaswi-0.21-Convert-documentation-to-UTF-8.patch
new file mode 100644
index 0000000..dc21c5c
--- /dev/null
+++ b/Language-Prolog-Yaswi-0.21-Convert-documentation-to-UTF-8.patch
@@ -0,0 +1,29 @@
+From fc4766c303ff163354c73e68c37e32a5a4924d8a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar at redhat.com>
+Date: Tue, 9 Jun 2015 14:48:17 +0200
+Subject: [PATCH] Convert documentation to UTF-8
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppisar at redhat.com>
+---
+ README | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/README b/README
+index 23c2091..ba2bdbc 100644
+--- a/README
++++ b/README
+@@ -68,7 +68,7 @@ these other modules and libraries:
+ 
+ COPYRIGHT AND LICENCE
+ 
+-Copyright (C) 2003-2006, 2008, 2011, 2012 Salvador Fandi�o
++Copyright (C) 2003-2006, 2008, 2011, 2012 Salvador Fandiño
+ 
+ This library is free software; you can redistribute it and/or modify
+ it under the same terms as Perl itself.
+-- 
+2.1.0
+
diff --git a/perl-Language-Prolog-Yaswi.spec b/perl-Language-Prolog-Yaswi.spec
index fb609c5..ca35514 100644
--- a/perl-Language-Prolog-Yaswi.spec
+++ b/perl-Language-Prolog-Yaswi.spec
@@ -8,9 +8,10 @@ URL:            http://search.cpan.org/dist/Language-Prolog-Yaswi/
 Source0:        http://www.cpan.org/authors/id/S/SA/SALVA/Language-Prolog-Yaswi-%{version}.tar.gz
 # Adjust list parsing to SWI Prolog 7, bug #1229589, CPAN RT#105114
 Patch0:         Language-Prolog-Yaswi-0.21-Adjust-list-parsing-to-SWI-Prolog-7.patch
+# Convert README to UTF-8
+Patch1:         Language-Prolog-Yaswi-0.21-Convert-documentation-to-UTF-8.patch
 BuildRequires:  coreutils
 BuildRequires:  gcc
-BuildRequires:  glibc-common
 BuildRequires:  make
 BuildRequires:  perl
 BuildRequires:  perl(ExtUtils::MakeMaker)
@@ -44,11 +45,7 @@ and so on.
 %prep
 %setup -q -n Language-Prolog-Yaswi-%{version}
 %patch0 -p1
-for F in README; do
-    iconv -f iso8859-1 -t utf-8 < "$F" > "${F}.new"
-    touch -r "$F" "${F}.new"
-    mv "${F}.new" "$F"
-done
+%patch1 -p1
 
 %build
 PL="%(type -p swipl)" perl Makefile.PL \
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/perl-Language-Prolog-Yaswi.git/commit/?h=master&id=b0506bac72e819d87f62aa3bca5af8d240beb845


More information about the perl-devel mailing list