diff --git a/tilix.spec b/tilix.spec index 37163b2..736cc74 100644 --- a/tilix.spec +++ b/tilix.spec @@ -83,6 +83,10 @@ NOCONFIGURE=1 ./autogen.sh %configure DCFLAGS="%{_d_optflags} -version=StdLoggerDisableTrace" %make_build +%if 0%{?flatpak} +gcc %optflags %__global_ldflags -o tilix-flatpak-toolbox experimental/flatpak/tilix-flatpak-toolbox.c +%endif + # Rename license files so that we can include them in %%license cp -a data/icons/LICENSE LICENSE-data-icons cp -a source/x11/LICENSE LICENSE-source-x11 @@ -91,6 +95,10 @@ cp -a source/x11/LICENSE LICENSE-source-x11 %install %make_install +%if 0%{?flatpak} +install -m 755 tilix-flatpak-toolbox $RPM_BUILD_ROOT%{_bindir} +%endif + %find_lang tilix @@ -103,6 +111,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/com.gexperts.Tilix %license LICENSE* %doc README.md %{_bindir}/tilix +%if 0%{?flatpak} +%{_bindir}/tilix-flatpak-toolbox +%endif %{_datadir}/applications/com.gexperts.Tilix.desktop %{_datadir}/dbus-1/services/com.gexperts.Tilix.service %{_datadir}/glib-2.0/schemas/com.gexperts.Tilix.gschema.xml