split okular backends

From c1716db5abd6867396be0b7b331423213174a9fb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= <jbb.prv@gmx.de>
Date: Wed, 19 Feb 2020 14:57:39 +0100
Subject: [PATCH] Split okular-backends from okular

---
 debian/control                               | 36 ++++++-----
 debian/okular-backends.install               | 63 ++++++++++++++++++++
 debian/{okular.mime => okular-backends.mime} |  0
 debian/okular.install                        | 62 -------------------
 4 files changed, 85 insertions(+), 76 deletions(-)
 create mode 100644 debian/okular-backends.install
 rename debian/{okular.mime => okular-backends.mime} (100%)

diff --git a/debian/control b/debian/control
index 269cecf..accc3b3 100644
--- a/debian/control
+++ b/debian/control
@@ -66,6 +66,7 @@ Package: okular
 Section: graphics
 Architecture: any
 Depends: kinit,
+         okular-backends,
          ${misc:Depends},
          ${shlibs:Depends},
 Recommends: cups-bsd
@@ -113,6 +114,23 @@ Description: development files for the Okular libraries
  .
  This package is part of the KDE graphics module.
 
+Package: okular-backends
+Architecture: any
+Depends: ${misc:Depends}, ${shlibs:Depends}
+Recommends: okular
+Breaks: okular (<< 19.04.2-2), ${kde-l10n:all}
+Replaces: okular (<< 19.04.2-2), ${kde-l10n:all}
+Description: document format support for Okular
+ These plugins allow Okular to view the following document formats:
+  * Portable Document Format (PDF)
+  * Device Independent Format (DVI)
+  * Comic Books
+  * Images (JPEG, PNG, GIF, and many more)
+  * Plucker Format
+  * OpenDocument Text Format
+ .
+ This package is part of the KDE graphics module.
+
 Package: okular-extra-backends
 Architecture: any
 Depends: ${misc:Depends}, ${shlibs:Depends}
@@ -141,6 +159,7 @@ Package: qml-module-org-kde-okular
 Architecture: any
 Depends: qml-module-qtgraphicaleffects,
          qml-module-qtquick-controls2,
+         okular-backends,
          ${misc:Depends},
          ${shlibs:Depends},
 Breaks: okular (<< 4:17.12.2~),
@@ -168,19 +187,8 @@ Suggests: ghostscript,
 Breaks: ${kde-l10n:all}
 Replaces: ${kde-l10n:all}
 Recommends: okular
-Description: mobile support for Okular
- These plugins allow Okular to view additional document formats for mobile:
-  * Portable Document Format (PDF)
-  * PostScript
-  * Device Independent Format (DVI)
-  * DeJaVu Format
-  * Comic Books
-  * Images (JPEG, PNG, GIF, and many more)
-  * TIFF Image Format
-  * FictionBook Format
-  * Plucker Format
-  * OpenDocument Text Format
-  * Microsofts CHM Format
-  * Microsofts XML Document Format
+Description: Mobile user interface of Okular
+ Okular is a universal document viewer with support for advanced document
+ features, such as annotations, forms, and embedded files.
  .
  This package is part of the KDE graphics module.
diff --git a/debian/okular-backends.install b/debian/okular-backends.install
new file mode 100644
index 0000000..bc8aa61
--- /dev/null
+++ b/debian/okular-backends.install
@@ -0,0 +1,63 @@
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_comicbook.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_dvi.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_fax.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_fb.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_ghostview.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_kimgio.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_mobi.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_ooo.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_plucker.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_poppler.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_txt.so
+usr/lib/*/qt5/plugins/okular/generators/okularGenerator_xps.so
+usr/share/applications/okularApplication_comicbook.desktop
+usr/share/applications/okularApplication_dvi.desktop
+usr/share/applications/okularApplication_fax.desktop
+usr/share/applications/okularApplication_fb.desktop
+usr/share/applications/okularApplication_ghostview.desktop
+usr/share/applications/okularApplication_kimgio.desktop
+usr/share/applications/okularApplication_mobi.desktop
+usr/share/applications/okularApplication_ooo.desktop
+usr/share/applications/okularApplication_pdf.desktop
+usr/share/applications/okularApplication_plucker.desktop
+usr/share/applications/okularApplication_txt.desktop
+usr/share/applications/okularApplication_xps.desktop
+usr/share/kservices5/okularComicbook.desktop
+usr/share/kservices5/okularDvi.desktop
+usr/share/kservices5/okularFax.desktop
+usr/share/kservices5/okularFb.desktop
+usr/share/kservices5/okularGhostview.desktop
+usr/share/kservices5/okularKimgio.desktop
+usr/share/kservices5/okularMobi.desktop
+usr/share/kservices5/okularOoo.desktop
+usr/share/kservices5/okularPlucker.desktop
+usr/share/kservices5/okularPoppler.desktop
+usr/share/kservices5/okularTxt.desktop
+usr/share/kservices5/okularXps.desktop
+usr/share/kservices5/okular_part.desktop
+usr/share/kservicetypes5/okularGenerator.desktop
+usr/share/locale/*/LC_MESSAGES/okular_comicbook.mo
+usr/share/locale/*/LC_MESSAGES/okular_dvi.mo
+usr/share/locale/*/LC_MESSAGES/okular_fax.mo
+usr/share/locale/*/LC_MESSAGES/okular_fictionbook.mo
+usr/share/locale/*/LC_MESSAGES/okular_ghostview.mo
+usr/share/locale/*/LC_MESSAGES/okular_kimgio.mo
+usr/share/locale/*/LC_MESSAGES/okular_mobi.mo
+usr/share/locale/*/LC_MESSAGES/okular_ooo.mo
+usr/share/locale/*/LC_MESSAGES/okular_plucker.mo
+usr/share/locale/*/LC_MESSAGES/okular_poppler.mo
+usr/share/locale/*/LC_MESSAGES/okular_txt.mo
+usr/share/locale/*/LC_MESSAGES/okular_xps.mo
+usr/share/metainfo/org.kde.okular-comicbook.metainfo.xml
+usr/share/metainfo/org.kde.okular-dvi.metainfo.xml
+usr/share/metainfo/org.kde.okular-fax.metainfo.xml
+usr/share/metainfo/org.kde.okular-fb.metainfo.xml
+usr/share/metainfo/org.kde.okular-kimgio.metainfo.xml
+usr/share/metainfo/org.kde.okular-mobipocket.metainfo.xml
+usr/share/metainfo/org.kde.okular-ooo.metainfo.xml
+usr/share/metainfo/org.kde.okular-plucker.metainfo.xml
+usr/share/metainfo/org.kde.okular-poppler.metainfo.xml
+usr/share/metainfo/org.kde.okular-spectre.metainfo.xml
+usr/share/metainfo/org.kde.okular-txt.metainfo.xml
+usr/share/metainfo/org.kde.okular-xps.metainfo.xml
+
diff --git a/debian/okular.mime b/debian/okular-backends.mime
similarity index 100%
rename from debian/okular.mime
rename to debian/okular-backends.mime
diff --git a/debian/okular.install b/debian/okular.install
index 0977a37..b5fe090 100644
--- a/debian/okular.install
+++ b/debian/okular.install
@@ -1,30 +1,6 @@
 etc/xdg/okular.categories
 usr/bin/okular
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_comicbook.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_dvi.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_fax.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_fb.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_ghostview.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_kimgio.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_mobi.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_ooo.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_plucker.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_poppler.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_txt.so
-usr/lib/*/qt5/plugins/okular/generators/okularGenerator_xps.so
 usr/lib/*/qt5/plugins/okularpart.so
-usr/share/applications/okularApplication_comicbook.desktop
-usr/share/applications/okularApplication_dvi.desktop
-usr/share/applications/okularApplication_fax.desktop
-usr/share/applications/okularApplication_fb.desktop
-usr/share/applications/okularApplication_ghostview.desktop
-usr/share/applications/okularApplication_kimgio.desktop
-usr/share/applications/okularApplication_mobi.desktop
-usr/share/applications/okularApplication_ooo.desktop
-usr/share/applications/okularApplication_pdf.desktop
-usr/share/applications/okularApplication_plucker.desktop
-usr/share/applications/okularApplication_txt.desktop
-usr/share/applications/okularApplication_xps.desktop
 usr/share/applications/org.kde.okular.desktop
 usr/share/config.kcfg/gssettings.kcfg
 usr/share/config.kcfg/okular.kcfg
@@ -33,50 +9,12 @@ usr/share/config.kcfg/pdfsettings.kcfg
 usr/share/doc/HTML/*/okular
 usr/share/icons/hicolor/*/apps/okular.png
 usr/share/kconf_update/okular.upd
-usr/share/kservices5/okularComicbook.desktop
-usr/share/kservices5/okularDvi.desktop
-usr/share/kservices5/okularFax.desktop
-usr/share/kservices5/okularFb.desktop
-usr/share/kservices5/okularGhostview.desktop
-usr/share/kservices5/okularKimgio.desktop
-usr/share/kservices5/okularMobi.desktop
-usr/share/kservices5/okularOoo.desktop
-usr/share/kservices5/okularPlucker.desktop
-usr/share/kservices5/okularPoppler.desktop
-usr/share/kservices5/okularTxt.desktop
-usr/share/kservices5/okularXps.desktop
-usr/share/kservices5/okular_part.desktop
-usr/share/kservicetypes5/okularGenerator.desktop
 usr/share/kxmlgui5/okular/part-viewermode.rc
 usr/share/kxmlgui5/okular/part.rc
 usr/share/kxmlgui5/okular/shell.rc
 usr/share/locale/*/LC_MESSAGES/okular.mo
-usr/share/locale/*/LC_MESSAGES/okular_comicbook.mo
-usr/share/locale/*/LC_MESSAGES/okular_dvi.mo
-usr/share/locale/*/LC_MESSAGES/okular_fax.mo
-usr/share/locale/*/LC_MESSAGES/okular_fictionbook.mo
-usr/share/locale/*/LC_MESSAGES/okular_ghostview.mo
-usr/share/locale/*/LC_MESSAGES/okular_kimgio.mo
-usr/share/locale/*/LC_MESSAGES/okular_mobi.mo
-usr/share/locale/*/LC_MESSAGES/okular_ooo.mo
-usr/share/locale/*/LC_MESSAGES/okular_plucker.mo
-usr/share/locale/*/LC_MESSAGES/okular_poppler.mo
-usr/share/locale/*/LC_MESSAGES/okular_txt.mo
-usr/share/locale/*/LC_MESSAGES/okular_xps.mo
 usr/share/man/*/man1/okular.1
 usr/share/man/man1/okular.1
-usr/share/metainfo/org.kde.okular-comicbook.metainfo.xml
-usr/share/metainfo/org.kde.okular-dvi.metainfo.xml
-usr/share/metainfo/org.kde.okular-fax.metainfo.xml
-usr/share/metainfo/org.kde.okular-fb.metainfo.xml
-usr/share/metainfo/org.kde.okular-kimgio.metainfo.xml
-usr/share/metainfo/org.kde.okular-mobipocket.metainfo.xml
-usr/share/metainfo/org.kde.okular-ooo.metainfo.xml
-usr/share/metainfo/org.kde.okular-plucker.metainfo.xml
-usr/share/metainfo/org.kde.okular-poppler.metainfo.xml
-usr/share/metainfo/org.kde.okular-spectre.metainfo.xml
-usr/share/metainfo/org.kde.okular-txt.metainfo.xml
-usr/share/metainfo/org.kde.okular-xps.metainfo.xml
 usr/share/metainfo/org.kde.okular.appdata.xml
 usr/share/okular/drawingtools.xml
 usr/share/okular/icons/hicolor/*/apps/okular-fb2.png
-- 
2.25.0