[SCM] krita packaging branch, master, updated. debian/3.0.1+dfsg-1-11-g7df7623

Pino Toscano pino at moszumanska.debian.org
Fri Dec 23 13:25:10 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/calligra/krita.git;a=commitdiff;h=7df7623

The following commit has been merged in the master branch:
commit 7df762345d997c1b3b75a9d3118bdf929d68beda
Author: Pino Toscano <pino at debian.org>
Date:   Fri Dec 23 14:24:23 2016 +0100

    break/replace old translations
---
 debian/changelog |  2 ++
 debian/control   |  2 ++
 debian/rules     | 13 +++++++++++++
 3 files changed, 17 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 29b2c6d..6311120 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,8 @@ krita (1:3.1.1+dfsg-0r1) UNRELEASED; urgency=medium
   * Enable the OpenEXR support again -- it seems the conflict with Eigen3
     headers is gone
     - add the libopenexr-dev build dependency
+  * Add Breaks/Replaces for all the calligra-l10n packages prior to < 2.9.11,
+    i.e. when krita was split out of calligra (in Debian).
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Thu, 22 Dec 2016 23:34:50 +0100
 
diff --git a/debian/control b/debian/control
index 74cf4d8..0c52c91 100644
--- a/debian/control
+++ b/debian/control
@@ -92,6 +92,8 @@ Package: krita-l10n
 Architecture: all
 Section: localization
 Depends: ${misc:Depends}
+Breaks: ${krita:oldLangs}
+Replaces: ${krita:oldLangs}
 Description: translations for Krita painting program
  This package contains the translations for Krita, the painting program
  shipped with the Calligra Suite.
diff --git a/debian/rules b/debian/rules
index 85c7e4f..6737275 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,6 +5,15 @@
 
 export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
 
+# conflicts with old calligra-l10n
+# (mostly copied from l10n-packages.mk in pkg-kde-tools)
+l10npkgs_firstversion_ok := 1:2.9.11-1~
+l10npkgs_prefix := calligra-l10n
+l10npkgs_fixed_version_comma := (<< $(l10npkgs_firstversion_ok)),
+# the list of languages in calligra-l10n < 2.9
+l10npkgs_langs := bs ca cavalencia cs da de el engb es et eu fi fr gl hu it ja kk nb nds nl pl pt ptbr ru sk sv uk zhcn zhtw
+l10npkgs_packages_rels := $(patsubst %,$(l10npkgs_prefix)-% $(l10npkgs_fixed_version_comma),$(l10npkgs_langs))
+
 %:
 	dh $@ --parallel --with kf5
 
@@ -21,4 +30,8 @@ override_dh_auto_install:
 override_dh_install:
 	dh_install --list-missing
 
+override_dh_gencontrol:
+	dh_gencontrol -pkrita-l10n -- -Vkrita:oldLangs='$(l10npkgs_packages_rels)'
+	dh_gencontrol --remaining-packages
+
 .PHONY: override_dh_auto_test

-- 
krita packaging



More information about the pkg-kde-commits mailing list