rpms/virtaal/devel virtaal-0.3beta1-setup_drop_MO_generation.patch, NONE, 1.1 virtaal-0.3beta1-version.patch, NONE, 1.1 .cvsignore, 1.2, 1.3 sources, 1.2, 1.3 virtaal.spec, 1.1, 1.2 virtaal-0.2-setup_drop_MO_generation.patch, 1.1, NONE

Dwayne Bailey dwayne at fedoraproject.org
Thu Jan 22 21:08:03 UTC 2009


Author: dwayne

Update of /cvs/pkgs/rpms/virtaal/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv609

Modified Files:
	.cvsignore sources virtaal.spec 
Added Files:
	virtaal-0.3beta1-setup_drop_MO_generation.patch 
	virtaal-0.3beta1-version.patch 
Removed Files:
	virtaal-0.2-setup_drop_MO_generation.patch 
Log Message:
* Thu Jan 22 2009 Dwayne Bailey <dwayne at translate.org.za> - 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


virtaal-0.3beta1-setup_drop_MO_generation.patch:

--- NEW FILE virtaal-0.3beta1-setup_drop_MO_generation.patch ---
diff -up virtaal-0.3beta1/setup.py.setup_drop_MO_generation virtaal-0.3beta1/setup.py
--- virtaal-0.3beta1/setup.py.setup_drop_MO_generation	2009-01-22 19:32:07.000000000 +0200
+++ virtaal-0.3beta1/setup.py	2009-01-22 22:28:32.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.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.glob(path.join(SOURCE_DATA_DIR, "virtaal", "*.*"))),
         (path.join(TARGET_DATA_DIR, "virtaal", "autocorr"), glob.glob(path.join(SOURCE_DATA_DIR, "virtaal", "autocorr", "*"))),
         (path.join(TARGET_DATA_DIR, "icons"), glob.glob(path.join(SOURCE_DATA_DIR, "icons", "*.*"))),
-    ] + mo_files,
+    ],
     'scripts': [
         "bin/virtaal",
     ],

virtaal-0.3beta1-version.patch:

--- NEW FILE virtaal-0.3beta1-version.patch ---
--- /dev/null	2009-01-22 12:36:32.668282991 +0200
+++ virtaal-0.3beta1/__version__.py	2009-01-22 22:43:30.000000000 +0200
@@ -0,0 +1,22 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright 2008 Zuza Software Foundation
+#
+# This file is part of Virtaal.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
+
+"""This file contains the version."""
+ver = "0.3beta1"
--- virtaal-0.3beta1/setup.py.version	2009-01-22 22:45:22.000000000 +0200
+++ virtaal-0.3beta1/setup.py	2009-01-22 22:45:32.000000000 +0200
@@ -19,7 +19,7 @@
 # along with this program; if not, see <http://www.gnu.org/licenses/>.
 
 from distutils.core import setup, Distribution, Command
-from virtaal.common.__version__ import ver as virtaal_version
+from __version__ import ver as virtaal_version
 import glob
 import os
 import os.path as path


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/virtaal/devel/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- .cvsignore	4 Jan 2009 21:45:51 -0000	1.2
+++ .cvsignore	22 Jan 2009 21:07:32 -0000	1.3
@@ -1 +1,2 @@
 virtaal-0.2.tar.bz2
+virtaal-0.3beta1.tar.bz2


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/virtaal/devel/sources,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- sources	4 Jan 2009 21:45:52 -0000	1.2
+++ sources	22 Jan 2009 21:07:32 -0000	1.3
@@ -1 +1,2 @@
 cd01398cc6c916317829a88c72af2253  virtaal-0.2.tar.bz2
+ef67448bf29f75a49709a59c05fe4230  virtaal-0.3beta1.tar.bz2


Index: virtaal.spec
===================================================================
RCS file: /cvs/pkgs/rpms/virtaal/devel/virtaal.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- virtaal.spec	4 Jan 2009 21:45:52 -0000	1.1
+++ virtaal.spec	22 Jan 2009 21:07:32 -0000	1.2
@@ -1,17 +1,19 @@
 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 
 Name:           virtaal
-Version:        0.2
-Release:        2%{?dist}
+Version:        0.3
+Release:        0.1.beta1%{?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://downloads.sourceforge.net/translate/%{name}-%{version}.tar.bz2
+Source0:        http://translate.sourceforge.net/snapshots/virtaal-0.3-beta1/virtaal-0.3beta1.tar.bz2
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-Patch0:         virtaal-0.2-setup_drop_MO_generation.patch
+Patch0:         virtaal-0.3beta1-setup_drop_MO_generation.patch
+Patch1:         virtaal-0.3beta1-version.patch
 
 BuildArch:      noarch
 BuildRequires:  python
@@ -19,7 +21,7 @@
 BuildRequires:  desktop-file-utils
 BuildRequires:  gettext
 BuildRequires:  intltool
-Requires:       translate-toolkit >= 1.2
+Requires:       translate-toolkit >= 1.3
 Requires:       pygtk2
 Requires:       pygtk2-libglade
 Requires:       python-lxml
@@ -42,8 +44,9 @@
  
 
 %prep
-%setup -q -n %{name}-%{version}
-%patch0 -p1
+%setup -q -n %{name}-%{version}beta1
+%patch0 -p1 -b .setup_drop_MO_generation
+%patch1 -p1 -b .version
 
 %build
 %{__python} setup.py build
@@ -103,6 +106,12 @@
 
 
 %changelog
+* Thu Jan 22 2009 Dwayne Bailey <dwayne at translate.org.za> - 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
+
 * Sat Dec 6 2008 Dwayne Bailey <dwayne at translate.org.za> - 0.2-2
 - Cleanups from package review
 


--- virtaal-0.2-setup_drop_MO_generation.patch DELETED ---




More information about the fedora-extras-commits mailing list