Hello community, here is the log from the commit of package translate-toolkit for openSUSE:Factory checked in at 2013-07-08 12:36:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/translate-toolkit (Old) and /work/SRC/openSUSE:Factory/.translate-toolkit.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "translate-toolkit" Changes: -------- --- /work/SRC/openSUSE:Factory/translate-toolkit/translate-toolkit.changes 2012-06-06 18:03:07.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.translate-toolkit.new/translate-toolkit.changes 2013-07-08 12:36:49.000000000 +0200 @@ -1,0 +2,17 @@ +Fri Jun 28 00:51:32 UTC 2013 - [email protected] + +- Add python-{Levenshtein,aeidon} as Requires and remove again + diff_match_patch as its not allowed on Factory (license issue) + +------------------------------------------------------------------- +Tue Mar 26 21:00:20 UTC 2013 - [email protected] + +- New upstream version (1.10.0) + * devel package renamed as devel-doc. + +------------------------------------------------------------------- +Sat Jan 12 13:25:43 UTC 2013 - [email protected] + +- initial repackaging + +------------------------------------------------------------------- Old: ---- translate-toolkit-1.9.0.tar.bz2 New: ---- translate-toolkit-1.10.0.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ translate-toolkit.spec ++++++ --- /var/tmp/diff_new_pack.ILUKGU/_old 2013-07-08 12:36:50.000000000 +0200 +++ /var/tmp/diff_new_pack.ILUKGU/_new 2013-07-08 12:36:50.000000000 +0200 @@ -1,7 +1,7 @@ # # spec file for package translate-toolkit # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -11,87 +11,133 @@ # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: translate-toolkit -Version: 1.9.0 +Version: 1.10.0 Release: 0 +Summary: Tools and API to assist with translation and software localization License: GPL-2.0+ -Summary: Tools to assist with translation and software localization -Url: http://translate.sourceforge.net/wiki/toolkit/index Group: Development/Tools/Other -Source0: %{name}-%{version}.tar.bz2 +Url: http://toolkit.translatehouse.org/ +Source: http://sourceforge.net/projects/translate/files/Translate%20Toolkit/%{version}/%{name}-%{version}.tar.bz2 BuildRequires: fdupes BuildRequires: python-devel -BuildRequires: python-Levenshtein +BuildRequires: gaupol +BuildRequires: gettext-runtime +BuildRequires: iso-codes +BuildRequires: python-utidy Requires: gettext-runtime +%if 0%{?suse_version} >= 1140 +BuildRequires: python-iniparse +%endif # The following are for the full experience of translate-toolkit -Requires: python-Levenshtein -Requires: python-aeidon +%if 0%{?suse_version} > 1230 +BuildRequires: python-aeidon +%endif %if 0%{?suse_version} <= 1210 Requires: python-enchant +BuildRequires: python-enchant %else Requires: python-pyenchant +BuildRequires: python-pyenchant %endif +Requires: python-Levenshtein +Requires: python-aeidon Requires: python-iniparse Requires: python-lxml Requires: python-simplejson Requires: vobject - +Recommends: python-utidy +Recommends: gaupol +Recommends: iso-codes Provides: python-translate-toolkit = %{version} BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} >= 1140 BuildArch: noarch %endif - # The following are needed for man page generation -BuildRequires: python-xml +%if 0%{?suse_version} > 1140 +BuildRequires: python-Sphinx +BuildRequires: python-xapian +%endif BuildRequires: python-lxml BuildRequires: python-lxml-doc BuildRequires: python-simplejson +BuildRequires: python-xml BuildRequires: vobject %py_requires %description -A set of tools for managing translation and software localization via Gettext PO or XLIFF format files. +The Translate Toolkit is a set of software and documentation designed to help +make the lives of localizers both more productive and less frustrating. -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), Java .properties, Wordfast TM, OmegaT glossary - * Compiled formats: Gettext MO, Qt .qm - * Other formats - OpenDocument Format (ODF), text, HTML, CSV, INI, wiki (MediaWiki, DokuWiki), iCal - * Specialised - OpenOffice.org GSI/SDF, PHP, 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 +The software includes programs to convert localization formats to the common +PO, and emerging XLIFF format. There are also programs to check and manage PO +and XLIFF files. Online documentation includes guides on using the tools, +running a localization project and how to localize various projects from +OpenOffice.org to Mozilla. + +At its core the software contains a set of classes for handling various +localization storage formats: DTD, properties, OpenOffice.org GSI/SDF, +CSV, MO, Qt .ts, TMX, TBX, WordFast txt, Gettext .mo, Windows RC, and +of course PO and XLIFF. It also provides scripts to convert between +these formats. -%package devel -Summary: Tools to assist with translation and software localization +Also part of the Toolkit are Python programs to create word counts, merge +translations and perform various checks on translation files. + +%package devel-doc +Summary: Tools and API to assist with translation and software localization Group: Development/Libraries/Python Requires: %{name} = %{version} -%if 0%{?suse_version} >= 1140 +# %%if 0%%{?suse_version} >= 1140 BuildArch: noarch -%endif +# %%endif +Provides: %{name}-devel = %{version} +Obsoletes: %{name}-devel < %{version} -%description devel -The %{name}-devel package contains Translate Toolkit API documentation for developers wishing to build new tools for the +%description devel-doc +The %{name}-devel-doc 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 +%__sed -i 296"s|'share'|'translate/share'|" setup.py +# fix for bnc#750652 - remove Apache-2.0 file - difflib is the fallback solution +rm translate/misc/diff_match_patch.py* +#<-- disabled, causing build issues +#having disabled, have to fix shebang +#%__sed -i 1d translate/misc/diff_match_patch.py +#Fix for shebang errors: +for lib in translate/{*.py,*/*.py,*/*/*.py}; do + sed -i '\|/usr/bin/env |d' $lib +done +# move langmodels to site-packages +%__mv share translate +#fix wrong perms +chmod a-x docs/_build/html/_static/font/*.* docs/_themes/sphinx-bootstrap/static/font/*.* +#fix line terminators in jquery.js +%__sed -i 's/\r//' docs/_build/html/_static/jquery.js +%__sed -i 's/\r//' docs/_themes/sphinx-bootstrap/static/jquery.js %build -python setup.py build +%__python setup.py build +pushd docs +%if 0%{?suse_version} > 1140 +# cannot recompile docs withot Sphinx +%{__make} html man +%__gzip -9 _build/man/*.1 +%endif +#no hidden files +find _build -name '.?*' -exec rm '{}' \+ +popd %install - -python setup.py install \ - --prefix=%{_prefix} \ - --root=%{buildroot} \ +%__python setup.py install --prefix=%{_prefix} --root=%{buildroot} # create manpages mkdir -p %{buildroot}/%{_mandir}/man1 @@ -106,21 +152,17 @@ ;; esac done +%if 0%{?suse_version} > 1140 +install -m 644 docs/_build/man/*.gz %{buildroot}/%{_mandir}/man1/ +%endif # remove documentation files from site-packages -rm %{buildroot}/%{python_sitelib}/translate/{COPYING,ChangeLog,LICENSE,README} -rm %{buildroot}/%{python_sitelib}/translate/{convert,filters,tools}/TODO -rm %{buildroot}/%{python_sitelib}/translate/misc/README +rm %{buildroot}/%{python_sitelib}/translate/{COPYING,README.rst} -# fix for bnc#750652 - remove Apache-2.0 file - difflib is the fallback solution -rm %{buildroot}/%{python_sitelib}/translate/misc/diff_match_patch.py - -#Fix for shebang errors: -for lib in %{buildroot}%{python_sitelib}/translate/{*.py,*/*.py,*/*/*.py}; do - sed '/\/usr\/bin\/env/d' $lib > $lib.new && - touch -r $lib $lib.new && - mv $lib.new $lib -done +# move documentation files to datadir +%__install -d -m 755 %{buildroot}%{_defaultdocdir}/%{name} +mv %{buildroot}%{python_sitelib}/docs/_build/html %{buildroot}%{_defaultdocdir}/%{name} +rm -rf %{buildroot}%{python_sitelib}/docs # create symlinks for man pages %fdupes -s %{buildroot}/%{_mandir} @@ -132,17 +174,24 @@ %files %defattr(-,root,root) -%exclude %{python_sitelib}/translate/doc/api -%doc translate/ChangeLog translate/COPYING translate/README -%doc translate/doc/user/toolkit-[a-z]* -%exclude %{python_sitelib}/translate/doc/api +%exclude %{_defaultdocdir}/%{name}/html/api +%exclude %{_defaultdocdir}/%{name}/html/development +%exclude %{_defaultdocdir}/%{name}/html/_sources +%exclude %{_defaultdocdir}/%{name}/html/styleguide.html +%doc COPYING README.rst +%if 0%{?suse_version} <= 1140 +%doc docs/_build/html +%endif %{_bindir}/* %{_mandir}/man1/* %{python_sitelib}/translate %{python_sitelib}/translate_toolkit-%{version}-py%{py_ver}.egg-info -%files devel +%files devel-doc %defattr(-,root,root) -%doc %{python_sitelib}/translate/doc/api +%doc %{_defaultdocdir}/%{name}/html/api +%doc %{_defaultdocdir}/%{name}/html/development +%doc %{_defaultdocdir}/%{name}/html/_sources +%doc %{_defaultdocdir}/%{name}/html/styleguide.html %changelog ++++++ translate-toolkit-1.9.0.tar.bz2 -> translate-toolkit-1.10.0.tar.bz2 ++++++ ++++ 709462 lines of diff (skipped) -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
