pkg,ui: rpm/deb improvements

- deb: added python3-packaging dependency.
 - rpm:
   * make python3-notify2 package optional.
   * Added python3-packaging as dependency to load dynamically the
     protobuffers (python3-packaging for Fedora, python-rpm-packaging
     metapackage for OpenSuse).
This commit is contained in:
Gustavo Iñiguez Goia 2025-01-03 16:19:28 +01:00
parent 6f41dc6c3e
commit 422a2dd82d
Failed to generate hash of commit
2 changed files with 3 additions and 2 deletions

View file

@ -27,6 +27,7 @@ Depends:
python3-pyinotify, python3-pyinotify,
python3-grpcio, python3-grpcio,
python3-protobuf, python3-protobuf,
python3-packaging,
python3-slugify, python3-slugify,
python3-notify2, python3-notify2,
xdg-user-dirs, xdg-user-dirs,

View file

@ -18,8 +18,8 @@ BuildArch: noarch
Vendor: OpenSnitch project Vendor: OpenSnitch project
Packager: Gustavo Iñiguez Goya <gooffy1@gmail.com> Packager: Gustavo Iñiguez Goya <gooffy1@gmail.com>
Url: https://github.com/evilsocket/opensnitch Url: https://github.com/evilsocket/opensnitch
Requires: python3, python3-pip, (netcfg or setup), (python3-pyinotify or python3-inotify), python3-qt5, python3-notify2 Requires: python3, python3-pip, (netcfg or setup), (python3-pyinotify or python3-inotify), python3-qt5
Recommends: (python3-slugify or python3-python-slugify), python3-protobuf >= 3.0, python3-grpcio >= 1.10.0, (qgnomeplatform-qt5 or QGnomePlatform-qt5) Recommends: (python3-slugify or python3-python-slugify), python3-notify2, python3-protobuf >= 3.0, python3-grpcio >= 1.10.0, (qgnomeplatform-qt5 or QGnomePlatform-qt5), (python3-packaging or python-rpm-packaging)
# avoid to depend on a particular python version # avoid to depend on a particular python version
%global __requires_exclude ^python\\(abi\\) = 3\\..$ %global __requires_exclude ^python\\(abi\\) = 3\\..$