rpms/translate-toolkit/F-8 sources, 1.8, 1.9 .cvsignore, 1.7, 1.8 translate-toolkit.spec, 1.15, 1.16

Caius Chance (cchance) fedora-extras-commits at redhat.com
Tue Jan 22 02:56:31 UTC 2008


Author: cchance

Update of /cvs/pkgs/rpms/translate-toolkit/F-8
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv27722

Modified Files:
	sources .cvsignore translate-toolkit.spec 
Log Message:
* Thu Dec 19 2007 Dwayne Bailey <dwayne at translate.org.za> - 1.0.1-1
- Update to upstream 1.0.1
- Update patch for Python 2.5 ElementTree
- Cleanup the doc installation




Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/translate-toolkit/F-8/sources,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- sources	5 May 2007 13:34:48 -0000	1.8
+++ sources	22 Jan 2008 02:55:56 -0000	1.9
@@ -1 +1 @@
-a9ab8e9c67fb10a53beda6c2447bb076  translate-toolkit-0.11.tar.bz2
+468406ac134220d4cff3cf9fcd5cab17  translate-toolkit-1.0.1.tar.bz2


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/translate-toolkit/F-8/.cvsignore,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- .cvsignore	5 May 2007 13:34:48 -0000	1.7
+++ .cvsignore	22 Jan 2008 02:55:56 -0000	1.8
@@ -1 +1 @@
-translate-toolkit-0.11.tar.bz2
+translate-toolkit-1.0.1.tar.bz2


Index: translate-toolkit.spec
===================================================================
RCS file: /cvs/pkgs/rpms/translate-toolkit/F-8/translate-toolkit.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- translate-toolkit.spec	5 May 2007 13:34:48 -0000	1.15
+++ translate-toolkit.spec	22 Jan 2008 02:55:56 -0000	1.16
@@ -1,27 +1,37 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           translate-toolkit
-Version:        0.11
-Release:        1%{?dist}
-Summary:        A collection of tools to assist software localization
+Version:        1.0.1
+Release:        2%{?dist}
+Summary:        Tools to assist with localization
 
 Group:          Development/Tools
 License:        GPL
 URL:            http://translate.sourceforge.net/
-Source0:        http://heanet.dl.sf.net/translate/translate-toolkit-%{version}.tar.bz2
+Source0:        http://downloads.sourceforge.net/translate/%{name}-%{version}.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-Patch1:         translate-toolkit-0.10.1-python25.patch
+Patch1:         translate-toolkit-1.0.1-python25.patch
 
 BuildArch:      noarch
 BuildRequires:  python-devel
 Requires:       python-enchant
+Requires:       python-Levenshtein
+Requires:       python-psyco
+
 
 %description
-The Translate Toolkit includes programs to convert various localization
-formats to the common gettext PO format and vice versa, and programs to
-check and manage PO files. Also part of the package are programs to create
-word counts, merge translations, and perform various checks on PO files.
+A set of tools for managing localization via Gettext PO or XLIFF format files.
+ 
+Including:
+  * Convertors: convert from various formats to PO or XLIFF
+  * Formats:
+    * Core localization formats - XLIFF and Gettext PO
+    * Other localization formats - TMX, TBX, Qt Linguist (.ts)
+    * Other formats - Java .properties, text, HTML, CSV
+    * Specialised - OpenOffice.org GSI/SDF, Mozilla (.dtd, .properties, etc)
+  * Tools: count, search and debug localization files
+  * Checkers: validate translations with over 40 checks
 
 
 %prep
@@ -37,8 +47,31 @@
 rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
 
-# This removes the documentation files that were installed in site-packages
-find $RPM_BUILD_ROOT%{python_sitelib}/translate -type f -name "[[:upper:]]*" | xargs rm -fv
+# Create the manpages
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
+for program in $RPM_BUILD_ROOT/%{_bindir}/*;
+do
+	case $(basename $program) in
+	pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py)
+	  ;;
+	*)
+		LC_ALL=C PYTHONPATH=. $program --manpage \
+		>  $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \
+		|| rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1
+	  ;;
+	esac
+done
+
+# We will take docs from the tarball
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/doc
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/COPYING
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/ChangeLog
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/LICENSE
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/README
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/convert/TODO
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/filters/TODO
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/misc/README
+rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/translate/tools/TODO
 
 
 %clean
@@ -47,6 +80,7 @@
 
 %files
 %defattr(-,root,root,-)
+%doc translate/doc/user/toolkit-[a-z]*
 %doc translate/ChangeLog translate/COPYING translate/README
 %doc %{python_sitelib}/translate/doc/
 %dir %{python_sitelib}/translate
@@ -58,11 +92,20 @@
 %{python_sitelib}/translate/*.py*
 %{python_sitelib}/translate/*/*.py*
 %{_bindir}/*
+%{_mandir}/*
 %exclude %{_bindir}/*.pyc
 %exclude %{_bindir}/*.pyo
 
 
 %changelog
+* Thu Dec 20 2007 Dwayne Bailey <dwayne at translate.org.za> - 1.0.1-2
+- Create man pages
+
+* Thu Dec 19 2007 Dwayne Bailey <dwayne at translate.org.za> - 1.0.1-1
+- Update to upstream 1.0.1
+- Update patch for Python 2.5 ElementTree
+- Cleanup the doc installation
+
 * Sat May 05 2007 Roozbeh Pournader <roozbeh at farsiweb.info> - 0.11-1
 - Update to upstream 0.11, adding HTML documentation
 




More information about the fedora-extras-commits mailing list