[Python-modules-commits] r10211 - in packages/formalchemy/trunk/debian (7 files)

chaica-guest at users.alioth.debian.org chaica-guest at users.alioth.debian.org
Tue Oct 27 00:46:14 UTC 2009


    Date: Tuesday, October 27, 2009 @ 00:46:07
  Author: chaica-guest
Revision: 10211

* Support for internationalization
* debian/copyright
  - Added missing the package copyright
* Added debian/Readme.source for quilt
* Created debian/patches for quilt

Added:
  packages/formalchemy/trunk/debian/README.source
  packages/formalchemy/trunk/debian/patches/
  packages/formalchemy/trunk/debian/patches/series
  packages/formalchemy/trunk/debian/patches/switching_locale_path
Modified:
  packages/formalchemy/trunk/debian/control
  packages/formalchemy/trunk/debian/copyright
  packages/formalchemy/trunk/debian/rules

Added: packages/formalchemy/trunk/debian/README.source
===================================================================
--- packages/formalchemy/trunk/debian/README.source	                        (rev 0)
+++ packages/formalchemy/trunk/debian/README.source	2009-10-27 00:46:07 UTC (rev 10211)
@@ -0,0 +1,57 @@
+This package uses quilt to manage all modifications to the upstream
+source.  Changes are stored in the source package as diffs in
+debian/patches and applied during the build.
+
+To configure quilt to use debian/patches instead of patches, you want
+either to export QUILT_PATCHES=debian/patches in your environment
+or use this snippet in your ~/.quiltrc:
+
+    for where in ./ ../ ../../ ../../../ ../../../../ ../../../../../; do
+        if [ -e ${where}debian/rules -a -d ${where}debian/patches ]; then
+                export QUILT_PATCHES=debian/patches
+        fi
+    done
+
+To get the fully patched source after unpacking the source package, cd to
+the root level of the source package and run:
+
+    quilt push -a
+
+The last patch listed in debian/patches/series will become the current
+patch.
+
+To add a new set of changes, first run quilt push -a, and then run:
+
+    quilt new <patch>
+
+where <patch> is a descriptive name for the patch, used as the filename in
+debian/patches.  Then, for every file that will be modified by this patch,
+run:
+
+    quilt add <file>
+
+before editing those files.  You must tell quilt with quilt add what files
+will be part of the patch before making changes or quilt will not work
+properly.  After editing the files, run:
+
+    quilt refresh
+
+to save the results as a patch.
+
+Alternately, if you already have an external patch and you just want to
+add it to the build system, run quilt push -a and then:
+
+    quilt import -P <patch> /path/to/patch
+    quilt push -a
+
+(add -p 0 to quilt import if needed). <patch> as above is the filename to
+use in debian/patches.  The last quilt push -a will apply the patch to
+make sure it works properly.
+
+To remove an existing patch from the list of patches that will be applied,
+run:
+
+    quilt delete <patch>
+
+You may need to run quilt pop -a to unapply patches first before running
+this command.

Modified: packages/formalchemy/trunk/debian/control
===================================================================
--- packages/formalchemy/trunk/debian/control	2009-10-26 22:02:13 UTC (rev 10210)
+++ packages/formalchemy/trunk/debian/control	2009-10-27 00:46:07 UTC (rev 10211)
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Carl Chenet <chaica at ohmytux.com>
 Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>,
-Build-Depends: debhelper (>= 7.0.50~), python (>= 2.3), python-all-dev, python-support, python-setuptools
+Build-Depends: debhelper (>= 7.0.50~), quilt, python (>= 2.3), python-all-dev, python-support, python-setuptools
 Standards-Version: 3.8.3
 Homepage: http://code.google.com/p/formalchemy/
 Vcs-Svn: svn://svn.debian.org/python-modules/packages/formalchemy/trunk/
@@ -11,19 +11,21 @@
 
 Package: python-formalchemy
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends}, python-sqlalchemy (>= 0.4.5), python-tempita, python-beautifulsoup, python-mako
-Suggests: doc-base, python-couchdb, python-pylons
+Depends: ${python:Depends}, ${misc:Depends}, python-sqlalchemy (>= 0.4.5), python-tempita, python-beautifulsoup
+Recommends: python-mako, python-genshi
+Suggests: doc-base, python-couchdb, python-simplejson
+Enhances: python-pylons
 Description: auto-generation and customizable form fields from SQLAlchemy mapped classes
  FormAlchemy greatly speeds development with SQLAlchemy mapped classes
- (models) in a  HTML forms environment.  It also  provides support for
- CouchDB  and  greatly  helps  writing a  Pylons  CRUD  administration
+ (models) in a HTML forms environment. It also provides support for
+ CouchDB and greatly helps writing a Pylons CRUD administration
  interface.
  .
- FormAlchemy  eliminates  boilerplate  by  autogenerating  HTML  input
- fields From  a given model. FormAlchemy  will try to  figure out what
- kind of  HTML code  should be returned  by introspecting  the model's
- properties  and generate  ready-to-use HTML  code that  will  fit the
+ FormAlchemy eliminates boilerplate by autogenerating HTML input
+ fields from a given model. FormAlchemy will try to figure out what
+ kind of HTML code should be returned by introspecting the model's
+ properties and generate ready-to-use HTML code that will fit the
  developer's application.
  .
- FormAlchemy is  also highly  customizable, allowing the  developer to
+ FormAlchemy is also highly customizable, allowing the developer to
  display only the wanted columns or relying on a template engine.

Modified: packages/formalchemy/trunk/debian/copyright
===================================================================
--- packages/formalchemy/trunk/debian/copyright	2009-10-26 22:02:13 UTC (rev 10210)
+++ packages/formalchemy/trunk/debian/copyright	2009-10-27 00:46:07 UTC (rev 10211)
@@ -1,4 +1,4 @@
-This package was debianized by Arnaud Fontaine <arnau at debian.org> on
+This package was debianized by Chenet Carl <chaica at ohmytux.com> on
 Tue, 05 May 2009 12:07:12 +0100.
 
 It was downloaded from http://code.google.com/p/formalchemy/downloads/list
@@ -27,3 +27,9 @@
   ACTION OF  CONTRACT, TORT OR OTHERWISE,  ARISING FROM, OUT  OF OR IN
   CONNECTION WITH  THE SOFTWARE  OR THE USE  OR OTHER DEALINGS  IN THE
   SOFTWARE.
+
+The Debian packaging is © 2009, Chenet Carl <chaica at ohmytux.com> and
+is licensed under the GPL-3 or any later version.
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-3'.

Added: packages/formalchemy/trunk/debian/patches/series
===================================================================
--- packages/formalchemy/trunk/debian/patches/series	                        (rev 0)
+++ packages/formalchemy/trunk/debian/patches/series	2009-10-27 00:46:07 UTC (rev 10211)
@@ -0,0 +1 @@
+switching_locale_path

Added: packages/formalchemy/trunk/debian/patches/switching_locale_path
===================================================================
--- packages/formalchemy/trunk/debian/patches/switching_locale_path	                        (rev 0)
+++ packages/formalchemy/trunk/debian/patches/switching_locale_path	2009-10-27 00:46:07 UTC (rev 10211)
@@ -0,0 +1,45 @@
+Set internationalization in the Debian way
+Index: FormAlchemy-1.3/formalchemy/i18n.py
+===================================================================
+--- FormAlchemy-1.3.orig/formalchemy/i18n.py	2009-10-26 19:43:23.000000000 +0100
++++ FormAlchemy-1.3/formalchemy/i18n.py	2009-10-26 19:46:33.000000000 +0100
+@@ -6,7 +6,8 @@
+ import os
+ from gettext import GNUTranslations
+ 
+-i18n_path = os.path.join(os.path.dirname(__file__), 'i18n_resources')
++#i18n_path = os.path.join(os.path.dirname(__file__), 'i18n_resources')
++i18n_path = '/usr/share/locale/'
+ 
+ try:
+     from pylons.i18n import get_lang
+Index: FormAlchemy-1.3/setup.py
+===================================================================
+--- FormAlchemy-1.3.orig/setup.py	2009-10-26 21:38:53.000000000 +0100
++++ FormAlchemy-1.3/setup.py	2009-10-27 00:08:25.000000000 +0100
+@@ -28,11 +28,14 @@
+       download_url='http://code.google.com/p/formalchemy/downloads/list',
+       install_requires=['SQLAlchemy', 'Tempita'],
+       packages=find_packages(),
+-      package_data={'formalchemy': ['*.tmpl', 'i18n_resources/*/LC_MESSAGES/formalchemy.mo',
++      package_data={'formalchemy': ['*.tmpl',
+                                     'ext/pylons/*.mako', 'ext/pylons/resources/*.css', 'ext/pylons/resources/*.png',
+                                     'tests/data/mako/*.mako', 'tests/data/genshi/*.html',
+                                     'paster_templates/pylons_fa/+package+/*/*_tmpl',
+                                     ]},
++      data_files=[(os.path.join('share','locale','fr','LC_MESSAGES'), ['formalchemy/i18n_resources/fr/LC_MESSAGES/formalchemy.mo']),
++                  (os.path.join('share','locale','en','LC_MESSAGES'), ['formalchemy/i18n_resources/en/LC_MESSAGES/formalchemy.mo']),
++                  (os.path.join('share','locale','es','LC_MESSAGES'), ['formalchemy/i18n_resources/en/LC_MESSAGES/formalchemy.mo'])],
+       include_package_data=True,
+       classifiers=[
+           'Development Status :: 5 - Production/Stable',
+Index: FormAlchemy-1.3/MANIFEST.in
+===================================================================
+--- FormAlchemy-1.3.orig/MANIFEST.in	2009-10-26 22:21:50.000000000 +0100
++++ FormAlchemy-1.3/MANIFEST.in	2009-10-27 00:07:38.000000000 +0100
+@@ -11,4 +11,5 @@
+ recursive-include formalchemy *mako
+ recursive-include formalchemy *png
+ recursive-include formalchemy/i18n_resources *
++recursive-exclude formalchemy/i18n_resources *mo
+ recursive-include formalchemy/tests/data *

Modified: packages/formalchemy/trunk/debian/rules
===================================================================
--- packages/formalchemy/trunk/debian/rules	2009-10-26 22:02:13 UTC (rev 10210)
+++ packages/formalchemy/trunk/debian/rules	2009-10-27 00:46:07 UTC (rev 10211)
@@ -1,4 +1,4 @@
 #!/usr/bin/make -f
 %:
-	dh $@
+	dh --with quilt $@
 




More information about the Python-modules-commits mailing list