--- rpms/translate-toolkit/contribs8/translate-toolkit.spec 2008/11/25 16:20:36 1.8 +++ rpms/translate-toolkit/contribs8/translate-toolkit.spec 2009/10/20 21:41:47 1.11 @@ -1,39 +1,46 @@ -# $Id: translate-toolkit.spec,v 1.6 2008/10/19 22:04:05 slords Exp $ +# $Id: translate-toolkit.spec,v 1.10 2009/10/20 20:46:55 slords Exp $ # Authority: slords # Name: Shad L. Lords %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%define prerelease "" - Name: translate-toolkit -Version: 1.2.0 -Release: 1%{?dist} -Summary: Tools to assist with localization +Version: 1.4.1 +Release: 2%{?dist} +Summary: Tools to assist with translation and software localization Group: Development/Tools License: GPLv2+ URL: http://translate.sourceforge.net/wiki/toolkit/index -Source0: http://downloads.sourceforge.net/translate/%{name}-%{version}.tar.bz2 -#Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}%{prerelease}/%{name}-%{version}%{prerelease}.tar.bz2 +Source0: http://downloads.sourceforge.net/project/translate/Translate%20Toolkit/1.4.0/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Patch0: translate-poterminology-stoplist.diff +Patch0: translate-toolkit-1.2.1-stoplist.patch +Patch1: translate-toolkit-1.4.1-sourcelencmp.patch BuildArch: noarch BuildRequires: python-devel +# The following are needed for man page generation +BuildRequires: python-lxml +BuildRequires: python-iniparse +BuildRequires: python-simplejson +BuildRequires: python-vobject +Requires: gettext Requires: python-enchant -Requires: python-psyco +Requires: python-iniparse Requires: python-Levenshtein Requires: python-lxml -Requires: python-iniparse +%ifarch %{ix86} +Requires: python-psyco +%endif +Requires: python-simplejson Requires: python-vobject -Requires: gettext-devel %description -A set of tools for managing localization via Gettext PO or XLIFF format files. - +A set of tools for managing translation and software localization via +Gettext PO or XLIFF format files. + Including: * Convertors: convert from various formats to PO or XLIFF * Formats: @@ -41,12 +48,14 @@ Including: * Other localization formats - TMX, TBX, Qt Linguist (.ts), Java .properties, Wordfast TM * Compiled formats: Gettext MO, Qt .qm - * Other formats - text, HTML, CSV, INI, wiki (MediaWiki, DokuWiki), iCal + * Other formats - OpenDocument Format (ODF), text, HTML, CSV, INI, + wiki (MediaWiki, DokuWiki), iCal * Specialised - OpenOffice.org GSI/SDF, PHP, - Mozilla (.dtd, .properties, etc) - * Tools: count, search, debug, segment and extract terminology from - localization files. - * Checkers: validate translations with over 46 checks + Mozilla (.dtd, .properties, etc), Symbian, + Innosetup, tikiwiki, subtitles + * Tools: count, search, debug, segment and pretranslate localization + files. Extract terminology. Pseudo-localize + * Checkers: validate translations with over 45 checks %package devel Summary: Development API for %{name} applications @@ -55,13 +64,15 @@ License: GPLv2+ Requires: %{name} = %{version}-%{release} %description devel -The %{name}-devel package contains Translate Toolkit API documentation for -developers wishing to build new tools or reuse the libraries in other tools. +The %{name}-devel package contains Translate Toolkit API +documentation for developers wishing to build new tools for the +toolkit or to use the libraries in other localization tools. %prep -%setup -q -n %{name}-%{version}%{prerelease} +%setup -q %patch0 -p1 +%patch1 -p1 %build @@ -72,18 +83,17 @@ developers wishing to build new tools or rm -rf $RPM_BUILD_ROOT %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -# Create the manpages +# create manpages mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1 -for program in $RPM_BUILD_ROOT/%{_bindir}/*; -do +for program in $RPM_BUILD_ROOT/%{_bindir}/*; do case $(basename $program) in - pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py) - ;; - *) + pocompendium|poen|pomigrate2|popuretext|poreencode|posplit|pocount|poglossary|lookupclient.py|tmserver|build_tmdb) + ;; + *) LC_ALL=C PYTHONPATH=. $program --manpage \ - > $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \ - || rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 - ;; + > $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 \ + || rm -f $RPM_BUILD_ROOT/%{_mandir}/man1/$(basename $program).1 + ;; esac done @@ -104,76 +114,102 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%doc translate/doc/user/toolkit-[a-z]* %doc translate/ChangeLog translate/COPYING translate/README +%doc translate/doc/user/toolkit-[a-z]* %{_bindir}/* %{_mandir}/man1/* %{_datadir}/translate-toolkit %{python_sitelib}/translate* %files devel +%defattr(-,root,root,-) %doc translate/doc/api/* %changelog -* Mon Oct 6 2008 Dwayne Bailey - 1.2.0-1.fc9 -- Update to 1.2.0 final -- Include stoplist-en and adjust poterminology to read it from the - /usr/share/ location +* Tue Oct 20 2009 Shad L. Lords - 1.4.1-2 +- Update to 1.4.1 final +- Add sourcelencmp routine back in so updatetm still works + +* Mon Aug 24 2009 Dwayne Bailey - 1.4.0-2 +- Upstream bug #1114 - obsolete messages should not be translatable + +* Wed Aug 5 2009 Dwayne Bailey - 1.4.0-1 +- Update to 1.4.0 final -* Tue Sep 30 2008 Dwayne Bailey - 1.2.0-0.3.rc1.fc9 -- Update to 1.2.0-rc1 -- Include ical2po dependencies +* Fri Jul 31 2009 Dwayne Bailey - 1.4.0-0.4.rc2 +- Update to 1.4.0 rc2: + - Some small fixes for XLIFF support + - API documentation has been augmented with diagrams -* Tue Aug 26 2008 Dwayne Bailey - 1.2-0.2.beta2.fc9 -- Update to 1.2-beta2 +* Fri Jul 24 2009 Dwayne Bailey - 1.4.0-0.3.rc1 +- Update to 1.4.0 rc1: -* Mon Aug 25 2008 Dwayne Bailey - 1.2-0.1.beta1.fc9 -- Update to 1.2-beta1 + Improvements since beta 1: + * Improved support for Windows .rc files. + * Small fixes to Mozilla support. + * Improvements to some pofilter checks. + * The tmserver now has more startup options to control behaviour. + * Better handling of spaces between inline elements in XLIFF + + There were also other bugfixes and small improvements, especially for + the sake of the rich editing features in the upcoming version of + Virtaal. -* Tue Jun 3 2008 Dwayne Bailey - 1.1.1-1.fc9 -- Rebuild for fc9 +* Mon Jun 29 2009 Dwayne Bailey - 1.4.0-0.2.beta1 +- Retag -* Thu Mar 27 2008 Dwayne Bailey - 1.1.1-1.fc8 -- Update to official 1.1.1 release -- Patches to fix internal project rename wordforge -> locamotion -- Use included API documentation +* Sat Jun 27 2009 Dwayne Bailey - 1.4.0-0.1.beta1 +- Update to 1.4.0 beta1 -* Wed Mar 12 2008 Dwayne Bailey - 1.1.1-0.4.rc4.fc8 -- Update to 1.1.1rc4 +* Fri Jun 12 2009 Dwayne Bailey - 1.3.0-3 +- Remove old excludes for /usr/bin/*.py{o,c} -* Wed Mar 5 2008 Dwayne Bailey - 1.1.1-0.3.rc3.fc8 +* Wed Feb 25 2009 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed Feb 18 2009 Dwayne Bailey - 1.3.0-1 +- Update to 1.3.0 final release + +* Tue Feb 3 2009 Dwayne Bailey - 1.3.0-0.2.rc1 +- Update to 1.3.0 rc1 + +* Thu Jan 22 2009 Dwayne Bailey - 1.3.0-0.1.beta1 +- Update to 1.3.0 beta1 + +* Sat Dec 6 2008 Dwayne Bailey - 1.2.1-1 +- Update to 1.2.1 +- Refresh poterminology patch + +* Sat Nov 29 2008 Ignacio Vazquez-Abrams - 1.2.0-4 +- Rebuild for Python 2.6 + +* Mon Nov 17 2008 Dwayne Bailey - 1.2.0-3 +- Rebuild using %%{ix86} instead of i386 + +* Mon Nov 17 2008 Dwayne Bailey - 1.2.0-2 +- python-psyco is only available on i386 + +* Wed Nov 12 2008 Dwayne Bailey - 1.2.0-1 +- Update to 1.2.0 +- Patch poterminology to read stoplist-en from /usr/share/ - Add devel package to include generated Translate Toolkit API documentation +- Add dependencies: python-iniparse, python-Levenshtein, python-lxml, + python-psyco, python-vobject, gettext-libs -* Mon Feb 25 2008 Dwayne Bailey - 1.1.1-0.2.rc3.fc8 -- Update to 1.1.1rc3 -- Remove ini2po patch - -* Thu Feb 14 2008 Dwayne Bailey - 1.1.1-0.1.rc2.fc8 -- Update to 1.1.1rc2 - -* Thu Feb 14 2008 Dwayne Bailey - 1.1.0-1.fc8 -- Update to 1.1.0 -- Remove old ElementTree patch -- Add dependencies: python-Levenshtein, python-lxml, python-iniparse, - gettext-devel -- Package ini2po - -* Tue Jan 22 2008 Dwayne Bailey - 1.0.1-4.fc8 -- Remove python-Levenshtein dependency: rhbz#429882 and rhbz#430887 - -* Tue Jan 22 2008 Caius Chance - 1.0.1-3.fc8 -- Resolves: rhbz#315021 - - Update license field to GPLv2+. - - Update to 1.0.1 with changes from Dwayne Bailey. +* Fri Jun 06 2008 Roozbeh Pournader - 1.1.1-1 +- update to 1.1.1 -* Thu Dec 20 2007 Dwayne Bailey - 1.0.1-2 -- Create man pages +* Mon Jan 21 2008 Jens Petersen - 1.0.1-1 +- update license field to GPLv2+ +- update to 1.0.1 with changes from Dwayne Bailey (#315021): -* Thu Dec 19 2007 Dwayne Bailey - 1.0.1-1 -- Update to upstream 1.0.1 +* Thu Dec 20 2007 Dwayne Bailey +- Update spec to upstream 1.0.1 - Update patch for Python 2.5 ElementTree - Cleanup the doc installation +- Create man pages +- Update description * Sat May 05 2007 Roozbeh Pournader - 0.11-1 - Update to upstream 0.11, adding HTML documentation