[atool/el6] convert to UTF-8 while keeping the original timestamp

Elder Marco eldermarco at fedoraproject.org
Tue Oct 9 14:40:39 UTC 2012


commit 17e3c3f435f818efc83e11f15beb74ec74397e3f
Author: Elder Marco <eldermarco at gmail.com>
Date:   Tue Oct 9 11:37:02 2012 -0300

    convert to UTF-8 while keeping the original timestamp
    
    See:
      http://fedoraproject.org/wiki/Packaging:Guidelines#Timestamps

 atool.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/atool.spec b/atool.spec
index 395615a..b1bb0fe 100644
--- a/atool.spec
+++ b/atool.spec
@@ -27,11 +27,16 @@ ace, arj, rpm, cpio, arc, 7z, alzip.
 %prep
 %setup -q
 
+# Convert to UTF-8 while keeping the original timestamp
+iconv -f iso8859-1 -t utf-8 NEWS -o tmp
+touch -r NEWS tmp
+mv -f tmp NEWS
+chmod 0644 NEWS
+
+
 %build
 %configure
 make %{?_smp_mflags}
-mv NEWS NEWS.old
-iconv -f iso-8859-1 -t UTF-8 -o NEWS NEWS.old
 
 
 %install


More information about the scm-commits mailing list