r689 - in /trunk/packages/vim-spellfiles/debian: README.Debian-source control control.in mk-deb-control.pl rules

zack at users.alioth.debian.org zack at users.alioth.debian.org
Fri May 19 05:10:16 UTC 2006


Author: zack
Date: Fri May 19 05:10:15 2006
New Revision: 689

URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=689
Log:
added automatic generation of debian/control (language specific information still to be added)

Added:
    trunk/packages/vim-spellfiles/debian/README.Debian-source
    trunk/packages/vim-spellfiles/debian/control
    trunk/packages/vim-spellfiles/debian/mk-deb-control.pl
Modified:
    trunk/packages/vim-spellfiles/debian/control.in
    trunk/packages/vim-spellfiles/debian/rules

Added: trunk/packages/vim-spellfiles/debian/README.Debian-source
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-spellfiles/debian/README.Debian-source?rev=689&op=file
==============================================================================
--- trunk/packages/vim-spellfiles/debian/README.Debian-source (added)
+++ trunk/packages/vim-spellfiles/debian/README.Debian-source Fri May 19 05:10:15 2006
@@ -1,0 +1,6 @@
+
+Warning: debian/control is generated by the 'init' target of debian/rules,
+starting from the template debian/control.in. Modify it and re-run
+'fakeroot debian/rules init' instead of manually modify debian/control
+
+ -- Stefano Zacchiroli <zack at debian.org>, Thu, 18 May 2006 23:51:56 -0500

Added: trunk/packages/vim-spellfiles/debian/control
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-spellfiles/debian/control?rev=689&op=file
==============================================================================
--- trunk/packages/vim-spellfiles/debian/control (added)
+++ trunk/packages/vim-spellfiles/debian/control Fri May 19 05:10:15 2006
@@ -1,0 +1,31 @@
+Source: vim-spellfiles
+Section: text
+Priority: optional
+Maintainer: Stefano Zacchiroli <zack at debian.org>
+Build-Depends: debhelper (>= 4.0.0)
+Standards-Version: 3.7.2
+
+Package: vim-spellfiles-fr
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: French spell files for Vim spell checking
+ This package contains Vim spell files (provided in various encodings) for
+ French language. Vim spell files add language and encoding specific support
+ to the spell checking feature of the Vim editor.
+
+Package: vim-spellfiles-it
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Italian spell files for Vim spell checking
+ This package contains Vim spell files (provided in various encodings) for
+ Italian language. Vim spell files add language and encoding specific support
+ to the spell checking feature of the Vim editor.
+
+Package: vim-spellfiles-es
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Spanish spell files for Vim spell checking
+ This package contains Vim spell files (provided in various encodings) for
+ Spanish language. Vim spell files add language and encoding specific support
+ to the spell checking feature of the Vim editor.
+

Modified: trunk/packages/vim-spellfiles/debian/control.in
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-spellfiles/debian/control.in?rev=689&op=diff
==============================================================================
--- trunk/packages/vim-spellfiles/debian/control.in (original)
+++ trunk/packages/vim-spellfiles/debian/control.in Fri May 19 05:10:15 2006
@@ -9,11 +9,7 @@
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: @LANG@ spell files for Vim spell checking
- This package contains spell files for @LANG@ language to add spell checking
- support to the Vim editor.
- .
- Spell files are provided for various encoding.
+ This package contains Vim spell files (provided in various encodings) for
+ @LANG@ language. Vim spell files add language and encoding specific support
+ to the spell checking feature of the Vim editor.
 
-TODO: generate from this file the real debian/control (not to be done during
-the build, but before, by hand)
-

Added: trunk/packages/vim-spellfiles/debian/mk-deb-control.pl
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-spellfiles/debian/mk-deb-control.pl?rev=689&op=file
==============================================================================
--- trunk/packages/vim-spellfiles/debian/mk-deb-control.pl (added)
+++ trunk/packages/vim-spellfiles/debian/mk-deb-control.pl Fri May 19 05:10:15 2006
@@ -1,0 +1,29 @@
+#!/usr/bin/perl
+use strict;
+
+my %languages = (
+  "it" => "Italian",
+  "fr" => "French",
+  "es" => "Spanish",
+  # TODO
+);
+
+my $in_pkg = 0;
+my $pkg_entry = "";
+
+while (my $l = <>) {
+  chomp $l;
+  $in_pkg = 1 if $l =~ /^Package:/;
+  if ($in_pkg == 1) {
+    $pkg_entry .= "$l\n";
+  } else {
+    print $l, "\n";
+  }
+}
+foreach my $code (keys %languages) {
+  my $tmp = $pkg_entry;
+  $tmp =~ s/\@CODE\@/$code/g;
+  $tmp =~ s/\@LANG\@/$languages{$code}/g;
+  print $tmp;
+}
+

Modified: trunk/packages/vim-spellfiles/debian/rules
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim-spellfiles/debian/rules?rev=689&op=diff
==============================================================================
--- trunk/packages/vim-spellfiles/debian/rules (original)
+++ trunk/packages/vim-spellfiles/debian/rules Fri May 19 05:10:15 2006
@@ -12,6 +12,11 @@
 	# Add here commands to compile the indep part of the package.
 	#$(MAKE) doc
 	touch build-indep-stamp
+
+# To be manually invoked, not automatically invoked during the build.
+# This target creates debian/control from debian/control.in
+init:
+	perl debian/mk-deb-control.pl < debian/control.in > debian/control
 
 clean:
 	dh_testdir




More information about the pkg-vim-maintainers mailing list