core-admin-client/rpm_spec/qubes-core-admin-client.spec
Marek Marczykowski-Górecki 9bf404f7bf
tools: terminate qvm-start-gui when X server is terminated
qvm-start-gui lifecycle should be bound to X server lifecycle. It should
be restarted when user logoff and login again, at least to start
gui-daemons again.
Do that by opening a connection to X server and reacting to breaking
that socket.

Fixes QubesOS/qubes-issues#3147
2018-02-26 22:11:25 +01:00

111 lines
2.3 KiB
RPMSpec

Name: qubes-core-admin-client
Version: %(cat version)
Release: 0.1%{?dist}
Summary: Qubes OS admin client tools
Group: Qubes
License: LGPLv2.1+
URL: https://www.qubes-os.org
BuildRequires: python2-setuptools
BuildRequires: python2-devel
%if 0%{?rhel} >= 7
BuildRequires: python34-setuptools
BuildRequires: python34-devel
BuildRequires: python34-sphinx
BuildRequires: python34-dbus
Requires: python34-qubesadmin
%else
BuildRequires: python3-setuptools
BuildRequires: python3-devel
BuildRequires: python3-sphinx
BuildRequires: python3-dbus
Requires: python3-qubesadmin
%endif
BuildArch: noarch
%if 0%{?qubes_builder}
%define _builddir %(pwd)
%endif
%description
This package include managemt tools, like qvm-*.
%package -n python2-qubesadmin
Summary: Python2 module qubesadmin
Requires: python-daemon
Requires: python-docutils
Requires: python2-lxml
%description -n python2-qubesadmin
Python2 module qubesadmin.
%if 0%{?rhel} >= 7
%package -n python34-qubesadmin
Summary: Python34 module qubesadmin
Requires: python-daemon
Requires: python34-docutils
Requires: python34-lxml
Requires: python34-xcffib
Conflicts: qubes-manager < 4.0.6
%description -n python34-qubesadmin
Python34 module qubesadmin.
%else
%package -n python3-qubesadmin
Summary: Python3 module qubesadmin
Requires: python3-daemon
Requires: python3-docutils
Requires: python3-lxml
Requires: python3-xcffib
Conflicts: qubes-manager < 4.0.6
%description -n python3-qubesadmin
Python3 module qubesadmin.
%endif
%prep
%if !0%{?qubes_builder}
%setup -q
%endif
%build
make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} man
%install
rm -rf build
%make_install PYTHON=%{__python2}
rm -rf build
%make_install PYTHON=%{__python3}
make -C doc DESTDIR=$RPM_BUILD_ROOT \
PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} \
install
%files
%defattr(-,root,root,-)
%doc LICENSE
%config /etc/xdg/autostart/qvm-start-gui.desktop
%{_bindir}/qubes-*
%{_bindir}/qvm-*
%{_mandir}/man1/qvm-*.1*
%{_mandir}/man1/qubes*.1*
%files -n python2-qubesadmin
%{python_sitelib}/qubesadmin-*egg-info
%{python_sitelib}/qubesadmin
%if 0%{?rhel} >= 7
%files -n python34-qubesadmin
%else
%files -n python3-qubesadmin
%endif
%{python3_sitelib}/qubesadmin-*egg-info
%{python3_sitelib}/qubesadmin
%changelog