rpms/virtaal/EL-5 virtaal-0.3.0-autocorr_shared_location.patch, NONE, 1.1 virtaal-0.5.0-setup_drop_MO_generation.patch, NONE, 1.1 .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 virtaal.spec, 1.2, 1.3 virtaal-0.2-setup_drop_MO_generation.patch, 1.1, NONE
dwayne
dwayne at fedoraproject.org
Thu Jul 22 22:37:20 UTC 2010
- Previous message: rpms/GMT/F-12 GMT-4.5.3-bufoverflow.patch, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.6, 1.7 GMT.spec, 1.12, 1.13 sources, 1.6, 1.7
- Next message: [pkgdb] eclipse-emf had acl change status
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: dwayne
Update of /cvs/pkgs/rpms/virtaal/EL-5
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv10296
Modified Files:
.cvsignore sources virtaal.spec
Added Files:
virtaal-0.3.0-autocorr_shared_location.patch
virtaal-0.5.0-setup_drop_MO_generation.patch
Removed Files:
virtaal-0.2-setup_drop_MO_generation.patch
Log Message:
* Mon Jun 7 2010 Dwayne Bailey <dwayne at translate.org.za> - 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
- 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
virtaal-0.3.0-autocorr_shared_location.patch:
autocorrector.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- NEW FILE virtaal-0.3.0-autocorr_shared_location.patch ---
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():
virtaal-0.5.0-setup_drop_MO_generation.patch:
setup.py | 19 +------------------
1 file changed, 1 insertion(+), 18 deletions(-)
--- NEW FILE virtaal-0.5.0-setup_drop_MO_generation.patch ---
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",
],
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/virtaal/EL-5/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- .cvsignore 7 Jan 2009 19:27:15 -0000 1.2
+++ .cvsignore 22 Jul 2010 22:37:18 -0000 1.3
@@ -1 +1 @@
-virtaal-0.2.tar.bz2
+virtaal-0.6.1.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/virtaal/EL-5/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- sources 7 Jan 2009 19:27:15 -0000 1.2
+++ sources 22 Jul 2010 22:37:19 -0000 1.3
@@ -1 +1 @@
-cd01398cc6c916317829a88c72af2253 virtaal-0.2.tar.bz2
+5a636e1b6302cba4244a017367953227 virtaal-0.6.1.tar.bz2
Index: virtaal.spec
===================================================================
RCS file: /cvs/pkgs/rpms/virtaal/EL-5/virtaal.spec,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- virtaal.spec 7 Jan 2009 20:00:38 -0000 1.2
+++ virtaal.spec 22 Jul 2010 22:37:19 -0000 1.3
@@ -1,17 +1,18 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Name: virtaal
-Version: 0.2
-Release: 3%{?dist}
+Version: 0.6.1
+Release: 1%{?dist}
Summary: Localization and translation editor
Group: Development/Tools
License: GPLv2+
URL: http://translate.sourceforge.net/wiki/virtaal/index
-Source0: http://downloads.sourceforge.net/translate/%{name}-%{version}.tar.bz2
+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.2-setup_drop_MO_generation.patch
+Patch0: virtaal-0.5.0-setup_drop_MO_generation.patch
+Patch1: virtaal-0.3.0-autocorr_shared_location.patch
BuildArch: noarch
BuildRequires: python
@@ -19,31 +20,61 @@ BuildRequires: python-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext
BuildRequires: intltool
-Requires: translate-toolkit >= 1.2
+Requires: translate-toolkit >= 1.5.1
Requires: pygtk2
Requires: pygtk2-libglade
+#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
+#Requires: libtranslate
+# python-Levenshtein provides fast distance measures
+Requires: python-Levenshtein
+# python-psycopg2 needed for TinyTM
+Requires: python-psycopg2
+## Virtaal speedup
+#%ifarch %{ix86}
+#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) built on the Translate Toolkit.
+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. Showing only
+syntax highlighting, autocomplete and autocorrect. By showing only
the data that is needed through its simple and effective user interface it
-ensures that you can focus on the translation task straight away.
+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.
-By building on the Translate Toolkit, Virtaal is able to edit any of the
-following formats: XLIFF, Gettext PO and .mo, Qt .ts, .qph and .qm, Wordfast
-TM, TMX, TBX. By using the Translate Toolkit converters a translator can edit:
-OpenOffice.org SDF, Java (and Mozilla) .properties and Mozilla DTD.
-
%prep
-%setup -q -n %{name}-%{version}
-%patch0 -p1
+%setup -q
+%patch0 -p1 -b .setup_drop_MO_generation
+%patch1 -p1 -b .autocorr_shared_location
%build
%{__python} setup.py build
@@ -59,35 +90,59 @@ popd
%install
rm -rf %{buildroot}
-%{__python} setup.py install -O1 --skip-build --install-data=/usr --root %{buildroot}
+%{__python} setup.py install -O1 --skip-build --install-data=/usr --nodepcheck --root %{buildroot}
desktop-file-install \
--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
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
-fi
+touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
%postun
update-desktop-database &> /dev/null || :
update-mime-database %{_datadir}/mime &> /dev/null || :
-touch --no-create %{_datadir}/icons/hicolor
-if [ -x %{_bindir}/gtk-update-icon-cache ]; then
- %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+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}
@@ -99,11 +154,38 @@ rm -rf %{buildroot}
%{_datadir}/applications/*
%{_datadir}/mime/packages/*
%{_datadir}/virtaal
-%{_datadir}/icons/*
+%{_datadir}/icons/hicolor/*/mimetypes/*
+%{_datadir}/icons/virtaal.*
+%exclude %{_datadir}/icons/x-translation.ico
%{python_sitelib}/*
%changelog
+* Mon Jun 7 2010 Dwayne Bailey <dwayne at translate.org.za> - 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
+- 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
+
* Wed Jan 7 2009 Dwayne Bailey <dwayne at translate.org.za> - 0.2-3
- vendor tag is needed for desktop-file-install
--- virtaal-0.2-setup_drop_MO_generation.patch DELETED ---
- Previous message: rpms/GMT/F-12 GMT-4.5.3-bufoverflow.patch, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.6, 1.7 GMT.spec, 1.12, 1.13 sources, 1.6, 1.7
- Next message: [pkgdb] eclipse-emf had acl change status
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list