File bubblejail.spec of Package bubblejail

#
# spec file for package bubblejail
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#

Name:           bubblejail
Version:        0.9.5+git37.g1d6e117
Release:        0%{?dist}
Summary:        Bubblewrap based sandboxing for desktop applications

License:        GPL-3.0-or-later
URL:            https://github.com/igo95862/bubblejail
Source0:        _service

BuildRequires:  gcc
BuildRequires:  hicolor-icon-theme
BuildRequires:  meson
BuildRequires:  python313-jinja2
BuildRequires:  python313-devel
BuildRequires:  scdoc
Requires:       python313
Requires:       python313-pyxdg
Requires:       python313-tomli-w
Requires:       bubblewrap >= 0.5.0
Requires:       xdg-dbus-proxy
Requires:       python313-PyQt6
Recommends:     desktop-file-utils
Recommends:     libnotify4
Suggests:       bash-completion
Suggests:       fish
Suggests:       slirp4netns

%description
Bubblejail is a bubblewrap-based alternative to Firejail.

%prep
%autosetup -p1 -n %{_sourcedir}/%{name}-%{version} -T -D

%build
%meson \
    -Duse-vendored-python-lxns=enabled \
    -Dpython.purelibdir=%_libdir/bubblejail/python-packages \
    -Dpython.platlibdir=%_libdir/bubblejail/python-packages
%meson_build

%install
%meson_install
mkdir -p "%buildroot/%_docdir/%{name}"
cp -a %{_sourcedir}/%{name}-%{version}/README.md "%buildroot/%_docdir/%{name}"
cp -a %{_sourcedir}/%{name}-%{version}/docs/breaking_changes.md "%buildroot/%_docdir/%{name}"
mkdir -p "%buildroot/usr/share/licenses/%{name}"
cp -a %{_sourcedir}/%{name}-%{version}/LICENSES/GPL-3.0-or-later.txt "%buildroot/usr/share/licenses/%{name}"

%files
%_docdir/%{name}
%_bindir/bubblejail
%_bindir/bubblejail-config
%_libdir/bubblejail
%_datadir/applications/bubblejail-config.desktop
%_datadir/bash-completion/completions/bubblejail
%_datadir/bubblejail
%_datadir/licenses/%{name}
%_datadir/icons/hicolor/128x128/apps/bubblejail-config.png
%_datadir/icons/hicolor/scalable/apps/bubblejail-config.svg
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%_datadir/fish/vendor_completions.d/bubblejail.fish
%_mandir/man1/bubblejail.1.gz
%_mandir/man5/bubblejail.services.5.gz

%changelog
openSUSE Build Service is sponsored by