Source: kdenlive
Version: 17.08.3-1
Severity: normal
Tags: patch

Hi,

since KDE Applications 17.04, the translations of Frameworks-based
applications are provided with the applications themselves, and not
anymore as part of kde-l10n.  This caused in the past conflicts because
we still ship kde-l10n 16.04, and thus with kdenlive translations
(bugs #863722).

Earlier today, I uploaded kde-l10n 4:16.04.3-2 which drops few
translations, including the kdenlive ones: hence, they can be shipped
again as part of kdenlive.  Attached there is a patch for this, which
makes use of pkg-kde-tools to generate the correct substvar variable
for breaks/replaces.

PS: the packaging ought to better use the kf5 dh addon (part of
pkg-kde-tools): for example, this already handles the .docbook
compression exclusion.

Thanks,
-- 
Pini
diff -Nru kdenlive-17.08.3/debian/control kdenlive-17.08.3/debian/control
--- kdenlive-17.08.3/debian/control
+++ kdenlive-17.08.3/debian/control
@@ -7,6 +7,7 @@
 Build-Depends: debhelper (>= 10),
  pkg-config,
  cmake,
+ pkg-kde-tools,
  libmlt-dev (>= 0.9.8),
  libmlt++-dev (>= 0.9.8),
  ffmpeg,
@@ -73,7 +74,8 @@
 Architecture: all
 Depends: ${misc:Depends}
 Recommends: kdenlive
-Breaks: kdenlive (<= 0.7.2.1)
+Breaks: ${kde-l10n:all}, kdenlive (<= 0.7.2.1)
+Replaces: ${kde-l10n:all}
 Description: non-linear video editor (data files)
  Kdenlive is a non-linear video editing suite, which supports DV, HDV and many
  more formats.
diff -Nru kdenlive-17.08.3/debian/kdenlive-data.install 
kdenlive-17.08.3/debian/kdenlive-data.install
--- kdenlive-17.08.3/debian/kdenlive-data.install
+++ kdenlive-17.08.3/debian/kdenlive-data.install
@@ -7,4 +7,5 @@
 usr/share/knotifications5
 usr/share/kdenlive
 usr/share/config.kcfg
-usr/share/doc/HTML/en
+usr/share/doc
+usr/share/locale
diff -Nru kdenlive-17.08.3/debian/rules kdenlive-17.08.3/debian/rules
--- kdenlive-17.08.3/debian/rules
+++ kdenlive-17.08.3/debian/rules
@@ -1,5 +1,8 @@
 #!/usr/bin/make -f
 
+l10npkgs_firstversion_ok := 4:16.04.3-2~
+include /usr/share/pkg-kde-tools/qt-kde-team/2/l10n-packages.mk
+
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
 EXTRAFLAGS :=
@@ -17,5 +20,7 @@
        dh_compress -X.docbook
 
 override_dh_install:
-       rm -f $(CURDIR)/debian/tmp/usr/share/doc/kde/HTML/*/kdenlive/common
        dh_install --list-missing
+
+override_dh_gencontrol: l10npkgs_firstversion_ok
+       dh_gencontrol

Reply via email to