rpms/man-pages/FC-6 man-pages.spec,1.54,1.55

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Tue Feb 13 14:17:37 UTC 2007


Author: varekova

Update of /cvs/dist/rpms/man-pages/FC-6
In directory cvs.devel.redhat.com:/tmp/cvs-serv5709

Modified Files:
	man-pages.spec 
Log Message:
- Resolves: 227260
  fix iso-8859 (koi8-r) man pages



Index: man-pages.spec
===================================================================
RCS file: /cvs/dist/rpms/man-pages/FC-6/man-pages.spec,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- man-pages.spec	2 Oct 2006 12:46:21 -0000	1.54
+++ man-pages.spec	13 Feb 2007 14:17:35 -0000	1.55
@@ -1,7 +1,7 @@
 Summary: Man (manual) pages from the Linux Documentation Project.
 Name: man-pages
 Version: 2.39
-Release: 6
+Release: 7%{?dist}
 License: distributable
 Group: Documentation
 Source0: http://www.kernel.org/pub/linux/docs/manpages/man-pages-%{version}.tar.bz2
@@ -151,9 +151,40 @@
 
 for l1 in man[1-9]*/*
 do mkdir -p $(dirname en/$l1)
-   LANG=en iconv -f latin1 -t utf-8 -o en/$l1 $l1
-   rm -f $l1
-   LANG=en iconv -f latin1 -t ascii//translit -o $l1 en/$l1
+    if [ "$l1" != man7/iso_8859-1.7 ] &&
+       [ "$l1" != man7/iso_8859-2.7 ] &&
+       [ "$l1" != man7/iso_8859-7.7 ] &&
+       [ "$l1" != man7/iso_8859-9.7 ] &&
+       [ "$l1" != man7/iso_8859-15.7 ] &&
+       [ "$l1" != man7/iso_8859-16.7 ] &&
+       [ "$l1" != man7/koi8-r.7 ]; then
+        LANG=en iconv -f latin1 -t utf-8 -o en/$l1 $l1
+        rm -f $l1
+        LANG=en iconv -f latin1 -t ascii//translit -o $l1 en/$l1
+    else
+       if [ "$l1" == man7/iso_8859-1.7 ]; then 
+         LANG=en iconv -f iso_8859-1 -t utf-8 -o en/$l1 $l1
+       fi;
+       if [ "$l1" == man7/iso_8859-2.7 ]; then
+         LANG=en iconv -f iso_8859-2 -t utf-8 -o en/$l1 $l1
+       fi;
+       if [ "$l1" == man7/iso_8859-7.7 ]; then 
+         LANG=en iconv -f iso_8859-7 -t utf-8 -o en/$l1 $l1
+       fi;
+       if [ "$l1" == man7/iso_8859-9.7 ]; then
+         LANG=en iconv -f iso_8859-9 -t utf-8 -o en/$l1 $l1
+       fi;
+       if [ "$l1" == man7/iso_8859-15.7 ]; then
+         LANG=en iconv -f iso_8859-15 -t utf-8 -o en/$l1 $l1
+       fi;
+       if [ "$l1" == man7/iso_8859-16.7 ]; then 
+         LANG=en iconv -f iso_8859-16 -t utf-8 -o en/$l1 $l1
+       fi;
+       if [ "$l1" == man7/koi8-r.7 ]; then 
+         LANG=en iconv -f koi8-r -t utf-8 -o en/$l1 $l1
+       fi;
+       cp en/$l1 $l1 
+    fi
 done
 
 %install
@@ -170,6 +201,15 @@
    elif [ $? -eq 1 ]
    then cp -a en/$n $RPM_BUILD_ROOT%{_mandir}/en/$n
    fi
+   if [ "$n" == man7/iso_8859-1.7 ] ||
+      [ "$n" == man7/iso_8859-2.7 ] ||
+      [ "$n" == man7/iso_8859-7.7 ] ||
+      [ "$n" == man7/iso_8859-9.7 ] ||
+      [ "$n" == man7/iso_8859-15.7 ] ||
+      [ "$n" == man7/iso_8859-16.7 ] ||
+      [ "$n" == man7/koi8-r.7 ]; then
+      cp $n $RPM_BUILD_ROOT%{_mandir}/en/$n
+    fi
 done
 
 %clean
@@ -182,6 +222,10 @@
 %{_mandir}/en/man*
 
 %changelog
+* Tue Feb 13 2006 Ivana Varekova <varekova at redhat.com> 2.39-7
+- Resolves: 227260
+  fix iso-8859 (koi8-r) man pages
+
 * Mon Oct  2 2006 Ivana Varekova <varekova at redhat.com> 2.39-6
 - add getunwind.2, kexec_load.2, move_pages.2, perfmonctl.2, 
   spu_create.2, spufs.2, spu_run.2 and  vserver.2 man pages




More information about the fedora-cvs-commits mailing list