From 523f52595e7566a4d7f8290b293fbf566daf0f7e Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Sat, 16 Apr 2011 21:45:44 +0200 Subject: [PATCH 01/40] Update to 0.7.0 beta5 Disable profiling option - not useful in production Try to optimise glade by removing leading space Drop patch for rhbug #675623 - pt spell checking Patch no_depcheck - don't perform dependency checks --- .gitignore | 1 + sources | 1 + ...g611751-libtranslate_error_reporting.patch | 17 ------- ...aal-0.6.1-bug675623-pt_spellchecking.patch | 13 ----- virtaal.spec | 50 +++++++++++++++---- 5 files changed, 43 insertions(+), 39 deletions(-) delete mode 100644 virtaal-0.6.1-bug611751-libtranslate_error_reporting.patch delete mode 100644 virtaal-0.6.1-bug675623-pt_spellchecking.patch diff --git a/.gitignore b/.gitignore index e1935c6..491e051 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ virtaal-0.6.1.tar.bz2 +/virtaal-0.7.0-beta5.tar.bz2 diff --git a/sources b/sources index 4765586..8697686 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 5a636e1b6302cba4244a017367953227 virtaal-0.6.1.tar.bz2 +74d15c924adbb436525afe405542579e virtaal-0.7.0-beta5.tar.bz2 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-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 index ee0aee5..80ace18 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -1,20 +1,26 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%global subrelease beta5 + Name: virtaal -Version: 0.6.1 -Release: 7%{?dist} +Version: 0.7.0 +#Release: 1%{?dist} +Release: 0.6.%{subrelease}%{?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 +# Final releases are found at this URL +#Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 +# Snapshot releases are found at this URL +Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.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 +Patch2: virtaal-0.7.0b4-no_depcheck.patch +Patch3: virtaal-0.7.0b5-no_profiling.patch BuildArch: noarch BuildRequires: python @@ -26,7 +32,7 @@ BuildRequires: python-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: intltool -Requires: translate-toolkit >= 1.5.1 +Requires: translate-toolkit >= 1.9.0 Requires: pygtk2 Requires: pygtk2-libglade %{?fedora:Requires: pygobject2} @@ -78,11 +84,14 @@ DTD files, subtitles, and other formats. %prep -%setup -q +# Final release setup +#%setup -q +# Snapshot setup +%setup -q -n %{name}-%{version}-%{subrelease} %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 +%patch2 -p1 -b .no_depcheck +%patch3 -p1 -b .no_profiling %build %{__python} setup.py build @@ -94,6 +103,8 @@ do msgfmt $po --output-file=locale/$(basename $po .po)/LC_MESSAGES/%{name}.mo done popd +# Remove leading space to try optimise IO in loading +sed -ir "s/^\s*?//" share/virtaal/virtaal.glade %install @@ -169,12 +180,33 @@ rm -rf %{buildroot} %changelog +* Wed Apr 20 2011 Dwayne Bailey - 0.7.0-0.6.beta5 +- Disable profiling option - not useful in production +- Try to optimise glade by removing leading space +- Drop patch for rhbug #675623 - pt spell checking + +* Sun Apr 17 2011 Dwayne Bailey - 0.7.0-0.5.beta5 +- Update to 0.7.0 beta5 + * Mon Feb 07 2011 Fedora Release Engineering - 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 Jan 22 2011 Dwayne Bailey - 0.7.0-0.4.beta4 +- Patch no_depcheck - don't perform dependency checks + +* Thu Jan 20 2011 Dwayne Bailey - 0.7.0-0.3.beta4 +- Require translate-tools >= 1.9.0 + +* Thu Jan 20 2011 Dwayne Bailey - 0.7.0-0.2.beta4 +- Update to 0.7.0 beta4 + +* Tue Jan 11 2011 Dwayne Bailey - 0.7.0-0.1.beta3 +- Update to 0.7.0 beta3 +- Remove patch for bug 611751 + * Fri Jul 23 2010 Dwayne Bailey - 0.6.1-5 - Install .desktop in a RHEL/Fedora neutral way From bc9d251d1e6c1005fa31094550f1cb4f323a2152 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Sat, 16 Apr 2011 21:47:39 +0200 Subject: [PATCH 02/40] Add new patches to eliminate dependency checking and profiling --- virtaal-0.7.0b4-no_depcheck.patch | 12 ++++++++++++ virtaal-0.7.0b5-no_profiling.patch | 12 ++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 virtaal-0.7.0b4-no_depcheck.patch create mode 100644 virtaal-0.7.0b5-no_profiling.patch diff --git a/virtaal-0.7.0b4-no_depcheck.patch b/virtaal-0.7.0b4-no_depcheck.patch new file mode 100644 index 0000000..b336452 --- /dev/null +++ b/virtaal-0.7.0b4-no_depcheck.patch @@ -0,0 +1,12 @@ +diff -up virtaal-0.7.0-beta4/bin/virtaal.no_depcheck virtaal-0.7.0-beta4/bin/virtaal +--- virtaal-0.7.0-beta4/bin/virtaal.no_depcheck 2011-01-21 05:58:24.386273149 +0200 ++++ virtaal-0.7.0-beta4/bin/virtaal 2011-01-21 06:01:34.848651579 +0200 +@@ -28,7 +28,7 @@ if os_name == 'nt': + sys.stderr = open(filename_template % ('stderr'), 'w') + + # Let's check for dependencies before we do anything else +-if not getattr(sys, 'frozen', False): ++if False and not getattr(sys, 'frozen', False): + # We can't meaningfully report on these, and we build our own windows + # version, so let's leave this out for the benefit of startup time. + from virtaal.support import depcheck diff --git a/virtaal-0.7.0b5-no_profiling.patch b/virtaal-0.7.0b5-no_profiling.patch new file mode 100644 index 0000000..b8290a9 --- /dev/null +++ b/virtaal-0.7.0b5-no_profiling.patch @@ -0,0 +1,12 @@ +diff -up virtaal-0.7.0-beta5/bin/virtaal.no_profiling virtaal-0.7.0-beta5/bin/virtaal +--- virtaal-0.7.0-beta5/bin/virtaal.no_profiling 2011-04-16 16:35:18.339113496 +0200 ++++ virtaal-0.7.0-beta5/bin/virtaal 2011-04-16 16:35:30.304556713 +0200 +@@ -97,7 +97,7 @@ def main(argv): + help=_("enable debugging features")), + ] + # Profiling does not make sense in packaged versions. Set to True to disable profiling. +- packaged = False ++ packaged = True + if not packaged: + option_list.insert(0, make_option("-P", "--profile", action="store", + type="string", dest="profile", From 30b0834f88bbc3b51d3720fc1b96bc933028a6ff Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Sat, 16 Apr 2011 23:40:40 +0200 Subject: [PATCH 03/40] Fix profile disabling patch --- virtaal-0.7.0b5-no_profiling.patch | 13 +++++++++++-- virtaal.spec | 5 ++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/virtaal-0.7.0b5-no_profiling.patch b/virtaal-0.7.0b5-no_profiling.patch index b8290a9..4a124fb 100644 --- a/virtaal-0.7.0b5-no_profiling.patch +++ b/virtaal-0.7.0b5-no_profiling.patch @@ -1,6 +1,6 @@ diff -up virtaal-0.7.0-beta5/bin/virtaal.no_profiling virtaal-0.7.0-beta5/bin/virtaal ---- virtaal-0.7.0-beta5/bin/virtaal.no_profiling 2011-04-16 16:35:18.339113496 +0200 -+++ virtaal-0.7.0-beta5/bin/virtaal 2011-04-16 16:35:30.304556713 +0200 +--- virtaal-0.7.0-beta5/bin/virtaal.no_profiling 2011-04-16 21:26:04.856307732 +0200 ++++ virtaal-0.7.0-beta5/bin/virtaal 2011-04-16 23:34:21.633609841 +0200 @@ -97,7 +97,7 @@ def main(argv): help=_("enable debugging features")), ] @@ -10,3 +10,12 @@ diff -up virtaal-0.7.0-beta5/bin/virtaal.no_profiling virtaal-0.7.0-beta5/bin/vi if not packaged: option_list.insert(0, make_option("-P", "--profile", action="store", type="string", dest="profile", +@@ -187,7 +187,7 @@ def main(argv): + pass + run_virtaal(startup_file) + +- if options and options.profile != None: ++ if options and getattr(options, "profile", False): + return profile_runner + else: + return default_runner diff --git a/virtaal.spec b/virtaal.spec index 80ace18..6f30796 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -5,7 +5,7 @@ Name: virtaal Version: 0.7.0 #Release: 1%{?dist} -Release: 0.6.%{subrelease}%{?dist} +Release: 0.7.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools @@ -180,6 +180,9 @@ rm -rf %{buildroot} %changelog +* Tue May 10 2011 Dwayne Bailey - 0.7.0-0.7.beta5 +- Fix profile disabling patch + * Wed Apr 20 2011 Dwayne Bailey - 0.7.0-0.6.beta5 - Disable profiling option - not useful in production - Try to optimise glade by removing leading space From 95ff5124553e2dae78e4b7138b18f773070fa4b8 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Tue, 10 May 2011 10:48:53 +0200 Subject: [PATCH 04/40] Add bug number --- virtaal.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 6f30796..72c67be 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -181,7 +181,7 @@ rm -rf %{buildroot} %changelog * Tue May 10 2011 Dwayne Bailey - 0.7.0-0.7.beta5 -- Fix profile disabling patch +- Fix profile disabling patch - bug #701224 * Wed Apr 20 2011 Dwayne Bailey - 0.7.0-0.6.beta5 - Disable profiling option - not useful in production From b56b378cab0d36dc1c26ee4a4ad2495d1c23c335 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Fri, 20 May 2011 10:39:48 +0200 Subject: [PATCH 05/40] Update to 0.7.0 rc1 Export .po files to .mo Updated translations Fix Google and Microsoft translator for some languages Some accessibility improvements Fix some drawing issues with native dialogues Fix threading --- .gitignore | 1 + sources | 1 + virtaal-0.7.0rc1-fix_threading.patch | 16 ++++++++++++++++ virtaal.spec | 15 +++++++++++++-- 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 virtaal-0.7.0rc1-fix_threading.patch diff --git a/.gitignore b/.gitignore index 491e051..f8a724f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ virtaal-0.6.1.tar.bz2 /virtaal-0.7.0-beta5.tar.bz2 +/virtaal-0.7.0-rc1.tar.bz2 diff --git a/sources b/sources index 8697686..b61bf95 100644 --- a/sources +++ b/sources @@ -1,2 +1,3 @@ 5a636e1b6302cba4244a017367953227 virtaal-0.6.1.tar.bz2 74d15c924adbb436525afe405542579e virtaal-0.7.0-beta5.tar.bz2 +2923a342b0d8e29a6f570f18cd4f7844 virtaal-0.7.0-rc1.tar.bz2 diff --git a/virtaal-0.7.0rc1-fix_threading.patch b/virtaal-0.7.0rc1-fix_threading.patch new file mode 100644 index 0000000..6e1fc7e --- /dev/null +++ b/virtaal-0.7.0rc1-fix_threading.patch @@ -0,0 +1,16 @@ +diff -ur virtaal-0.7.0-rc1/virtaal/views/mainview.py virtaal-trunk/virtaal/views/mainview.py +--- virtaal-0.7.0-rc1/virtaal/views/mainview.py 2011-05-17 14:14:48.000000000 +0200 ++++ virtaal-trunk/virtaal/views/mainview.py 2011-05-20 09:36:51.262724515 +0200 +@@ -519,10 +521,9 @@ + if pan_app.settings.general['maximized']: + self.main_window.maximize() + self.main_window.show() +- gdk.threads_init() +- gdk.threads_enter() ++ from gobject import threads_init ++ threads_init() + gtk.main() +- gdk.threads_leave() + + def show_input_dialog(self, title='', message=''): + """Shows a simple dialog containing a text entry. diff --git a/virtaal.spec b/virtaal.spec index 72c67be..7d3524b 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -1,11 +1,11 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%global subrelease beta5 +%global subrelease rc1 Name: virtaal Version: 0.7.0 #Release: 1%{?dist} -Release: 0.7.%{subrelease}%{?dist} +Release: 0.8.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools @@ -21,6 +21,7 @@ Patch0: virtaal-0.5.0-setup_drop_MO_generation.patch Patch1: virtaal-0.3.0-autocorr_shared_location.patch Patch2: virtaal-0.7.0b4-no_depcheck.patch Patch3: virtaal-0.7.0b5-no_profiling.patch +Patch4: virtaal-0.7.0rc1-fix_threading.patch BuildArch: noarch BuildRequires: python @@ -92,6 +93,7 @@ DTD files, subtitles, and other formats. %patch1 -p1 -b .autocorr_shared_location %patch2 -p1 -b .no_depcheck %patch3 -p1 -b .no_profiling +%patch4 -p1 -b .fix_threading %build %{__python} setup.py build @@ -180,6 +182,15 @@ rm -rf %{buildroot} %changelog +* Fri May 20 2011 Dwayne Bailey - 0.7.0-0.8.rc1 +- Update to 0.7.0 rc1 + - Export .po files to .mo + - Updated translations + - Fix Google and Microsoft translator for some languages + - Some accessibility improvements + - Fix some drawing issues with native dialogues +- Fix threading + * Tue May 10 2011 Dwayne Bailey - 0.7.0-0.7.beta5 - Fix profile disabling patch - bug #701224 From a8f6b830f662a6002556a19f4f6266e6dd8e2d79 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Fri, 20 May 2011 15:25:36 +0200 Subject: [PATCH 06/40] Fix bug #633765 - wrap TinyTM Postgress errors --- ...g633765-wrap_tinytm_postgress_errors.patch | 29 +++++++++++++++++++ virtaal.spec | 7 ++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 virtaal-0.6.1-bug633765-wrap_tinytm_postgress_errors.patch diff --git a/virtaal-0.6.1-bug633765-wrap_tinytm_postgress_errors.patch b/virtaal-0.6.1-bug633765-wrap_tinytm_postgress_errors.patch new file mode 100644 index 0000000..1904bde --- /dev/null +++ b/virtaal-0.6.1-bug633765-wrap_tinytm_postgress_errors.patch @@ -0,0 +1,29 @@ +--- 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.spec b/virtaal.spec index ee0aee5..43f04d8 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -15,6 +15,7 @@ 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 @@ -83,6 +84,7 @@ DTD files, subtitles, and other formats. %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 @@ -169,7 +171,10 @@ rm -rf %{buildroot} %changelog -* Mon Feb 07 2011 Fedora Release Engineering - 0.6.1-7 +* 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 From 099ebb676cfc3da1a30d977ef0c81f2abf3e20d8 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Fri, 20 May 2011 15:38:03 +0200 Subject: [PATCH 07/40] Forgot to bump build number --- virtaal.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 43f04d8..470ccc0 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -2,7 +2,7 @@ Name: virtaal Version: 0.6.1 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Localization and translation editor Group: Development/Tools From 6ce90898193910e8d73df7bf28481b832374bf9d Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Sat, 28 May 2011 10:43:48 +0200 Subject: [PATCH 08/40] Update to 0.7.0 rc2 Virtaal hanging when inserting placeable - Virtaal bug 1930 Improved visual contrast and theme compliance in the diffing colours. Virtaal bug 1934 Updated translations Drop threading patch --- .gitignore | 1 + sources | 1 + virtaal-0.7.0rc1-fix_threading.patch | 16 ---------------- virtaal.spec | 13 +++++++++---- 4 files changed, 11 insertions(+), 20 deletions(-) delete mode 100644 virtaal-0.7.0rc1-fix_threading.patch diff --git a/.gitignore b/.gitignore index f8a724f..f4c9f0b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ virtaal-0.6.1.tar.bz2 /virtaal-0.7.0-beta5.tar.bz2 /virtaal-0.7.0-rc1.tar.bz2 +/virtaal-0.7.0-rc2.tar.bz2 diff --git a/sources b/sources index b61bf95..3b91f25 100644 --- a/sources +++ b/sources @@ -1,3 +1,4 @@ 5a636e1b6302cba4244a017367953227 virtaal-0.6.1.tar.bz2 74d15c924adbb436525afe405542579e virtaal-0.7.0-beta5.tar.bz2 2923a342b0d8e29a6f570f18cd4f7844 virtaal-0.7.0-rc1.tar.bz2 +2a969ebdd27a4f98de7dd4c33c15dd58 virtaal-0.7.0-rc2.tar.bz2 diff --git a/virtaal-0.7.0rc1-fix_threading.patch b/virtaal-0.7.0rc1-fix_threading.patch deleted file mode 100644 index 6e1fc7e..0000000 --- a/virtaal-0.7.0rc1-fix_threading.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -ur virtaal-0.7.0-rc1/virtaal/views/mainview.py virtaal-trunk/virtaal/views/mainview.py ---- virtaal-0.7.0-rc1/virtaal/views/mainview.py 2011-05-17 14:14:48.000000000 +0200 -+++ virtaal-trunk/virtaal/views/mainview.py 2011-05-20 09:36:51.262724515 +0200 -@@ -519,10 +521,9 @@ - if pan_app.settings.general['maximized']: - self.main_window.maximize() - self.main_window.show() -- gdk.threads_init() -- gdk.threads_enter() -+ from gobject import threads_init -+ threads_init() - gtk.main() -- gdk.threads_leave() - - def show_input_dialog(self, title='', message=''): - """Shows a simple dialog containing a text entry. diff --git a/virtaal.spec b/virtaal.spec index 7d3524b..fc4e57b 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -1,11 +1,11 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%global subrelease rc1 +%global subrelease rc2 Name: virtaal Version: 0.7.0 #Release: 1%{?dist} -Release: 0.8.%{subrelease}%{?dist} +Release: 0.9.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools @@ -21,7 +21,6 @@ Patch0: virtaal-0.5.0-setup_drop_MO_generation.patch Patch1: virtaal-0.3.0-autocorr_shared_location.patch Patch2: virtaal-0.7.0b4-no_depcheck.patch Patch3: virtaal-0.7.0b5-no_profiling.patch -Patch4: virtaal-0.7.0rc1-fix_threading.patch BuildArch: noarch BuildRequires: python @@ -93,7 +92,6 @@ DTD files, subtitles, and other formats. %patch1 -p1 -b .autocorr_shared_location %patch2 -p1 -b .no_depcheck %patch3 -p1 -b .no_profiling -%patch4 -p1 -b .fix_threading %build %{__python} setup.py build @@ -182,6 +180,13 @@ rm -rf %{buildroot} %changelog +* Sat May 28 2011 Dwayne Bailey - 0.7.0-0.9.rc2 +- Update to 0.7.0 rc2 + - Virtaal hanging when inserting placeable - Virtaal bug 1930 + - Improved visual contrast and theme compliance in the diffing colours. Virtaal bug 1934 + - Updated translations +- Drop threading patch + * Fri May 20 2011 Dwayne Bailey - 0.7.0-0.8.rc1 - Update to 0.7.0 rc1 - Export .po files to .mo From 24f48ff44e986f1acd3b65a228e932182a3471fa Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Fri, 3 Jun 2011 09:12:06 +0200 Subject: [PATCH 09/40] Update to 0.7.0 final Patches: remove no_depcheck, no_profiling. Add packaged --- .gitignore | 1 + sources | 5 +---- virtaal-0.7.0-packaged.patch | 16 ++++++++++++++++ virtaal-0.7.0b4-no_depcheck.patch | 12 ------------ virtaal-0.7.0b5-no_profiling.patch | 21 --------------------- virtaal.spec | 22 ++++++++++++---------- 6 files changed, 30 insertions(+), 47 deletions(-) create mode 100644 virtaal-0.7.0-packaged.patch delete mode 100644 virtaal-0.7.0b4-no_depcheck.patch delete mode 100644 virtaal-0.7.0b5-no_profiling.patch diff --git a/.gitignore b/.gitignore index f4c9f0b..6e8eaad 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ virtaal-0.6.1.tar.bz2 /virtaal-0.7.0-beta5.tar.bz2 /virtaal-0.7.0-rc1.tar.bz2 /virtaal-0.7.0-rc2.tar.bz2 +/virtaal-0.7.0.tar.bz2 diff --git a/sources b/sources index 3b91f25..633f39c 100644 --- a/sources +++ b/sources @@ -1,4 +1 @@ -5a636e1b6302cba4244a017367953227 virtaal-0.6.1.tar.bz2 -74d15c924adbb436525afe405542579e virtaal-0.7.0-beta5.tar.bz2 -2923a342b0d8e29a6f570f18cd4f7844 virtaal-0.7.0-rc1.tar.bz2 -2a969ebdd27a4f98de7dd4c33c15dd58 virtaal-0.7.0-rc2.tar.bz2 +f1da3f8677b1c70b30564c889fd62652 virtaal-0.7.0.tar.bz2 diff --git a/virtaal-0.7.0-packaged.patch b/virtaal-0.7.0-packaged.patch new file mode 100644 index 0000000..113c023 --- /dev/null +++ b/virtaal-0.7.0-packaged.patch @@ -0,0 +1,16 @@ +diff -up virtaal-0.7.0/bin/virtaal.no_depcheck virtaal-0.7.0/bin/virtaal +--- virtaal-0.7.0/bin/virtaal.no_depcheck 2011-05-28 12:08:39.000000000 +0200 ++++ virtaal-0.7.0/bin/virtaal 2011-06-03 09:01:58.394348022 +0200 +@@ -28,10 +28,10 @@ if os_name == 'nt': + sys.stderr = open(filename_template % ('stderr'), 'w') + + # Some behaviour should vary, depending on whether Virtaal is packaged or not +-packaged = getattr(sys, 'frozen', False) ++#packaged = getattr(sys, 'frozen', False) + # Distributions can just set this value to True, if dependencies are taken care + # of elsewhere: +-#packaged = True ++packaged = True + + # Let's check for dependencies before we do anything else + if not packaged: diff --git a/virtaal-0.7.0b4-no_depcheck.patch b/virtaal-0.7.0b4-no_depcheck.patch deleted file mode 100644 index b336452..0000000 --- a/virtaal-0.7.0b4-no_depcheck.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -up virtaal-0.7.0-beta4/bin/virtaal.no_depcheck virtaal-0.7.0-beta4/bin/virtaal ---- virtaal-0.7.0-beta4/bin/virtaal.no_depcheck 2011-01-21 05:58:24.386273149 +0200 -+++ virtaal-0.7.0-beta4/bin/virtaal 2011-01-21 06:01:34.848651579 +0200 -@@ -28,7 +28,7 @@ if os_name == 'nt': - sys.stderr = open(filename_template % ('stderr'), 'w') - - # Let's check for dependencies before we do anything else --if not getattr(sys, 'frozen', False): -+if False and not getattr(sys, 'frozen', False): - # We can't meaningfully report on these, and we build our own windows - # version, so let's leave this out for the benefit of startup time. - from virtaal.support import depcheck diff --git a/virtaal-0.7.0b5-no_profiling.patch b/virtaal-0.7.0b5-no_profiling.patch deleted file mode 100644 index 4a124fb..0000000 --- a/virtaal-0.7.0b5-no_profiling.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -up virtaal-0.7.0-beta5/bin/virtaal.no_profiling virtaal-0.7.0-beta5/bin/virtaal ---- virtaal-0.7.0-beta5/bin/virtaal.no_profiling 2011-04-16 21:26:04.856307732 +0200 -+++ virtaal-0.7.0-beta5/bin/virtaal 2011-04-16 23:34:21.633609841 +0200 -@@ -97,7 +97,7 @@ def main(argv): - help=_("enable debugging features")), - ] - # Profiling does not make sense in packaged versions. Set to True to disable profiling. -- packaged = False -+ packaged = True - if not packaged: - option_list.insert(0, make_option("-P", "--profile", action="store", - type="string", dest="profile", -@@ -187,7 +187,7 @@ def main(argv): - pass - run_virtaal(startup_file) - -- if options and options.profile != None: -+ if options and getattr(options, "profile", False): - return profile_runner - else: - return default_runner diff --git a/virtaal.spec b/virtaal.spec index fc4e57b..debd937 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,23 +4,22 @@ Name: virtaal Version: 0.7.0 -#Release: 1%{?dist} -Release: 0.9.%{subrelease}%{?dist} +Release: 1%{?dist} +#Release: 0.9.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools License: GPLv2+ URL: http://translate.sourceforge.net/wiki/virtaal/index # Final releases are found at this URL -#Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 +Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 # Snapshot releases are found at this URL -Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.tar.bz2 +#Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.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.7.0b4-no_depcheck.patch -Patch3: virtaal-0.7.0b5-no_profiling.patch +Patch2: virtaal-0.7.0-packaged.patch BuildArch: noarch BuildRequires: python @@ -85,13 +84,12 @@ DTD files, subtitles, and other formats. %prep # Final release setup -#%setup -q +%setup -q # Snapshot setup -%setup -q -n %{name}-%{version}-%{subrelease} +#%setup -q -n %{name}-%{version}-%{subrelease} %patch0 -p1 -b .setup_drop_MO_generation %patch1 -p1 -b .autocorr_shared_location -%patch2 -p1 -b .no_depcheck -%patch3 -p1 -b .no_profiling +%patch2 -p1 -b .packaged %build %{__python} setup.py build @@ -180,6 +178,10 @@ rm -rf %{buildroot} %changelog +* Fri Jun 3 2011 Dwayne Bailey - 0.7.0-1 +- Update to 0.7.0 final +- Patches: remove no_depcheck, no_profiling. Add packaged + * Sat May 28 2011 Dwayne Bailey - 0.7.0-0.9.rc2 - Update to 0.7.0 rc2 - Virtaal hanging when inserting placeable - Virtaal bug 1930 From 470d54bfe2f05a88930805d839103a93c9a6ea4b Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Fri, 22 Jul 2011 13:50:49 +0200 Subject: [PATCH 10/40] Update to 0.7.1 beta1 Updated translations, including Faroese and Portuguese Support for Drag and Drop into the Virtaal window (bug 1955) Search highlighting sometimes incorrect (bug 1944) Some improvements towards fixing bug 1789 (also search highlighting) Small performance improvements, especially in search. Better XML tags test (bug 1971) Corrected plural form for Scottish Gaelic Update patch: setup_drop_MO_generation --- .gitignore | 1 + sources | 2 +- virtaal.spec | 29 ++++++++++++++++++++--------- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 6e8eaad..b305bd8 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ virtaal-0.6.1.tar.bz2 /virtaal-0.7.0-rc1.tar.bz2 /virtaal-0.7.0-rc2.tar.bz2 /virtaal-0.7.0.tar.bz2 +/virtaal-0.7.1-beta1.tar.bz2 diff --git a/sources b/sources index 633f39c..eb623cf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -f1da3f8677b1c70b30564c889fd62652 virtaal-0.7.0.tar.bz2 +c7b5085b40fe9a411d89b03c81fc556e virtaal-0.7.1-beta1.tar.bz2 diff --git a/virtaal.spec b/virtaal.spec index debd937..c4e1b51 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -1,23 +1,23 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%global subrelease rc2 +%global subrelease beta1 Name: virtaal -Version: 0.7.0 -Release: 1%{?dist} -#Release: 0.9.%{subrelease}%{?dist} +Version: 0.7.1 +#Release: 1%{?dist} +Release: 0.1.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools License: GPLv2+ URL: http://translate.sourceforge.net/wiki/virtaal/index # Final releases are found at this URL -Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 +#Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 # Snapshot releases are found at this URL -#Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.tar.bz2 +Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Patch0: virtaal-0.5.0-setup_drop_MO_generation.patch +Patch0: virtaal-0.7.1-setup_drop_MO_generation.patch Patch1: virtaal-0.3.0-autocorr_shared_location.patch Patch2: virtaal-0.7.0-packaged.patch @@ -84,9 +84,9 @@ DTD files, subtitles, and other formats. %prep # Final release setup -%setup -q +#%setup -q # Snapshot setup -#%setup -q -n %{name}-%{version}-%{subrelease} +%setup -q -n %{name}-%{version}-%{subrelease} %patch0 -p1 -b .setup_drop_MO_generation %patch1 -p1 -b .autocorr_shared_location %patch2 -p1 -b .packaged @@ -178,6 +178,17 @@ rm -rf %{buildroot} %changelog +* Fri Jul 22 2011 Dwayne Bailey - 0.7.1-0.1.beta1 +- Update to 0.7.1 beta1 + - Updated translations, including Faroese and Portuguese + - Support for Drag and Drop into the Virtaal window (bug 1955) + - Search highlighting sometimes incorrect (bug 1944) + - Some improvements towards fixing bug 1789 (also search highlighting) + - Small performance improvements, especially in search. + - Better XML tags test (bug 1971) + - Corrected plural form for Scottish Gaelic +- Update patch: setup_drop_MO_generation + * Fri Jun 3 2011 Dwayne Bailey - 0.7.0-1 - Update to 0.7.0 final - Patches: remove no_depcheck, no_profiling. Add packaged From eb5ca5183eecbcc6546a81cc0c5ca66d27f3411d Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Fri, 22 Jul 2011 13:56:24 +0200 Subject: [PATCH 11/40] Forgotten patches --- ...rtaal-0.7.1-setup_drop_MO_generation.patch | 29 ++++++++----------- 1 file changed, 12 insertions(+), 17 deletions(-) rename virtaal-0.5.0-setup_drop_MO_generation.patch => virtaal-0.7.1-setup_drop_MO_generation.patch (50%) diff --git a/virtaal-0.5.0-setup_drop_MO_generation.patch b/virtaal-0.7.1-setup_drop_MO_generation.patch similarity index 50% rename from virtaal-0.5.0-setup_drop_MO_generation.patch rename to virtaal-0.7.1-setup_drop_MO_generation.patch index 2702805..aa30874 100644 --- a/virtaal-0.5.0-setup_drop_MO_generation.patch +++ b/virtaal-0.7.1-setup_drop_MO_generation.patch @@ -1,16 +1,12 @@ -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 +--- virtaal-0.7.1-beta1/setup.py.setup_drop_MO_generation 2011-06-08 21:56:39.000000000 +0200 ++++ virtaal-0.7.1-beta1/setup.py 2011-07-22 13:24:51.776594250 +0200 +@@ -64,19 +64,6 @@ + from translate.tools.pocompile import convertmo + mo_files = [] --# 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' +-for lang in open(path.join('po', 'LINGUAS')): +- lang = lang.rstrip() +- po_filename = path.join('po', lang+'.po') - mo_filename = path.join('mo', lang, 'virtaal.mo') - - if not path.exists(path.join('mo', lang)): @@ -21,11 +17,10 @@ diff -up virtaal-0.5.0-rc1/setup.py.setup_drop_MO_generation virtaal-0.5.0-rc1/s - 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 = { + + # Build lite files as needed on Win32 and OS X + if os.name == 'nt' or sys.platform == 'darwin': +@@ -101,7 +88,7 @@ (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", "*.*"))), From 6111129d80fac0bc244a35b58fc5b7a8c5c23568 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Fri, 22 Jul 2011 14:17:43 +0200 Subject: [PATCH 12/40] Remove more MO code --- virtaal-0.7.1-setup_drop_MO_generation.patch | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/virtaal-0.7.1-setup_drop_MO_generation.patch b/virtaal-0.7.1-setup_drop_MO_generation.patch index aa30874..89a74a8 100644 --- a/virtaal-0.7.1-setup_drop_MO_generation.patch +++ b/virtaal-0.7.1-setup_drop_MO_generation.patch @@ -1,9 +1,13 @@ --- virtaal-0.7.1-beta1/setup.py.setup_drop_MO_generation 2011-06-08 21:56:39.000000000 +0200 -+++ virtaal-0.7.1-beta1/setup.py 2011-07-22 13:24:51.776594250 +0200 -@@ -64,19 +64,6 @@ - from translate.tools.pocompile import convertmo - mo_files = [] ++++ virtaal-0.7.1-beta1/setup.py 2011-07-22 14:08:04.410692035 +0200 +@@ -60,24 +60,6 @@ + ] + #TODO: add Natural Language classifiers +-# Compile .mo files from available .po files +-from translate.tools.pocompile import convertmo +-mo_files = [] +- -for lang in open(path.join('po', 'LINGUAS')): - lang = lang.rstrip() - po_filename = path.join('po', lang+'.po') @@ -17,10 +21,11 @@ - mo_files.append( - ( path.join(TARGET_DATA_DIR, 'locale', lang, 'LC_MESSAGES'), [mo_filename]) - ) - +- # Build lite files as needed on Win32 and OS X if os.name == 'nt' or sys.platform == 'darwin': -@@ -101,7 +88,7 @@ + for lang in open(path.join('po', 'LINGUAS-lite')): +@@ -101,7 +83,7 @@ (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", "*.*"))), From 650ad45c9f36d8eccf8b1d214e41b3fdd9fb0a35 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Wed, 28 Sep 2011 10:21:30 +0200 Subject: [PATCH 13/40] =?UTF-8?q?Update=20to=200.7.1=20rc1=20Bug=20fixes,?= =?UTF-8?q?=20translations,=20performance=20New=20Greek=20translation=20[D?= =?UTF-8?q?imitris=20Spingos]=20Reduce=20memory=20use=20Improved=20startup?= =?UTF-8?q?=20time=20Support=20for=20non-ASCII=20installation=20paths=20Su?= =?UTF-8?q?pport=20for=20non-ASCII=20usernames=20(bug=202000)=20[reported?= =?UTF-8?q?=20by=20Zbyn=C4=9Bk=20Schwarz]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + sources | 2 +- virtaal.spec | 12 ++++++++++-- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index b305bd8..5f15a61 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ virtaal-0.6.1.tar.bz2 /virtaal-0.7.0-rc2.tar.bz2 /virtaal-0.7.0.tar.bz2 /virtaal-0.7.1-beta1.tar.bz2 +/virtaal-0.7.1-rc1.tar.bz2 diff --git a/sources b/sources index eb623cf..c012a04 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c7b5085b40fe9a411d89b03c81fc556e virtaal-0.7.1-beta1.tar.bz2 +b725f0cb99a496f8144f7ef575999c3a virtaal-0.7.1-rc1.tar.bz2 diff --git a/virtaal.spec b/virtaal.spec index c4e1b51..b805b07 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -1,11 +1,11 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%global subrelease beta1 +%global subrelease rc1 Name: virtaal Version: 0.7.1 #Release: 1%{?dist} -Release: 0.1.%{subrelease}%{?dist} +Release: 0.2.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools @@ -178,6 +178,14 @@ rm -rf %{buildroot} %changelog +* Mon Sep 26 2011 Dwayne Bailey - 0.7.1-0.2.rc1 +- Update to 0.7.1 rc1 + - New Greek translation [Dimitris Spingos] + - Reduce memory use + - Improved startup time + - Support for non-ASCII installation paths + - Support for non-ASCII usernames (bug 2000) [reported by Zbyněk Schwarz] + * Fri Jul 22 2011 Dwayne Bailey - 0.7.1-0.1.beta1 - Update to 0.7.1 beta1 - Updated translations, including Faroese and Portuguese From 3d97e391f308f4259e57c6777bbb45780dc55adb Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Wed, 28 Sep 2011 11:15:59 +0200 Subject: [PATCH 14/40] Only install languages from the LINGUAS file Patch: install Greek --- virtaal-0.7.1-rc1-add_greek.patch | 10 ++++++++++ virtaal.spec | 14 ++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 virtaal-0.7.1-rc1-add_greek.patch diff --git a/virtaal-0.7.1-rc1-add_greek.patch b/virtaal-0.7.1-rc1-add_greek.patch new file mode 100644 index 0000000..711a9ac --- /dev/null +++ b/virtaal-0.7.1-rc1-add_greek.patch @@ -0,0 +1,10 @@ +--- virtaal-0.7.1-rc1/po/LINGUAS.add_greek 2011-09-28 11:07:16.680094720 +0200 ++++ virtaal-0.7.1-rc1/po/LINGUAS 2011-09-28 11:06:36.184810274 +0200 +@@ -11,6 +11,7 @@ + cgg + da + de ++el + en_GB + en_ZA + es diff --git a/virtaal.spec b/virtaal.spec index b805b07..332454b 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -5,7 +5,7 @@ Name: virtaal Version: 0.7.1 #Release: 1%{?dist} -Release: 0.2.%{subrelease}%{?dist} +Release: 0.3.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools @@ -20,6 +20,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: virtaal-0.7.1-setup_drop_MO_generation.patch Patch1: virtaal-0.3.0-autocorr_shared_location.patch Patch2: virtaal-0.7.0-packaged.patch +Patch3: virtaal-0.7.1-rc1-add_greek.patch BuildArch: noarch BuildRequires: python @@ -90,15 +91,16 @@ DTD files, subtitles, and other formats. %patch0 -p1 -b .setup_drop_MO_generation %patch1 -p1 -b .autocorr_shared_location %patch2 -p1 -b .packaged +%patch3 -p1 -b .add_greek %build %{__python} setup.py build ./maketranslations %{name} pushd po -for po in $(ls *.po | egrep -v de_DE) +egrep -v "^#" LINGUAS | while read lang do - mkdir -p locale/$(basename $po .po)/LC_MESSAGES/ - msgfmt $po --output-file=locale/$(basename $po .po)/LC_MESSAGES/%{name}.mo + mkdir -p locale/$lang/LC_MESSAGES/ + msgfmt ${lang}.po --output-file=locale/$lang/LC_MESSAGES/%{name}.mo done popd # Remove leading space to try optimise IO in loading @@ -178,6 +180,10 @@ rm -rf %{buildroot} %changelog +* Wed Sep 28 2011 Dwayne Bailey - 0.7.1-0.3.rc1 +- Only install languages from the LINGUAS file +- Patch: install Greek + * Mon Sep 26 2011 Dwayne Bailey - 0.7.1-0.2.rc1 - Update to 0.7.1 rc1 - New Greek translation [Dimitris Spingos] From 91943b35b509a6a6ac0157cdc85b1335065f0931 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Sat, 1 Oct 2011 17:13:56 +0200 Subject: [PATCH 15/40] Use official 0.7.1 rc1 tarball Patch: drop Greek --- sources | 2 +- virtaal-0.7.1-rc1-add_greek.patch | 10 ---------- virtaal.spec | 8 +++++--- 3 files changed, 6 insertions(+), 14 deletions(-) delete mode 100644 virtaal-0.7.1-rc1-add_greek.patch diff --git a/sources b/sources index c012a04..93fd1c0 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b725f0cb99a496f8144f7ef575999c3a virtaal-0.7.1-rc1.tar.bz2 +b653bc9ef9176320ed666f5e63d87538 virtaal-0.7.1-rc1.tar.bz2 diff --git a/virtaal-0.7.1-rc1-add_greek.patch b/virtaal-0.7.1-rc1-add_greek.patch deleted file mode 100644 index 711a9ac..0000000 --- a/virtaal-0.7.1-rc1-add_greek.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- virtaal-0.7.1-rc1/po/LINGUAS.add_greek 2011-09-28 11:07:16.680094720 +0200 -+++ virtaal-0.7.1-rc1/po/LINGUAS 2011-09-28 11:06:36.184810274 +0200 -@@ -11,6 +11,7 @@ - cgg - da - de -+el - en_GB - en_ZA - es diff --git a/virtaal.spec b/virtaal.spec index 332454b..ff34a51 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -5,7 +5,7 @@ Name: virtaal Version: 0.7.1 #Release: 1%{?dist} -Release: 0.3.%{subrelease}%{?dist} +Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools @@ -20,7 +20,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: virtaal-0.7.1-setup_drop_MO_generation.patch Patch1: virtaal-0.3.0-autocorr_shared_location.patch Patch2: virtaal-0.7.0-packaged.patch -Patch3: virtaal-0.7.1-rc1-add_greek.patch BuildArch: noarch BuildRequires: python @@ -91,7 +90,6 @@ DTD files, subtitles, and other formats. %patch0 -p1 -b .setup_drop_MO_generation %patch1 -p1 -b .autocorr_shared_location %patch2 -p1 -b .packaged -%patch3 -p1 -b .add_greek %build %{__python} setup.py build @@ -180,6 +178,10 @@ rm -rf %{buildroot} %changelog +* Sat Oct 1 2011 Dwayne Bailey - 0.7.1-0.4.rc1 +- Use official 0.7.1 rc1 tarball +- Patch: drop Greek + * Wed Sep 28 2011 Dwayne Bailey - 0.7.1-0.3.rc1 - Only install languages from the LINGUAS file - Patch: install Greek From b24eed5a6e0628cf738343a8e65e22a04b0e9d34 Mon Sep 17 00:00:00 2001 From: Dwayne Bailey Date: Mon, 9 Jan 2012 18:38:34 +0200 Subject: [PATCH 16/40] =?UTF-8?q?New=20and=20updated=20translations=20Supp?= =?UTF-8?q?ort=20for=20Drag=20and=20Drop=20into=20the=20Virtaal=20window?= =?UTF-8?q?=20(bug=201955)=20Improvements=20to=20the=20Moses=20machine=20t?= =?UTF-8?q?ranslation=20plugin=20Search=20highlighting=20sometimes=20incor?= =?UTF-8?q?rect=20(bug=201944)=20Some=20improvements=20towards=20fixing=20?= =?UTF-8?q?bug=201789=20(also=20search=20highlighting)=20Some=20performanc?= =?UTF-8?q?e=20improvements=20(search=20and=20startup=20time)=20Reduced=20?= =?UTF-8?q?memory=20use=20in=20long=20sessions=20Support=20for=20non-ASCII?= =?UTF-8?q?=20installation=20paths=20Support=20for=20non-ASCII=20usernames?= =?UTF-8?q?=20(bug=202000)=20[reported=20by=20Zbyn=C4=9Bk=20Schwarz]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + sources | 2 +- virtaal.spec | 26 +++++++++++++++++++------- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 5f15a61..f91a465 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ virtaal-0.6.1.tar.bz2 /virtaal-0.7.0.tar.bz2 /virtaal-0.7.1-beta1.tar.bz2 /virtaal-0.7.1-rc1.tar.bz2 +/virtaal-0.7.1.tar.bz2 diff --git a/sources b/sources index 93fd1c0..8c735ff 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -b653bc9ef9176320ed666f5e63d87538 virtaal-0.7.1-rc1.tar.bz2 +e931c5b477da4bb44e00c24c2247a1ad virtaal-0.7.1.tar.bz2 diff --git a/virtaal.spec b/virtaal.spec index ff34a51..f7366cf 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -1,20 +1,20 @@ %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%global subrelease rc1 +#%global subrelease rc1 Name: virtaal Version: 0.7.1 -#Release: 1%{?dist} -Release: 0.4.%{subrelease}%{?dist} +Release: 1%{?dist} +#Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor Group: Development/Tools License: GPLv2+ URL: http://translate.sourceforge.net/wiki/virtaal/index # Final releases are found at this URL -#Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 +Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 # Snapshot releases are found at this URL -Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.tar.bz2 +#Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: virtaal-0.7.1-setup_drop_MO_generation.patch @@ -84,9 +84,9 @@ DTD files, subtitles, and other formats. %prep # Final release setup -#%setup -q +%setup -q # Snapshot setup -%setup -q -n %{name}-%{version}-%{subrelease} +#%setup -q -n %{name}-%{version}-%{subrelease} %patch0 -p1 -b .setup_drop_MO_generation %patch1 -p1 -b .autocorr_shared_location %patch2 -p1 -b .packaged @@ -178,6 +178,18 @@ rm -rf %{buildroot} %changelog +* Mon Jan 9 2012 Dwayne Bailey - 0.7.1 +* Update to 0.7.1 final + - New and updated translations + - Support for Drag and Drop into the Virtaal window (bug 1955) + - Improvements to the Moses machine translation plugin + - Search highlighting sometimes incorrect (bug 1944) + - Some improvements towards fixing bug 1789 (also search highlighting) + - Some performance improvements (search and startup time) + - Reduced memory use in long sessions + - Support for non-ASCII installation paths + - Support for non-ASCII usernames (bug 2000) [reported by Zbyněk Schwarz] + * Sat Oct 1 2011 Dwayne Bailey - 0.7.1-0.4.rc1 - Use official 0.7.1 rc1 tarball - Patch: drop Greek From 622ef00d8f6556052fae3cbad69262b2a0ff41e4 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 21 Jul 2012 21:51:32 -0500 Subject: [PATCH 17/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index f7366cf..1db9570 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 1%{?dist} +Release: 2%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -178,6 +178,9 @@ rm -rf %{buildroot} %changelog +* Sun Jul 22 2012 Fedora Release Engineering - 0.7.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Mon Jan 9 2012 Dwayne Bailey - 0.7.1 * Update to 0.7.1 final - New and updated translations From ff49ff9a55cb7db89d7f522bfcef9a4bc44ab519 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 14 Feb 2013 20:50:57 -0600 Subject: [PATCH 18/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 1db9570..0429099 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 2%{?dist} +Release: 3%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -178,6 +178,9 @@ rm -rf %{buildroot} %changelog +* Fri Feb 15 2013 Fedora Release Engineering - 0.7.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Sun Jul 22 2012 Fedora Release Engineering - 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild From 9d49e79256955ae6df9f9d770a46ad6c92f76410 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sun, 4 Aug 2013 01:19:33 -0500 Subject: [PATCH 19/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 0429099..21c72d4 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 3%{?dist} +Release: 4%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -178,6 +178,9 @@ rm -rf %{buildroot} %changelog +* Sun Aug 04 2013 Fedora Release Engineering - 0.7.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Fri Feb 15 2013 Fedora Release Engineering - 0.7.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild From 36b538d62f8612ee63ac03f887f27053a4a6ff3b Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 22:50:26 -0500 Subject: [PATCH 20/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 21c72d4..0d1e7f4 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 4%{?dist} +Release: 5%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -178,6 +178,9 @@ rm -rf %{buildroot} %changelog +* Sun Jun 08 2014 Fedora Release Engineering - 0.7.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Sun Aug 04 2013 Fedora Release Engineering - 0.7.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From c50bc80e55f5db923752881bebdea48bee445550 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Thu, 2 Oct 2014 18:02:29 -0500 Subject: [PATCH 21/40] update mime scriptlets --- virtaal.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/virtaal.spec b/virtaal.spec index 0d1e7f4..6932fc6 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 5%{?dist} +Release: 6%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -143,21 +143,23 @@ popd %post update-desktop-database &> /dev/null || : -update-mime-database %{_datadir}/mime &> /dev/null || : touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : +touch --no-create %{_datadir}/mime/packages &> /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 || : + touch --no-create %{_datadir}/mime/packages &> /dev/null || : + update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : +update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : %clean @@ -178,6 +180,9 @@ rm -rf %{buildroot} %changelog +* Thu Oct 02 2014 Rex Dieter 0.7.1-6 +- update mime scriptlets + * Sun Jun 08 2014 Fedora Release Engineering - 0.7.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild From dec24f0af6058e162707fbb98a8d51c435f5cbb3 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Fri, 19 Jun 2015 02:04:33 +0000 Subject: [PATCH 22/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 6932fc6..2623cfe 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 6%{?dist} +Release: 7%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -180,6 +180,9 @@ rm -rf %{buildroot} %changelog +* Fri Jun 19 2015 Fedora Release Engineering - 0.7.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Thu Oct 02 2014 Rex Dieter 0.7.1-6 - update mime scriptlets From 5f81abd0ad1b5ca954389e91ccb566fee7ac661a Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 5 Feb 2016 02:46:46 +0000 Subject: [PATCH 23/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 2623cfe..0b16d6f 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 7%{?dist} +Release: 8%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -180,6 +180,9 @@ rm -rf %{buildroot} %changelog +* Fri Feb 05 2016 Fedora Release Engineering - 0.7.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Fri Jun 19 2015 Fedora Release Engineering - 0.7.1-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From 25d3f5f4e7f650739308547c93b52752f53d18db Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 19 Jul 2016 13:07:31 +0000 Subject: [PATCH 24/40] - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 0b16d6f..6121968 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 8%{?dist} +Release: 9%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -180,6 +180,9 @@ rm -rf %{buildroot} %changelog +* Tue Jul 19 2016 Fedora Release Engineering - 0.7.1-9 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + * Fri Feb 05 2016 Fedora Release Engineering - 0.7.1-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild From decc7752c4d2bf1629ae71d687b368d26d735a59 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 11 Feb 2017 17:07:55 +0000 Subject: [PATCH 25/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 6121968..23bcff2 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 9%{?dist} +Release: 10%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -180,6 +180,9 @@ rm -rf %{buildroot} %changelog +* Sat Feb 11 2017 Fedora Release Engineering - 0.7.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + * Tue Jul 19 2016 Fedora Release Engineering - 0.7.1-9 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages From fdbd0175fcace7266e4031a72b312a2d1ffcd7bc Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 27 Jul 2017 21:22:08 +0000 Subject: [PATCH 26/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 23bcff2..1f0d1bb 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 10%{?dist} +Release: 11%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -180,6 +180,9 @@ rm -rf %{buildroot} %changelog +* Thu Jul 27 2017 Fedora Release Engineering - 0.7.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Sat Feb 11 2017 Fedora Release Engineering - 0.7.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild From 4f5ef8861a3cab62a1352968d4163aac3b73e166 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Thu, 18 Jan 2018 22:47:04 +0100 Subject: [PATCH 27/40] Remove obsolete scriptlets Signed-off-by: Igor Gnatenko --- virtaal.spec | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/virtaal.spec b/virtaal.spec index 1f0d1bb..612e7b2 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 11%{?dist} +Release: 12%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -140,28 +140,6 @@ pushd %{buildroot}%{_datadir}/icons/hicolor done popd - -%post -update-desktop-database &> /dev/null || : -touch --no-create %{_datadir}/icons/hicolor &> /dev/null || : -touch --no-create %{_datadir}/mime/packages &> /dev/null || : - - -%postun -update-desktop-database &> /dev/null || : -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - touch --no-create %{_datadir}/mime/packages &> /dev/null || : - update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : -fi - - -%posttrans -gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : -update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || : - - %clean rm -rf %{buildroot} @@ -180,6 +158,9 @@ rm -rf %{buildroot} %changelog +* Thu Jan 18 2018 Igor Gnatenko - 0.7.1-12 +- Remove obsolete scriptlets + * Thu Jul 27 2017 Fedora Release Engineering - 0.7.1-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 3fafc0b4d7a2df1a3647c1a723fd86a44b0ba2b5 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 9 Feb 2018 20:34:46 +0000 Subject: [PATCH 28/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 612e7b2..740a1da 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 12%{?dist} +Release: 13%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -158,6 +158,9 @@ rm -rf %{buildroot} %changelog +* Fri Feb 09 2018 Fedora Release Engineering - 0.7.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Thu Jan 18 2018 Igor Gnatenko - 0.7.1-12 - Remove obsolete scriptlets From 3a9cbda3c3b944bb47a9cbc1f6da592d1d8ca619 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 00:47:45 +0100 Subject: [PATCH 29/40] Remove BuildRoot definition None of currently supported distributions need that. It was needed last for EL5 which is EOL now Signed-off-by: Igor Gnatenko --- virtaal.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 740a1da..2da5669 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -15,7 +15,6 @@ URL: http://translate.sourceforge.net/wiki/virtaal/index Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 # Snapshot releases are found at this URL #Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.tar.bz2 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: virtaal-0.7.1-setup_drop_MO_generation.patch Patch1: virtaal-0.3.0-autocorr_shared_location.patch From 72deab1b8c0fadfbd5e7e0a37e5e86be48416e32 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 07:42:36 +0100 Subject: [PATCH 30/40] Remove %clean section None of currently supported distributions need that. Last one was EL5 which is EOL for a while. Signed-off-by: Igor Gnatenko --- virtaal.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/virtaal.spec b/virtaal.spec index 2da5669..a5a29f5 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -139,9 +139,6 @@ pushd %{buildroot}%{_datadir}/icons/hicolor done popd -%clean -rm -rf %{buildroot} - %files -f %{name}.lang %defattr(-,root,root,-) From 037bb9839f93815309dd26c149d11b6e46e40fc1 Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Wed, 28 Feb 2018 10:28:58 +0100 Subject: [PATCH 31/40] Update Python 2 dependency declarations to new packaging standards --- virtaal.spec | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/virtaal.spec b/virtaal.spec index a5a29f5..c53acf6 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 13%{?dist} +Release: 14%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -21,7 +21,7 @@ Patch1: virtaal-0.3.0-autocorr_shared_location.patch Patch2: virtaal-0.7.0-packaged.patch BuildArch: noarch -BuildRequires: python +BuildRequires: python2 %if 0%{?fedora} >= 14 BuildRequires: python2-devel %else @@ -34,24 +34,24 @@ Requires: translate-toolkit >= 1.9.0 Requires: pygtk2 Requires: pygtk2-libglade %{?fedora:Requires: pygobject2} -Requires: python-lxml +Requires: python2-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 +Requires: python2-Levenshtein # python-psycopg2 needed for TinyTM -Requires: python-psycopg2 +Requires: python2-psycopg2 # Virtaal speedup %ifarch %{ix86} %{?fedora:Requires: python-psyco} %endif # python-pycurl needed for open-tran.eu -Requires: python-pycurl +Requires: python2-pycurl # python-simplejson needed for google-translate and tmclient -Requires: python-simplejson +Requires: python2-simplejson Requires: xdg-utils @@ -154,6 +154,10 @@ popd %changelog +* Wed Feb 28 2018 Iryna Shcherbina - 0.7.1-14 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + * Fri Feb 09 2018 Fedora Release Engineering - 0.7.1-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild From a8e69286add704cc96e959742213b0b837982251 Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Tue, 10 Jul 2018 01:43:00 -0500 Subject: [PATCH 32/40] Remove needless use of %defattr --- virtaal.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index c53acf6..18e4490 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -141,7 +141,6 @@ popd %files -f %{name}.lang -%defattr(-,root,root,-) %doc README LICENSE po/*.pot %{_bindir}/* %{_datadir}/applications/* From d5f0f40b6e82e985692b3d904e8de71415f9fcae Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 14 Jul 2018 08:35:35 +0000 Subject: [PATCH 33/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 18e4490..38022d9 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 14%{?dist} +Release: 15%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -153,6 +153,9 @@ popd %changelog +* Sat Jul 14 2018 Fedora Release Engineering - 0.7.1-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Feb 28 2018 Iryna Shcherbina - 0.7.1-14 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) From 4b1d3717d884756fb473d6064d7ece7e34201c33 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 29 Jul 2018 23:11:20 +0200 Subject: [PATCH 34/40] =?UTF-8?q?%{python=5Fsitelib}=20=E2=86=92=20%{pytho?= =?UTF-8?q?n2=5Fsitelib}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Igor Gnatenko --- virtaal.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 38022d9..038e105 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -149,7 +149,7 @@ popd %{_datadir}/icons/hicolor/*/mimetypes/* %{_datadir}/icons/virtaal.* %exclude %{_datadir}/icons/x-translation.ico -%{python_sitelib}/* +%{python2_sitelib}/* %changelog From 44fefb473a14ab17176b77adf692d978eebb212f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 29 Jul 2018 23:25:15 +0200 Subject: [PATCH 35/40] Switch to %py2_build Signed-off-by: Igor Gnatenko --- virtaal.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 038e105..18920c9 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -91,7 +91,7 @@ DTD files, subtitles, and other formats. %patch2 -p1 -b .packaged %build -%{__python} setup.py build +%py2_build ./maketranslations %{name} pushd po egrep -v "^#" LINGUAS | while read lang From adf52932d20757183cb8082624e0212ac40dfc65 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 29 Jul 2018 23:39:11 +0200 Subject: [PATCH 36/40] =?UTF-8?q?python-devel=20=E2=86=92=20python2-devel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Igor Gnatenko --- virtaal.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 18920c9..b7b7253 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -25,7 +25,7 @@ BuildRequires: python2 %if 0%{?fedora} >= 14 BuildRequires: python2-devel %else -BuildRequires: python-devel +BuildRequires: python2-devel %endif BuildRequires: desktop-file-utils BuildRequires: gettext From b2ef2b5bee87e470817e6f3a61a28643c0cf7b2a Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:18:29 +0100 Subject: [PATCH 37/40] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- virtaal.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index b7b7253..47166dc 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -8,7 +8,6 @@ Release: 15%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor -Group: Development/Tools License: GPLv2+ URL: http://translate.sourceforge.net/wiki/virtaal/index # Final releases are found at this URL From 0d7d2f84c09ace99b3bc1b140416c1b04ea0a6ff Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sun, 3 Feb 2019 11:21:32 +0000 Subject: [PATCH 38/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index 47166dc..df53c15 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 15%{?dist} +Release: 16%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -152,6 +152,9 @@ popd %changelog +* Sun Feb 03 2019 Fedora Release Engineering - 0.7.1-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Sat Jul 14 2018 Fedora Release Engineering - 0.7.1-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From abac6cb4f2a73ed2fdeea66ce2fb9dc920f97387 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Sat, 27 Jul 2019 03:04:15 +0000 Subject: [PATCH 39/40] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- virtaal.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/virtaal.spec b/virtaal.spec index df53c15..3c57b1f 100644 --- a/virtaal.spec +++ b/virtaal.spec @@ -4,7 +4,7 @@ Name: virtaal Version: 0.7.1 -Release: 16%{?dist} +Release: 17%{?dist} #Release: 0.4.%{subrelease}%{?dist} Summary: Localization and translation editor @@ -152,6 +152,9 @@ popd %changelog +* Sat Jul 27 2019 Fedora Release Engineering - 0.7.1-17 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Sun Feb 03 2019 Fedora Release Engineering - 0.7.1-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From cb38f844ef5b9b549bd23fc6d609160213c9363b Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 8 Aug 2019 16:48:24 +0000 Subject: [PATCH 40/40] virtaal fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1676192 --- .gitignore | 8 - dead.package | 1 + sources | 1 - virtaal-0.3.0-autocorr_shared_location.patch | 12 - virtaal-0.7.0-packaged.patch | 16 - virtaal-0.7.1-setup_drop_MO_generation.patch | 36 -- virtaal.spec | 518 ------------------- 7 files changed, 1 insertion(+), 591 deletions(-) delete mode 100644 .gitignore create mode 100644 dead.package delete mode 100644 sources delete mode 100644 virtaal-0.3.0-autocorr_shared_location.patch delete mode 100644 virtaal-0.7.0-packaged.patch delete mode 100644 virtaal-0.7.1-setup_drop_MO_generation.patch delete mode 100644 virtaal.spec diff --git a/.gitignore b/.gitignore deleted file mode 100644 index f91a465..0000000 --- a/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -virtaal-0.6.1.tar.bz2 -/virtaal-0.7.0-beta5.tar.bz2 -/virtaal-0.7.0-rc1.tar.bz2 -/virtaal-0.7.0-rc2.tar.bz2 -/virtaal-0.7.0.tar.bz2 -/virtaal-0.7.1-beta1.tar.bz2 -/virtaal-0.7.1-rc1.tar.bz2 -/virtaal-0.7.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 8c735ff..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -e931c5b477da4bb44e00c24c2247a1ad virtaal-0.7.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.7.0-packaged.patch b/virtaal-0.7.0-packaged.patch deleted file mode 100644 index 113c023..0000000 --- a/virtaal-0.7.0-packaged.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff -up virtaal-0.7.0/bin/virtaal.no_depcheck virtaal-0.7.0/bin/virtaal ---- virtaal-0.7.0/bin/virtaal.no_depcheck 2011-05-28 12:08:39.000000000 +0200 -+++ virtaal-0.7.0/bin/virtaal 2011-06-03 09:01:58.394348022 +0200 -@@ -28,10 +28,10 @@ if os_name == 'nt': - sys.stderr = open(filename_template % ('stderr'), 'w') - - # Some behaviour should vary, depending on whether Virtaal is packaged or not --packaged = getattr(sys, 'frozen', False) -+#packaged = getattr(sys, 'frozen', False) - # Distributions can just set this value to True, if dependencies are taken care - # of elsewhere: --#packaged = True -+packaged = True - - # Let's check for dependencies before we do anything else - if not packaged: diff --git a/virtaal-0.7.1-setup_drop_MO_generation.patch b/virtaal-0.7.1-setup_drop_MO_generation.patch deleted file mode 100644 index 89a74a8..0000000 --- a/virtaal-0.7.1-setup_drop_MO_generation.patch +++ /dev/null @@ -1,36 +0,0 @@ ---- virtaal-0.7.1-beta1/setup.py.setup_drop_MO_generation 2011-06-08 21:56:39.000000000 +0200 -+++ virtaal-0.7.1-beta1/setup.py 2011-07-22 14:08:04.410692035 +0200 -@@ -60,24 +60,6 @@ - ] - #TODO: add Natural Language classifiers - --# Compile .mo files from available .po files --from translate.tools.pocompile import convertmo --mo_files = [] -- --for lang in open(path.join('po', 'LINGUAS')): -- lang = lang.rstrip() -- po_filename = path.join('po', lang+'.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]) -- ) -- - # Build lite files as needed on Win32 and OS X - if os.name == 'nt' or sys.platform == 'darwin': - for lang in open(path.join('po', 'LINGUAS-lite')): -@@ -101,7 +83,7 @@ - (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.spec b/virtaal.spec deleted file mode 100644 index 3c57b1f..0000000 --- a/virtaal.spec +++ /dev/null @@ -1,518 +0,0 @@ -%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} - -#%global subrelease rc1 - -Name: virtaal -Version: 0.7.1 -Release: 17%{?dist} -#Release: 0.4.%{subrelease}%{?dist} -Summary: Localization and translation editor - -License: GPLv2+ -URL: http://translate.sourceforge.net/wiki/virtaal/index -# Final releases are found at this URL -Source0: http://sourceforge.net/projects/translate/files/Virtaal/%{version}/%{name}-%{version}.tar.bz2 -# Snapshot releases are found at this URL -#Source0: http://translate.sourceforge.net/snapshots/%{name}-%{version}-%{subrelease}/%{name}-%{version}-%{subrelease}.tar.bz2 - -Patch0: virtaal-0.7.1-setup_drop_MO_generation.patch -Patch1: virtaal-0.3.0-autocorr_shared_location.patch -Patch2: virtaal-0.7.0-packaged.patch - -BuildArch: noarch -BuildRequires: python2 -%if 0%{?fedora} >= 14 -BuildRequires: python2-devel -%else -BuildRequires: python2-devel -%endif -BuildRequires: desktop-file-utils -BuildRequires: gettext -BuildRequires: intltool -Requires: translate-toolkit >= 1.9.0 -Requires: pygtk2 -Requires: pygtk2-libglade -%{?fedora:Requires: pygobject2} -Requires: python2-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: python2-Levenshtein -# python-psycopg2 needed for TinyTM -Requires: python2-psycopg2 -# Virtaal speedup -%ifarch %{ix86} -%{?fedora:Requires: python-psyco} -%endif -# python-pycurl needed for open-tran.eu -Requires: python2-pycurl -# python-simplejson needed for google-translate and tmclient -Requires: python2-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 -# Final release setup -%setup -q -# Snapshot setup -#%setup -q -n %{name}-%{version}-%{subrelease} -%patch0 -p1 -b .setup_drop_MO_generation -%patch1 -p1 -b .autocorr_shared_location -%patch2 -p1 -b .packaged - -%build -%py2_build -./maketranslations %{name} -pushd po -egrep -v "^#" LINGUAS | while read lang -do - mkdir -p locale/$lang/LC_MESSAGES/ - msgfmt ${lang}.po --output-file=locale/$lang/LC_MESSAGES/%{name}.mo -done -popd -# Remove leading space to try optimise IO in loading -sed -ir "s/^\s*?//" share/virtaal/virtaal.glade - - -%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 - - -%files -f %{name}.lang -%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 -%{python2_sitelib}/* - - -%changelog -* Sat Jul 27 2019 Fedora Release Engineering - 0.7.1-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Sun Feb 03 2019 Fedora Release Engineering - 0.7.1-16 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Sat Jul 14 2018 Fedora Release Engineering - 0.7.1-15 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Wed Feb 28 2018 Iryna Shcherbina - 0.7.1-14 -- Update Python 2 dependency declarations to new packaging standards - (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) - -* Fri Feb 09 2018 Fedora Release Engineering - 0.7.1-13 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Thu Jan 18 2018 Igor Gnatenko - 0.7.1-12 -- Remove obsolete scriptlets - -* Thu Jul 27 2017 Fedora Release Engineering - 0.7.1-11 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Sat Feb 11 2017 Fedora Release Engineering - 0.7.1-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Tue Jul 19 2016 Fedora Release Engineering - 0.7.1-9 -- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages - -* Fri Feb 05 2016 Fedora Release Engineering - 0.7.1-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Fri Jun 19 2015 Fedora Release Engineering - 0.7.1-7 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Thu Oct 02 2014 Rex Dieter 0.7.1-6 -- update mime scriptlets - -* Sun Jun 08 2014 Fedora Release Engineering - 0.7.1-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Sun Aug 04 2013 Fedora Release Engineering - 0.7.1-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Fri Feb 15 2013 Fedora Release Engineering - 0.7.1-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Sun Jul 22 2012 Fedora Release Engineering - 0.7.1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Mon Jan 9 2012 Dwayne Bailey - 0.7.1 -* Update to 0.7.1 final - - New and updated translations - - Support for Drag and Drop into the Virtaal window (bug 1955) - - Improvements to the Moses machine translation plugin - - Search highlighting sometimes incorrect (bug 1944) - - Some improvements towards fixing bug 1789 (also search highlighting) - - Some performance improvements (search and startup time) - - Reduced memory use in long sessions - - Support for non-ASCII installation paths - - Support for non-ASCII usernames (bug 2000) [reported by Zbyněk Schwarz] - -* Sat Oct 1 2011 Dwayne Bailey - 0.7.1-0.4.rc1 -- Use official 0.7.1 rc1 tarball -- Patch: drop Greek - -* Wed Sep 28 2011 Dwayne Bailey - 0.7.1-0.3.rc1 -- Only install languages from the LINGUAS file -- Patch: install Greek - -* Mon Sep 26 2011 Dwayne Bailey - 0.7.1-0.2.rc1 -- Update to 0.7.1 rc1 - - New Greek translation [Dimitris Spingos] - - Reduce memory use - - Improved startup time - - Support for non-ASCII installation paths - - Support for non-ASCII usernames (bug 2000) [reported by Zbyněk Schwarz] - -* Fri Jul 22 2011 Dwayne Bailey - 0.7.1-0.1.beta1 -- Update to 0.7.1 beta1 - - Updated translations, including Faroese and Portuguese - - Support for Drag and Drop into the Virtaal window (bug 1955) - - Search highlighting sometimes incorrect (bug 1944) - - Some improvements towards fixing bug 1789 (also search highlighting) - - Small performance improvements, especially in search. - - Better XML tags test (bug 1971) - - Corrected plural form for Scottish Gaelic -- Update patch: setup_drop_MO_generation - -* Fri Jun 3 2011 Dwayne Bailey - 0.7.0-1 -- Update to 0.7.0 final -- Patches: remove no_depcheck, no_profiling. Add packaged - -* Sat May 28 2011 Dwayne Bailey - 0.7.0-0.9.rc2 -- Update to 0.7.0 rc2 - - Virtaal hanging when inserting placeable - Virtaal bug 1930 - - Improved visual contrast and theme compliance in the diffing colours. Virtaal bug 1934 - - Updated translations -- Drop threading patch - -* Fri May 20 2011 Dwayne Bailey - 0.7.0-0.8.rc1 -- Update to 0.7.0 rc1 - - Export .po files to .mo - - Updated translations - - Fix Google and Microsoft translator for some languages - - Some accessibility improvements - - Fix some drawing issues with native dialogues -- Fix threading - -* Tue May 10 2011 Dwayne Bailey - 0.7.0-0.7.beta5 -- Fix profile disabling patch - bug #701224 - -* Wed Apr 20 2011 Dwayne Bailey - 0.7.0-0.6.beta5 -- Disable profiling option - not useful in production -- Try to optimise glade by removing leading space -- Drop patch for rhbug #675623 - pt spell checking - -* Sun Apr 17 2011 Dwayne Bailey - 0.7.0-0.5.beta5 -- Update to 0.7.0 beta5 - -* Mon Feb 07 2011 Fedora Release Engineering - 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 Jan 22 2011 Dwayne Bailey - 0.7.0-0.4.beta4 -- Patch no_depcheck - don't perform dependency checks - -* Thu Jan 20 2011 Dwayne Bailey - 0.7.0-0.3.beta4 -- Require translate-tools >= 1.9.0 - -* Thu Jan 20 2011 Dwayne Bailey - 0.7.0-0.2.beta4 -- Update to 0.7.0 beta4 - -* Tue Jan 11 2011 Dwayne Bailey - 0.7.0-0.1.beta3 -- Update to 0.7.0 beta3 -- Remove patch for bug 611751 - -* 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