2016-10-06 00:57:48 +02:00
|
|
|
%global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
%{!?version: %define version %(cat version)}
|
|
|
|
|
|
|
|
Name: qubes-manager
|
|
|
|
Version: %{version}
|
2015-11-27 23:22:03 +01:00
|
|
|
Release: 1%{?dist}
|
2010-05-11 16:51:31 +02:00
|
|
|
Summary: The Graphical Qubes VM Manager.
|
|
|
|
|
|
|
|
Group: Qubes
|
|
|
|
Vendor: Invisible Things Lab
|
|
|
|
License: GPL
|
|
|
|
URL: http://fixme
|
2015-09-03 03:23:30 +02:00
|
|
|
Requires: python, PyQt4, qubes-core-dom0-linux >= 2.0.22, qubes-core-dom0 >= 3.0.18
|
2012-05-19 07:42:57 +02:00
|
|
|
Requires: pmount, cryptsetup, wmctrl
|
2012-07-05 01:10:01 +02:00
|
|
|
Requires: dbus
|
2014-07-09 18:21:56 +02:00
|
|
|
Requires: qubes-artwork
|
2010-05-16 06:31:36 +02:00
|
|
|
BuildRequires: PyQt4-devel
|
|
|
|
AutoReq: 0
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
%define _builddir %(pwd)
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Graphical Qubes VM Manager.
|
|
|
|
|
2010-05-16 06:31:36 +02:00
|
|
|
%build
|
|
|
|
make res
|
2011-03-02 14:53:27 +01:00
|
|
|
python -m compileall qubesmanager
|
|
|
|
python -O -m compileall qubesmanager
|
2010-05-11 16:51:31 +02:00
|
|
|
|
2010-05-16 06:31:36 +02:00
|
|
|
%install
|
2010-05-11 16:51:31 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/bin/
|
|
|
|
cp qubes-manager $RPM_BUILD_ROOT/usr/bin
|
2012-06-21 11:58:25 +02:00
|
|
|
cp qubes-vm-settings $RPM_BUILD_ROOT/usr/bin
|
2010-05-11 16:51:31 +02:00
|
|
|
|
2012-03-19 14:22:51 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/libexec/qubes-manager/
|
|
|
|
cp qubesmanager/mount_for_backup.sh $RPM_BUILD_ROOT/usr/libexec/qubes-manager/
|
|
|
|
|
2010-05-11 16:51:31 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager/
|
2011-03-02 14:53:27 +01:00
|
|
|
cp qubesmanager/main.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2014-03-31 01:17:27 +02:00
|
|
|
cp qubesmanager/block.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/table_widgets.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-05-25 02:26:41 +02:00
|
|
|
cp qubesmanager/appmenu_select.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2012-02-22 10:32:48 +01:00
|
|
|
cp qubesmanager/backup.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/backup_utils.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-03-06 19:54:42 +01:00
|
|
|
cp qubesmanager/firewall.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2012-02-22 10:32:48 +01:00
|
|
|
cp qubesmanager/global_settings.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/multiselectwidget.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/restore.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/settings.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2012-05-10 13:17:24 +02:00
|
|
|
cp qubesmanager/log_dialog.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2015-10-01 22:34:49 +02:00
|
|
|
cp qubesmanager/about.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/releasenotes.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2012-05-12 18:28:07 +02:00
|
|
|
cp qubesmanager/create_new_vm.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2012-02-22 10:32:48 +01:00
|
|
|
cp qubesmanager/thread_monitor.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/resources_rc.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-03-02 14:53:27 +01:00
|
|
|
cp qubesmanager/__init__.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2012-02-22 10:32:48 +01:00
|
|
|
cp qubesmanager/ui_backupdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/ui_globalsettingsdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/ui_mainwindow.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/ui_multiselectwidget.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-03-02 14:53:27 +01:00
|
|
|
cp qubesmanager/ui_newappvmdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2011-03-06 19:54:42 +01:00
|
|
|
cp qubesmanager/ui_newfwruledlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2012-02-22 10:32:48 +01:00
|
|
|
cp qubesmanager/ui_restoredlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/ui_settingsdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2012-05-10 13:17:24 +02:00
|
|
|
cp qubesmanager/ui_logdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2015-10-01 22:34:49 +02:00
|
|
|
cp qubesmanager/ui_about.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
|
|
|
cp qubesmanager/ui_releasenotes.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/usr/share/applications
|
|
|
|
cp qubes-manager.desktop $RPM_BUILD_ROOT/usr/share/applications
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/xdg/autostart/
|
|
|
|
cp qubes-manager.desktop $RPM_BUILD_ROOT/etc/xdg/autostart/
|
|
|
|
|
2012-07-05 01:10:01 +02:00
|
|
|
install -D org.qubesos.QubesManager.conf $RPM_BUILD_ROOT/etc/dbus-1/system.d/org.qubesos.QubesManager.conf
|
|
|
|
install -D org.qubesos.QubesManager.xml $RPM_BUILD_ROOT/usr/share/dbus-1/interfaces/org.qubesos.QubesManager.xml
|
|
|
|
|
2010-05-11 16:51:31 +02:00
|
|
|
%post
|
|
|
|
update-desktop-database &> /dev/null || :
|
2012-06-05 20:34:45 +02:00
|
|
|
killall -1 qubes-manager || :
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
%postun
|
|
|
|
update-desktop-database &> /dev/null || :
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
/usr/bin/qubes-manager
|
2012-06-21 11:58:25 +02:00
|
|
|
/usr/bin/qubes-vm-settings
|
2012-03-19 14:22:51 +01:00
|
|
|
/usr/libexec/qubes-manager/mount_for_backup.sh
|
2013-02-21 04:33:42 +01:00
|
|
|
%dir %{python_sitearch}/qubesmanager
|
2010-05-11 16:51:31 +02:00
|
|
|
%{python_sitearch}/qubesmanager/__init__.py
|
|
|
|
%{python_sitearch}/qubesmanager/__init__.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/__init__.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/main.py
|
|
|
|
%{python_sitearch}/qubesmanager/main.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/main.pyo
|
2014-03-31 01:17:27 +02:00
|
|
|
%{python_sitearch}/qubesmanager/block.py
|
|
|
|
%{python_sitearch}/qubesmanager/block.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/block.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/table_widgets.py
|
|
|
|
%{python_sitearch}/qubesmanager/table_widgets.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/table_widgets.pyo
|
2011-05-25 02:26:41 +02:00
|
|
|
%{python_sitearch}/qubesmanager/appmenu_select.py
|
|
|
|
%{python_sitearch}/qubesmanager/appmenu_select.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/appmenu_select.pyo
|
2012-02-22 10:32:48 +01:00
|
|
|
%{python_sitearch}/qubesmanager/backup.py
|
|
|
|
%{python_sitearch}/qubesmanager/backup.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/backup.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/backup_utils.py
|
|
|
|
%{python_sitearch}/qubesmanager/backup_utils.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/backup_utils.pyo
|
2011-03-06 19:54:42 +01:00
|
|
|
%{python_sitearch}/qubesmanager/firewall.py
|
|
|
|
%{python_sitearch}/qubesmanager/firewall.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/firewall.pyo
|
2012-02-22 10:32:48 +01:00
|
|
|
%{python_sitearch}/qubesmanager/global_settings.py
|
|
|
|
%{python_sitearch}/qubesmanager/global_settings.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/global_settings.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/multiselectwidget.py
|
|
|
|
%{python_sitearch}/qubesmanager/multiselectwidget.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/multiselectwidget.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/restore.py
|
|
|
|
%{python_sitearch}/qubesmanager/restore.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/restore.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/settings.py
|
|
|
|
%{python_sitearch}/qubesmanager/settings.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/settings.pyo
|
2012-05-12 17:01:05 +02:00
|
|
|
%{python_sitearch}/qubesmanager/log_dialog.py
|
|
|
|
%{python_sitearch}/qubesmanager/log_dialog.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/log_dialog.pyo
|
2015-10-01 22:34:49 +02:00
|
|
|
%{python_sitearch}/qubesmanager/about.py
|
|
|
|
%{python_sitearch}/qubesmanager/about.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/about.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/releasenotes.py
|
|
|
|
%{python_sitearch}/qubesmanager/releasenotes.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/releasenotes.pyo
|
2012-05-12 18:28:07 +02:00
|
|
|
%{python_sitearch}/qubesmanager/create_new_vm.py
|
|
|
|
%{python_sitearch}/qubesmanager/create_new_vm.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/create_new_vm.pyo
|
2012-02-22 10:32:48 +01:00
|
|
|
%{python_sitearch}/qubesmanager/thread_monitor.py
|
|
|
|
%{python_sitearch}/qubesmanager/thread_monitor.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/thread_monitor.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/resources_rc.py
|
|
|
|
%{python_sitearch}/qubesmanager/resources_rc.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/resources_rc.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/ui_backupdlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_backupdlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_backupdlg.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/ui_globalsettingsdlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_globalsettingsdlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_globalsettingsdlg.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/ui_mainwindow.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_mainwindow.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_mainwindow.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/ui_multiselectwidget.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_multiselectwidget.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_multiselectwidget.pyo
|
2010-05-11 16:51:31 +02:00
|
|
|
%{python_sitearch}/qubesmanager/ui_newappvmdlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newappvmdlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newappvmdlg.pyo
|
2011-03-06 19:54:42 +01:00
|
|
|
%{python_sitearch}/qubesmanager/ui_newfwruledlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newfwruledlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_newfwruledlg.pyo
|
2012-02-22 10:32:48 +01:00
|
|
|
%{python_sitearch}/qubesmanager/ui_restoredlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_restoredlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_restoredlg.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/ui_settingsdlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_settingsdlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_settingsdlg.pyo
|
2012-05-10 13:17:24 +02:00
|
|
|
%{python_sitearch}/qubesmanager/ui_logdlg.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_logdlg.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_logdlg.pyo
|
2015-10-01 22:34:49 +02:00
|
|
|
%{python_sitearch}/qubesmanager/ui_about.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_about.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_about.pyo
|
|
|
|
%{python_sitearch}/qubesmanager/ui_releasenotes.py
|
|
|
|
%{python_sitearch}/qubesmanager/ui_releasenotes.pyc
|
|
|
|
%{python_sitearch}/qubesmanager/ui_releasenotes.pyo
|
2010-05-11 16:51:31 +02:00
|
|
|
|
|
|
|
|
|
|
|
/usr/share/applications/qubes-manager.desktop
|
|
|
|
/etc/xdg/autostart/qubes-manager.desktop
|
2012-07-05 01:10:01 +02:00
|
|
|
/etc/dbus-1/system.d/org.qubesos.QubesManager.conf
|
|
|
|
/usr/share/dbus-1/interfaces/org.qubesos.QubesManager.xml
|