diff --git a/.gitignore b/.gitignore deleted file mode 100644 index e1935c6..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -virtaal-0.6.1.tar.bz2 diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..8202f50 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +virtaal fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676192 diff --git a/sources b/sources deleted file mode 100644 index 4765586..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -5a636e1b6302cba4244a017367953227 virtaal-0.6.1.tar.bz2 diff --git a/virtaal-0.3.0-autocorr_shared_location.patch b/virtaal-0.3.0-autocorr_shared_location.patch deleted file mode 100644 index 51d660e..0000000 --- a/virtaal-0.3.0-autocorr_shared_location.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up virtaal-0.3.0/virtaal/plugins/autocorrector.py.autocorr_shared_location virtaal-0.3.0/virtaal/plugins/autocorrector.py ---- virtaal-0.3.0/virtaal/plugins/autocorrector.py.autocorr_shared_location 2009-02-14 19:38:28.000000000 +0200 -+++ virtaal-0.3.0/virtaal/plugins/autocorrector.py 2009-02-14 19:39:09.000000000 +0200 -@@ -254,7 +254,7 @@ class Plugin(BasePlugin): - self._init_plugin() - - def _init_plugin(self): -- self.autocorr = AutoCorrector(self.main_controller, acorpath=pan_app.get_abs_data_filename(['virtaal', 'autocorr'])) -+ self.autocorr = AutoCorrector(self.main_controller, acorpath='/usr/share/autocorr') - - def on_cursor_change(cursor): - def add_widgets(): diff --git a/virtaal-0.5.0-setup_drop_MO_generation.patch b/virtaal-0.5.0-setup_drop_MO_generation.patch deleted file mode 100644 index 2702805..0000000 --- a/virtaal-0.5.0-setup_drop_MO_generation.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -up virtaal-0.5.0-rc1/setup.py.setup_drop_MO_generation virtaal-0.5.0-rc1/setup.py ---- virtaal-0.5.0-rc1/setup.py.setup_drop_MO_generation 2009-11-18 13:09:29.000000000 +0200 -+++ virtaal-0.5.0-rc1/setup.py 2009-11-24 19:02:36.000000000 +0200 -@@ -60,23 +60,6 @@ classifiers = [ - ] - #TODO: add Natural Language classifiers - --# Compile .mo files from available .po files --from translate.tools.pocompile import convertmo --mo_files = [] -- --for po_filename in glob(path.join('po', '*.po')): -- lang = path.split(po_filename[:-3])[1] # Chop off '.po' -- mo_filename = path.join('mo', lang, 'virtaal.mo') -- -- if not path.exists(path.join('mo', lang)): -- os.makedirs(path.join('mo', lang)) -- -- convertmo(open(po_filename), open(mo_filename, 'w'), None) -- -- mo_files.append( -- ( path.join(TARGET_DATA_DIR, 'locale', lang, 'LC_MESSAGES'), [mo_filename]) -- ) -- - # Some of these depend on some files to be built externally before running - # setup.py, like the .xml and .desktop files - options = { -@@ -84,7 +67,7 @@ options = { - (path.join(TARGET_DATA_DIR, "virtaal"), glob(path.join(SOURCE_DATA_DIR, "virtaal", "*.*"))), - (path.join(TARGET_DATA_DIR, "virtaal", "autocorr"), glob(path.join(SOURCE_DATA_DIR, "virtaal", "autocorr", "*"))), - (path.join(TARGET_DATA_DIR, "icons"), glob(path.join(SOURCE_DATA_DIR, "icons", "*.*"))), -- ] + mo_files, -+ ], - 'scripts': [ - "bin/virtaal", - ], diff --git a/virtaal-0.6.1-bug611751-libtranslate_error_reporting.patch b/virtaal-0.6.1-bug611751-libtranslate_error_reporting.patch deleted file mode 100644 index f06e124..0000000 --- a/virtaal-0.6.1-bug611751-libtranslate_error_reporting.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- src/trunk/virtaal/virtaal/plugins/tm/models/libtranslate.py 2010/06/24 15:15:56 14794 -+++ src/trunk/virtaal/virtaal/plugins/tm/models/libtranslate.py 2010/06/25 10:44:58 14795 -@@ -88,12 +88,12 @@ - self.source_lang, self.target_lang, - None, None, err - ) -- if not isinstance(result, unicode): -- result = unicode(result, 'utf-8') # XXX: The encoding is just a guess - if result is None: - # TODO handle errors and cleanup errors - logging.warning("An error occured while getting a translation: %s" % err) - return -+ if not isinstance(result, unicode): -+ result = unicode(result, 'utf-8') # XXX: The encoding is just a guess - translation.append({ - 'source': query_str, - 'target': quote.rstripeol(result), diff --git a/virtaal-0.6.1-bug633765-wrap_tinytm_postgress_errors.patch b/virtaal-0.6.1-bug633765-wrap_tinytm_postgress_errors.patch deleted file mode 100644 index 1904bde..0000000 --- a/virtaal-0.6.1-bug633765-wrap_tinytm_postgress_errors.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- src/trunk/virtaal/virtaal/plugins/tm/models/tinytm.py 2010/09/14 14:49:58 15768 -+++ src/trunk/virtaal/virtaal/plugins/tm/models/tinytm.py 2010/09/14 14:59:13 15769 -@@ -18,6 +18,8 @@ - # You should have received a copy of the GNU General Public License - # along with this program; if not, see . - -+import logging -+ - from virtaal.common import pan_app - - from basetmmodel import BaseTMModel -@@ -69,10 +71,13 @@ - # Uncomment this if you don't trust the results - #results = self._db.execute("""SELECT * FROM tinytm_get_fuzzy_matches('en', 'de', 'THE EUROPEAN ECONOMIC COMMUNITY', '', '')""") - cursor = self._db_con.cursor() -- cursor.execute( -- """SELECT * FROM tinytm_get_fuzzy_matches(%s, %s, %s, '', '')""", -- (self.source_lang, self.target_lang, query_str.encode('utf-8')) -- ) -+ try: -+ cursor.execute( -+ """SELECT * FROM tinytm_get_fuzzy_matches(%s, %s, %s, '', '')""", -+ (self.source_lang, self.target_lang, query_str.encode('utf-8')) -+ ) -+ except psycopg.Error, e: -+ logging.error("[%s] %s" % (e.pgcode, e.pgerror)) - for result in cursor.fetchall(): - quality, source, target = result[:3] - if not isinstance(target, unicode): diff --git a/virtaal-0.6.1-bug675623-pt_spellchecking.patch b/virtaal-0.6.1-bug675623-pt_spellchecking.patch deleted file mode 100644 index 60e80c4..0000000 --- a/virtaal-0.6.1-bug675623-pt_spellchecking.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff -up virtaal-0.6.1/virtaal/views/unitview.py.pt_spellchecking virtaal-0.6.1/virtaal/views/unitview.py ---- virtaal-0.6.1/virtaal/views/unitview.py.pt_spellchecking 2011-01-21 08:49:15.318066554 +0200 -+++ virtaal-0.6.1/virtaal/views/unitview.py 2011-01-21 08:45:55.554060417 +0200 -@@ -364,6 +364,9 @@ class UnitView(gtk.EventBox, GObjectWrap - #logging.debug('No enchant!') - return - -+ if language == "pt": -+ language = "pt_PT" -+ - if not enchant.dict_exists(language): - # Sometimes enchants *wants* a country code, other times it does not. - # For the cases where it requires one, we look for the first language diff --git a/virtaal.spec b/virtaal.spec deleted file mode 100644 index 470ccc0..0000000 --- a/virtaal.spec +++ /dev/null @@ -1,408 +0,0 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} - -Name: virtaal -Version: 0.6.1 -Release: 8%{?dist} -Summary: Localization and translation editor - -Group: Development/Tools -License: GPLv2+ -URL: http://translate.sourceforge.net/wiki/virtaal/index -Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -Patch0: virtaal-0.5.0-setup_drop_MO_generation.patch -Patch1: virtaal-0.3.0-autocorr_shared_location.patch -Patch2: virtaal-0.6.1-bug611751-libtranslate_error_reporting.patch -Patch3: virtaal-0.6.1-bug675623-pt_spellchecking.patch -Patch4: virtaal-0.6.1-bug633765-wrap_tinytm_postgress_errors.patch - -BuildArch: noarch -BuildRequires: python -%if 0%{?fedora} >= 14 -BuildRequires: python2-devel -%else -BuildRequires: python-devel -%endif -BuildRequires: desktop-file-utils -BuildRequires: gettext -BuildRequires: intltool -Requires: translate-toolkit >= 1.5.1 -Requires: pygtk2 -Requires: pygtk2-libglade -%{?fedora:Requires: pygobject2} -Requires: python-lxml -# Virtaal lists the following as optional packages -# gnome-python2-gtkspell Needed for spell checking -Requires: gnome-python2-gtkspell -# libtranslate provides access to various MT platforms -%{?fedora:Requires: libtranslate} -# python-Levenshtein provides fast distance measures -Requires: python-Levenshtein -# python-psycopg2 needed for TinyTM -Requires: python-psycopg2 -# Virtaal speedup -%ifarch %{ix86} -%{?fedora:Requires: python-psyco} -%endif -# python-pycurl needed for open-tran.eu -Requires: python-pycurl -# python-simplejson needed for google-translate and tmclient -Requires: python-simplejson -Requires: xdg-utils - - -%description -A program for Computer Aided Translation (CAT) and localization. - -Virtaal includes features that allow a localizer to work effectively including: -syntax highlighting, autocomplete and autocorrect. By showing only -the data that is needed through its simple and effective user interface it -ensures that translators can focus on their current translation task. - -A rich set of Translation Memory (TM) plugins provide valuable suggestions to -the translator from sources such as Open-Tran.eu, the current file, and the -translators own TM server. Similarly Machine Translation (MT) suggestions can -come from Apertium, libtranslate, Google and Moses. - -The terminology plugin system will provide terminology hints from Open-Tran.eu, -local terminology files and remote terminology repositories. - -Placeholders such as variables, abbreviations, URLs, emails and special -punctutions are highlighted for easy insertion into the translations. - -Virtaal is able to edit any of the following formats: XLIFF, Gettext PO and -.mo, Qt .ts, .qph and .qm, Wordfast TM, TMX, OmegaT glossaries and TBX. The -Translate Toolkit converters allow translators to edit: OpenDocument -Format (ODF), OpenOffice.org SDF, Java (and Mozilla) .properties, Mozilla -DTD files, subtitles, and other formats. - - -%prep -%setup -q -%patch0 -p1 -b .setup_drop_MO_generation -%patch1 -p1 -b .autocorr_shared_location -%patch2 -p3 -b .bug611751_libtranslate_error -%patch3 -p1 -b .bug675623_pt_spelling -%patch4 -p3 -b .bug633765-tinytm_postgress_errors - -%build -%{__python} setup.py build -./maketranslations %{name} -pushd po -for po in $(ls *.po | egrep -v de_DE) -do - mkdir -p locale/$(basename $po .po)/LC_MESSAGES/ - msgfmt $po --output-file=locale/$(basename $po .po)/LC_MESSAGES/%{name}.mo -done -popd - - -%install -rm -rf %{buildroot} -%{__python} setup.py install -O1 --skip-build --install-data=/usr --nodepcheck --root %{buildroot} - - -desktop-file-install %{?rhel:--vendor=""} \ - --delete-original \ - --dir=%{buildroot}%{_datadir}/applications \ - %{buildroot}%{_datadir}/applications/%{name}.desktop - -cp -rp po/locale %{buildroot}%{_datadir}/ -%find_lang %{name} - -rm -rf %{buildroot}%{_datadir}/virtaal/autocorr - -pushd %{buildroot}%{_datadir}/icons/hicolor - for size in $(ls -d *) - do - pushd $size/mimetypes - ext=png - if [ "$size" == "scalable" ]; then - ext=svg - fi - for mimetype in \ - text-x-gettext-translation \ - text-x-gettext-translation-template \ - application-x-xliff+xml application-x-xliff \ - text-x-wordfast - do - ln -s x-translation.$ext $mimetype.$ext - done - popd - done -popd - - -%post -update-desktop-database &> /dev/null || : -update-mime-database %{_datadir}/mime &> /dev/null || : -touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : - - -%postun -update-desktop-database &> /dev/null || : -update-mime-database %{_datadir}/mime &> /dev/null || : -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -fi - - -%posttrans -gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - - -%clean -rm -rf %{buildroot} - - -%files -f %{name}.lang -%defattr(-,root,root,-) -%doc README LICENSE po/*.pot -%{_bindir}/* -%{_datadir}/applications/* -%{_datadir}/mime/packages/* -%{_datadir}/virtaal -%{_datadir}/icons/hicolor/*/mimetypes/* -%{_datadir}/icons/virtaal.* -%exclude %{_datadir}/icons/x-translation.ico -%{python_sitelib}/* - - -%changelog -* Fri May 20 2011 Dwayne Bailey - 0.6.1-8 -- Fix bug #633765 - wrap TinyTM Postgress errors - -* Mon Feb 07 2011 Dwayne Bailey - 0.6.1-7 -- Fix bug #675623 - pt uses pt_BR instead of pt_PT for spell checking - -* Mon Feb 07 2011 Fedora Release Engineering - 0.6.1-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Fri Jul 23 2010 Dwayne Bailey - 0.6.1-5 -- Install .desktop in a RHEL/Fedora neutral way - -* Fri Jul 23 2010 Dwayne Bailey - 0.6.1-4 -- Fix libtranslate patch offset - -* Fri Jul 23 2010 Dwayne Bailey - 0.6.1-3 -- Fix bug #611751 - fix error reporting in libtranslate - -* Thu Jul 22 2010 David Malcolm - 0.6.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild - -* Mon Jun 7 2010 Dwayne Bailey - 0.6.1-1 -- Updates to 0.6.1 - - Support for selecting placeables from the plural in the source - - Support for selecting the whole source after moving through all placeables - - Instability in the plugin preferences (#1448) - - Fixed an occasional crash caused by Tabing from navigation (#869) - - Assume cancel if file confirmation is closed (#1453) - - Work around GNOME bug 569581 (Windows US intl layout, Afrikaans 'n) - - Correct display of welcome screen when opening broken files (#1433) - - Fixed some GTK warnings - - Correctly handle all open-tran.eu errors (#1355) - - Correct colours on the language pop-up button (#1424) - - Fix incorrect text selection during search (#1474) - - Some fixes to the Italian translation - - New translation: Thai - -* Fri Apr 23 2010 Dwayne Bailey - 0.6.0-1 -- Updates to 0.6.0 - - Support for seeing alt-trans tags in XLIFF files as suggestions - - Support for Microsoft Translator and new Apertium service - - Support for proxy servers - - Support for OmegaT glossary files - - A more useful welcome area in the main application area - - Accessibility improvements - - Better compliance with system themes - - New translations: Bulgarian, Icelandic -- Drop OpenTran XMLRPC bug #1355 -- Drop TMController fixes bug #1388 - -* Thu Mar 25 2010 Dwayne Bailey - 0.5.2-3 -- Backport TMController fix (bug #1388) - -* Sat Feb 20 2010 Dwayne Bailey - 0.5.2-2 -- Actualy commit the XMLRPC fix -- Ensure we build with python2 - -* Fri Jan 29 2010 Dwayne Bailey - 0.5.2-1 -- Update to 0.5.2 - - Correctly package the lookup plugin that was missing before - - Draw the user's attention if the language pair isn't specified - - Keep track of window sizes and maximisation state - - New autocorrect file for Lithuanian - - New translations: Belarusian, Akan, Polish, Asturian, Japanese, Punjabi - - Several small bug fixes and improvements -- Backport OpenTran XMLRPC errors (bug #1355) - -* Sat Dec 26 2009 Dwayne Bailey - 0.5.1-1 -- Update to 0.5.1 - - Fixed URI-handling bug for opening files. - - New translations: Chinese (Taiwan) and Lithuanian. - -* Thu Dec 3 2009 Dwayne Bailey - 0.5.0-1 -- Update to 0.5.0 final - - Correctly support Open-Tran for languages with regional modifiers - - Web requests now accept compressed responses if the server offers it - - New translations: Ukrainian. - - Various bug fixes -- Drop Korean translation fix - -* Tue Dec 1 2009 Dwayne Bailey - 0.5.0-0.2.rc1 -- Typo in postun - -* Fri Nov 27 2009 Dwayne Bailey - 0.5.0-0.1.rc1 -- Update to 0.5.0 rc1 - - Autoterm: Virtaal can now automatically download terminology files - - Web look-up: select text and and look it up on a web site - - Highlighting of differences in non-100% TM matches - - Language detection to aid in correct choice of language pair - - Informative error handling when adding terms - - New plugins for machine translation with Google and Moses - - New translations: Northern Sotho, Sotho, Songhai, Korean - - Many updated translations - - Various bugfixes. -- Update MO generation patch -- Fix a msgfmt compile error in Korean translations - -* Fri Oct 16 2009 Dwayne Bailey - 0.4.1-1 -- Update to 0.4.1 - - New translations: Turkish, Finnish, Vietnamese - - Updated translations: Russian, Dutch and Zulu - - More complete handling of "recent files" (bug 1120) - - Better alignment with the GNOME human interface guidelines (bug 1095) - - More reliable ways of obtaining the default font settings (bug 1092) - - Better handling of HTML tags in the Apertium MT module - - Small layout improvements (bug 1045, 1138) -- Depend on Translate Toolkit 1.4.1 for fixes to XLIFF, placeable and tmserver - -* Wed Aug 5 2009 Dwayne Bailey - 0.4.0-1 -- Update to 0.4.0 final - - Terminology suggestions - - Syntax highlighting - - Support for "placeables" or placeholders - - Support for editing inline elements of XLIFF files - - Improvements to preferences - - Updated translations. - - Improvements for right-to-left languages. - -* Fri Jul 31 2009 Dwayne Bailey - 0.4.0-0.3.rc2 -- Update to 0.4.0 rc2: - - More improvements to the RTL interface of Virtaal - - Bugfixes relating to undo and editing XLIFF inline elements - -* Fri Jul 24 2009 Dwayne Bailey - 0.4.0-0.2.rc1 -- Update to 0.4.0 rc1: - - Improvements since beta 1: - - User interface improvements, including - - better English text - - better display on small screens - - better display in right-to-left languages - - updated translations: af, ar, de, en_GB, en_ZA, eu, fr, gl, nl, pt_BR, ru - - Fonts are now configurable - - You can select to which file a new term should be added - - Improvements to comments, including making them selectable - - Updated tutorial - - Handling of inline elements in XLIFF - -- Drop --nodepcheck patch - -* Tue Jun 30 2009 Dwayne Bailey - 0.4.0-0.1.beta1 -- Update to 0.4.0 beta1 -- Backport r11846 --nodepcheck - -* Wed Apr 15 2009 Dwayne Bailey - 0.3.1-3 -- Update icon installation to latest Fedora guidelines - -* Wed Feb 25 2009 Fedora Release Engineering - 0.3.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Wed Feb 18 2009 Dwayne Bailey - 0.3.1-1 -- Update to 0.3.1 release -- Package icons - -* Sat Feb 14 2009 Dwayne Bailey - 0.3.0-3 -- Use platform autocorrect files - -* Sat Feb 14 2009 Dwayne Bailey - 0.3.0-2 -- Update to F-10: - - Correct dependency python-psycopg2 - - Update to 0.3 final - - Add pycurl, libtranslate, psycopg2 for various TM plugins - -* Tue Feb 3 2009 Dwayne Bailey - 0.3-0.2.rc1 -- Update for 0.3-rc1 -- Remove version patch - -* Thu Jan 22 2009 Dwayne Bailey - 0.3-0.1.beta1 -- Update for 0.3-beta1 release -- Refresh MO setup patch -- Add version patch to prevent dependency on Translate Toolkit - when building - -* Wed Jan 7 2009 Dwayne Bailey - 0.2-3 -- vendor tag is needed for desktop-file-install - -* Sat Dec 6 2008 Dwayne Bailey - 0.2-2 -- Cleanups from package review - -* Thu Oct 16 2008 Dwayne Bailey - 0.2-1 -- Build for final 0.2 release -- Add pygtk2-libglade dependency - -* Thu Oct 2 2008 Dwayne Bailey - 0.2-0.3.rc1 -- Rebuild after tarball restructuring - -* Wed Oct 1 2008 Dwayne Bailey - 0.2-0.2.rc1 -- Fix file locations - -* Wed Oct 1 2008 Dwayne Bailey - 0.2-0.1.rc1 -- Update to RC1 - -* Sat Sep 20 2008 Dwayne Bailey - 0.1-12 -- Include LICENSE - -* Thu Sep 11 2008 Dwayne Bailey - 0.1-11 -- Update for various file moves. -- Package virtaal.pot and gtk+-lite.pot -- Exclude the de_DE.mo debug translations - -* Sat Jul 26 2008 Dwayne Bailey - 0.1-10 -- Package autocorrect files - -* Thu Jul 24 2008 Dwayne Bailey - 0.1-9 -- Rebuild after upstream data location changes - -* Tue Jun 3 2008 Dwayne Bailey - 0.1-8 -- Rebuild for fc9 - -* Fri May 9 2008 Dwayne Bailey - 0.1-8 -- Add xdg-utils as a requirement as we are using xdg-open - -* Wed May 7 2008 Dwayne Bailey - 0.1-7 -- Adjust to changes in source package - -* Wed Apr 30 2008 Dwayne Bailey - 0.1-6 -- Adjust to changes in source package - -* Thu Apr 17 2008 Dwayne Bailey - 0.1-5 -- Install icon - -* Thu Apr 17 2008 Dwayne Bailey - 0.1-4 -- Build translatable files using intltool - -* Mon Apr 14 2008 Dwayne Bailey - 0.1-3 -- Install translations - -* Sat Apr 12 2008 Dwayne Bailey - 0.1-2 -- Executable s/run_virtaal.py/virtaal/ -- Remove .glade movement, ./setup.py install it correctly now -- Install .desktop, locale, mime files -- Update desktop- and mime-database - -* Sat Apr 5 2008 Dwayne Bailey - 0.1-1 -- Initial packaging