handle the lenny backport
authormirabilos <t.glaser@tarent.de>
Sat, 2 Dec 2017 23:55:10 +0000 (00:55 +0100)
committermirabilos <t.glaser@tarent.de>
Sat, 2 Dec 2017 23:55:10 +0000 (00:55 +0100)
debian/control.in
debian/rules
debian/source/format [deleted file]

index 84ae1d8..e811435 100644 (file)
@@ -12,7 +12,7 @@ Package: jupp
 Architecture: any
 Multi-Arch: foreign
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Breaks: joe (<< 3.7-2.3~)
+@@BREAKS@@: joe (<< 3.7-2.3~)
 Provides: editor
 Enhances: nbc
 Description: user friendly full screen text editor
index 3d58296..8a86086 100755 (executable)
@@ -119,11 +119,15 @@ EXTRA_LDFLAGS=            -Wl,--as-needed
 
 # 5 is enough
 DEBHELPER_VERSION:=    9
+DSF:=                  3.0 (quilt)
 DSC_DEPS:=             debhelper (>= ${DEBHELPER_VERSION})
 SUBST_VARS+=           DSC_DEPS
 
 SELINUX_ARCHS:=                linux-any
 
+BREAKS:=               Breaks
+SUBST_VARS+=           BREAKS
+
 ifeq (${USE_LIBC},dietlibc)
 DSC_DEPS:=             ${DSC_DEPS}, dietlibc-dev
 USE_SHARED:=0
@@ -158,7 +162,9 @@ EXTRA_CFLAGS+=              -g3
 endif
 
 ifneq (,$(findstring lenny,${DEB_BUILD_OPTIONS}))
+DSF:=                  1.0
 SELINUX_ARCHS:=                !kfreebsd-i386 !kfreebsd-amd64 !hurd-i386
+BREAKS:=               Conflicts
 endif
 
 ifneq (,$(wildcard /usr/share/dpkg/buildflags.mk))
@@ -262,6 +268,7 @@ debian/.control_stamp:
                    Are you sure you are in the correct directory\?; \
                exit 1; \
        fi)
+       echo '${DSF}' >debian/source/format
        echo ${DEBHELPER_VERSION} >debian/compat
        sed \
            $(foreach v,${SUBST_VARS},-e 's\ 1@@'$(call shellescape,$v)'@@\ 1'$(call shellescape,$(strip ${$v}))'\ 1') \
diff --git a/debian/source/format b/debian/source/format
deleted file mode 100644 (file)
index 163aaf8..0000000
+++ /dev/null
@@ -1 +0,0 @@
-3.0 (quilt)