Package: c-repl
Severity: wishlist
Tags: patch

Hi,

The dpatch patch management system has been deprecated for some time. The
Lintian currently flags use of dpatch packages as an error. The new 3.0
packaging format is an improved version which, among other things, contains
patch management built-in. For more information, see:

    http://wiki.debian.org/Projects/DebSrc3.0

I had some free time; see attached patch to migrate to new package
format. Note that all files in debian/patches/* are canocalized to
*.patch.

Let me know if there is anything that needs adjusting or if it is ok
to upload this version in a NMU in case you are working on other
issues needing attention.

Thanks,
Jari

>From 4b38436aa08c2d5fe445daf850e11da41d23196b Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aa...@cante.net>
Date: Sat, 28 Apr 2012 20:03:25 +0300
Subject: [PATCH] format-3.0
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Signed-off-by: Jari Aalto <jari.aa...@cante.net>
---
 debian/changelog                                     |   12 ++++++++++++
 debian/compat                                        |    2 +-
 debian/control                                       |    7 ++++---
 debian/copyright                                     |    5 +++--
 debian/patches/00list                                |    1 -
 debian/patches/{10_debian.dpatch => 10-debian.patch} |   14 +++++---------
 debian/patches/series                                |    1 +
 debian/rules                                         |   11 +++++++----
 debian/source/format                                 |    1 +
 9 files changed, 34 insertions(+), 20 deletions(-)
 delete mode 100644 debian/patches/00list
 rename debian/patches/{10_debian.dpatch => 10-debian.patch} (83%)
 create mode 100644 debian/patches/series
 create mode 100644 debian/source/format

diff --git a/debian/changelog b/debian/changelog
index 0c21e08..19ecebe 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,15 @@
+c-repl (0.0.20071223-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Remove deprecated dpatch and upgrade to packaging format "3.0 quilt".
+  * Update to Standards-Version to 3.9.3 and debhelper to 9.
+  * Add build-arch and build-indep targets; use dh_prep in rules file.
+  * Fix copyright-refers-to-symlink-license (Lintian).
+  * Fix copyright-with-old-dh-make-debian-copyright (Lintian).
+  * Fix no-homepage-field (Lintian).
+
+ -- Jari Aalto <jari.aa...@cante.net>  Sat, 28 Apr 2012 20:01:37 +0300
+
 c-repl (0.0.20071223-1) unstable; urgency=low
 
   * Initial release; closes: #459401.
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..ec63514 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+9
diff --git a/debian/control b/debian/control
index bf51a62..afd7adc 100644
--- a/debian/control
+++ b/debian/control
@@ -2,12 +2,13 @@ Source: c-repl
 Section: interpreters
 Priority: extra
 Maintainer: Robert S. Edmonds <edmo...@debian.org>
-Build-Depends: debhelper (>= 5), dpatch
-Standards-Version: 3.7.3
+Build-Depends: debhelper (>= 9)
+Standards-Version: 3.9.3
+Homepage: http://neugierig.org/software/c-repl
 
 Package: c-repl
 Architecture: any
-Depends: ${shlibs:Depends}, ruby, libreadline-ruby
+Depends: ${misc:Depends}, ${shlibs:Depends}, ruby, libreadline-ruby
 Description: read-eval-print loop for C
  Many programming languages come with a REPL (read-eval-print loop), which
  allows you to type in code line by line and see what it does. This is quite
diff --git a/debian/copyright b/debian/copyright
index 978905e..839135a 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -33,5 +33,6 @@ License:
     NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
     SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-The Debian packaging is (C) 2007, Robert S. Edmonds <edmo...@debian.org> and
-is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
+The Debian packaging is Copyright (C) 2007, Robert S. Edmonds
+<edmo...@debian.org> and is licensed under the GPL, see
+`/usr/share/common-licenses/GPL-2'.
diff --git a/debian/patches/00list b/debian/patches/00list
deleted file mode 100644
index 3befdce..0000000
--- a/debian/patches/00list
+++ /dev/null
@@ -1 +0,0 @@
-10_debian.dpatch
diff --git a/debian/patches/10_debian.dpatch b/debian/patches/10-debian.patch
similarity index 83%
rename from debian/patches/10_debian.dpatch
rename to debian/patches/10-debian.patch
index 0a496ee..4bdb9f9 100644
--- a/debian/patches/10_debian.dpatch
+++ b/debian/patches/10-debian.patch
@@ -1,13 +1,9 @@
-#! /bin/sh /usr/share/dpatch/dpatch-run
-## 10_debian.dpatch by Robert S. Edmonds <edmo...@debian.org>
-##
-## All lines beginning with `## DP:' are a description of the patch.
-## DP: debian environment; look for helpers in /usr/lib/c-repl
-## DP: use a mktemp'd directory 
-## DP: compile DSOs with -fPIC
-## DP: don't write a #include when @headers is empty
+From: Robert S. Edmonds <edmo...@debian.org>
+Subject: debian environment; look for helpers in /usr/lib/c-repl
+  - use a mktemp'd directory
+  - compile DSOs with -fPIC
+  - don't write a #include when @headers is empty
 
-@DPATCH@
 diff -urNad c-repl-0.0.20071223~/c-repl c-repl-0.0.20071223/c-repl
 --- c-repl-0.0.20071223~/c-repl	2007-12-22 22:07:55.000000000 -0500
 +++ c-repl-0.0.20071223/c-repl	2007-12-22 22:52:09.000000000 -0500
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2496a14
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+10-debian.patch
diff --git a/debian/rules b/debian/rules
index 669276b..a923ffd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,5 @@
 #!/usr/bin/make -f
 
-include /usr/share/dpatch/dpatch.make
 
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
@@ -12,10 +11,14 @@ endif
 child: child.c
 	$(CC) $(CFLAGS) -o $@ $< -ldl
 
-build: patch-stamp child
+
+build-arch: build
+build-indep: build
+
+build: child
 	dh_testdir
 
-clean: unpatch
+clean:
 	dh_testdir
 	dh_testroot
 	rm -f child
@@ -24,7 +27,7 @@ clean: unpatch
 install: build
 	dh_testdir
 	dh_testroot
-	dh_clean -k 
+	dh_prep
 	dh_installdirs
 	dh_install
 
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
-- 
1.7.10

Reply via email to