Skip to content

Commit

Permalink
debian: Split libxapp1 into three different binary packages (fixes li…
Browse files Browse the repository at this point in the history
…nuxmint#149)

- Introduce new packages for the GTK3 module and `xapp-sn-watcher`.
- Move xinitrc script `xapp-gtk3-module.sh` to package libxapp-gtk3-module.
- Move D-Bus service file `org.x.StatusNotifierWatcher.service` and autostart
  file `xapp-sn-watcher.desktop` to package xapp-sn-watcher as well.
- Add dependency on libxapp-gtk3-module and xapp-sn-watcher to libxapp1.
  • Loading branch information
uhle committed Nov 22, 2022
1 parent 74e01ec commit 2c0cfea
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ obj-*
debian/tmp/
debian/*.debhelper
debian/gir1.2-xapp-1.0/
debian/libxapp-dbg/
debian/libxapp-dev/
debian/libxapp-gtk3-module/
debian/libxapp1/
debian/xapp-sn-watcher/
debian/xapps-common/
debian/xapps-doc/
debian/*.log
Expand Down
30 changes: 30 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ Description: XApp library - development files
This package provides the include files and static library for the XApp
library functions.

Package: libxapp-gtk3-module
Section: libs
Architecture: any
Multi-Arch: same
Pre-Depends: ${misc:Pre-Depends}
Depends:
xapps-common (>= ${source:Version}),
${misc:Depends},
${shlibs:Depends},
Breaks: libxapp1 (<< 2.4.2~)
Replaces: libxapp1 (<< 2.4.2~)
Description: GTK 3.0 module for the XApp library
This package contains a GTK 3.0 module to make features of the XApp library
available to GTK 3.0 applications.

Package: libxapp1
Section: libs
Architecture: any
Expand All @@ -60,9 +75,24 @@ Depends:
xapps-common (>= ${source:Version}),
${misc:Depends},
${shlibs:Depends},
Recommends:
libxapp-gtk3-module (= ${binary:Version}),
xapp-sn-watcher (= ${binary:Version}),
Description: XApp library
This library is used by several Xapp apps.

Package: xapp-sn-watcher
Architecture: any
Depends:
default-dbus-session-bus | dbus-session-bus,
xapps-common (>= ${source:Version}),
${misc:Depends},
${shlibs:Depends},
Breaks: libxapp1 (<< 2.4.2~), xapps-common (<< 2.4.2~)
Replaces: libxapp1 (<< 2.4.2~), xapps-common (<< 2.4.2~)
Description: D-Bus session bus service to support the XApp library
This package contains xapp-sn-watcher.

Package: xapps-common
Architecture: all
Multi-Arch: foreign
Expand Down
2 changes: 2 additions & 0 deletions debian/libxapp-gtk3-module.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
etc/X11
usr/lib/*/gtk-3.0/modules
3 changes: 0 additions & 3 deletions debian/libxapp1.install
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
usr/lib/*/libxapp.so.*
usr/libexec/xapps/sn-watcher/*
usr/lib/*/gtk-3.0/modules
etc/X11
1 change: 1 addition & 0 deletions debian/libxapp1.maintscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rm_conffile /etc/X11/xinit/xinitrc.d/80xapp-gtk3-module.sh 2.4.2~
3 changes: 3 additions & 0 deletions debian/xapp-sn-watcher.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
etc/xdg/autostart
usr/libexec/xapps/sn-watcher
usr/share/dbus-1/services/org.x.StatusNotifierWatcher.service
3 changes: 1 addition & 2 deletions debian/xapps-common.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ usr/share/icons
usr/share/locale
usr/libexec/xapps/*.py
usr/share/mate-panel/applets
usr/share/dbus-1/services
etc/xdg/autostart
usr/share/dbus-1/services/org.mate.panel.applet.MateXAppStatusAppletFactory.service
1 change: 1 addition & 0 deletions debian/xapps-common.maintscript
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rm_conffile /etc/xdg/autostart/xapp-sn-watcher.desktop 2.4.2~

0 comments on commit 2c0cfea

Please sign in to comment.