qmgr.spec 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %{!?version: %define version %(cat version)}
  3. Name: qubes-manager
  4. Version: %{version}
  5. Release: 1
  6. Summary: The Graphical Qubes VM Manager.
  7. Group: Qubes
  8. Vendor: Invisible Things Lab
  9. License: GPL
  10. URL: http://fixme
  11. Requires: python, PyQt4, qubes-core-dom0 > 1.7.23
  12. Requires: pmount, cryptsetup, wmctrl
  13. Requires: dbus
  14. BuildRequires: PyQt4-devel
  15. AutoReq: 0
  16. %define _builddir %(pwd)
  17. %description
  18. The Graphical Qubes VM Manager.
  19. %build
  20. make res
  21. python -m compileall qubesmanager
  22. python -O -m compileall qubesmanager
  23. %install
  24. mkdir -p $RPM_BUILD_ROOT/usr/bin/
  25. cp qubes-manager $RPM_BUILD_ROOT/usr/bin
  26. cp qubes-vm-settings $RPM_BUILD_ROOT/usr/bin
  27. mkdir -p $RPM_BUILD_ROOT/usr/libexec/qubes-manager/
  28. cp qubesmanager/mount_for_backup.sh $RPM_BUILD_ROOT/usr/libexec/qubes-manager/
  29. mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager/
  30. cp qubesmanager/main.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  31. cp qubesmanager/block.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  32. cp qubesmanager/table_widgets.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  33. cp qubesmanager/appmenu_select.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  34. cp qubesmanager/backup.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  35. cp qubesmanager/backup_utils.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  36. cp qubesmanager/firewall.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  37. cp qubesmanager/global_settings.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  38. cp qubesmanager/multiselectwidget.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  39. cp qubesmanager/restore.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  40. cp qubesmanager/settings.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  41. cp qubesmanager/log_dialog.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  42. cp qubesmanager/create_new_vm.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  43. cp qubesmanager/thread_monitor.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  44. cp qubesmanager/resources_rc.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  45. cp qubesmanager/__init__.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  46. cp qubesmanager/ui_backupdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  47. cp qubesmanager/ui_globalsettingsdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  48. cp qubesmanager/ui_mainwindow.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  49. cp qubesmanager/ui_multiselectwidget.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  50. cp qubesmanager/ui_newappvmdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  51. cp qubesmanager/ui_newfwruledlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  52. cp qubesmanager/ui_restoredlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  53. cp qubesmanager/ui_settingsdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  54. cp qubesmanager/ui_logdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  55. mkdir -p $RPM_BUILD_ROOT/usr/share/applications
  56. cp qubes-manager.desktop $RPM_BUILD_ROOT/usr/share/applications
  57. mkdir -p $RPM_BUILD_ROOT/etc/xdg/autostart/
  58. cp qubes-manager.desktop $RPM_BUILD_ROOT/etc/xdg/autostart/
  59. install -D org.qubesos.QubesManager.conf $RPM_BUILD_ROOT/etc/dbus-1/system.d/org.qubesos.QubesManager.conf
  60. install -D org.qubesos.QubesManager.xml $RPM_BUILD_ROOT/usr/share/dbus-1/interfaces/org.qubesos.QubesManager.xml
  61. %post
  62. update-desktop-database &> /dev/null || :
  63. killall -1 qubes-manager || :
  64. %postun
  65. update-desktop-database &> /dev/null || :
  66. %clean
  67. rm -rf $RPM_BUILD_ROOT
  68. %files
  69. %defattr(-,root,root,-)
  70. /usr/bin/qubes-manager
  71. /usr/bin/qubes-vm-settings
  72. /usr/libexec/qubes-manager/mount_for_backup.sh
  73. %dir %{python_sitearch}/qubesmanager
  74. %{python_sitearch}/qubesmanager/__init__.py
  75. %{python_sitearch}/qubesmanager/__init__.pyo
  76. %{python_sitearch}/qubesmanager/__init__.pyc
  77. %{python_sitearch}/qubesmanager/main.py
  78. %{python_sitearch}/qubesmanager/main.pyc
  79. %{python_sitearch}/qubesmanager/main.pyo
  80. %{python_sitearch}/qubesmanager/block.py
  81. %{python_sitearch}/qubesmanager/block.pyc
  82. %{python_sitearch}/qubesmanager/block.pyo
  83. %{python_sitearch}/qubesmanager/table_widgets.py
  84. %{python_sitearch}/qubesmanager/table_widgets.pyc
  85. %{python_sitearch}/qubesmanager/table_widgets.pyo
  86. %{python_sitearch}/qubesmanager/appmenu_select.py
  87. %{python_sitearch}/qubesmanager/appmenu_select.pyc
  88. %{python_sitearch}/qubesmanager/appmenu_select.pyo
  89. %{python_sitearch}/qubesmanager/backup.py
  90. %{python_sitearch}/qubesmanager/backup.pyc
  91. %{python_sitearch}/qubesmanager/backup.pyo
  92. %{python_sitearch}/qubesmanager/backup_utils.py
  93. %{python_sitearch}/qubesmanager/backup_utils.pyc
  94. %{python_sitearch}/qubesmanager/backup_utils.pyo
  95. %{python_sitearch}/qubesmanager/firewall.py
  96. %{python_sitearch}/qubesmanager/firewall.pyc
  97. %{python_sitearch}/qubesmanager/firewall.pyo
  98. %{python_sitearch}/qubesmanager/global_settings.py
  99. %{python_sitearch}/qubesmanager/global_settings.pyc
  100. %{python_sitearch}/qubesmanager/global_settings.pyo
  101. %{python_sitearch}/qubesmanager/multiselectwidget.py
  102. %{python_sitearch}/qubesmanager/multiselectwidget.pyc
  103. %{python_sitearch}/qubesmanager/multiselectwidget.pyo
  104. %{python_sitearch}/qubesmanager/restore.py
  105. %{python_sitearch}/qubesmanager/restore.pyc
  106. %{python_sitearch}/qubesmanager/restore.pyo
  107. %{python_sitearch}/qubesmanager/settings.py
  108. %{python_sitearch}/qubesmanager/settings.pyc
  109. %{python_sitearch}/qubesmanager/settings.pyo
  110. %{python_sitearch}/qubesmanager/log_dialog.py
  111. %{python_sitearch}/qubesmanager/log_dialog.pyc
  112. %{python_sitearch}/qubesmanager/log_dialog.pyo
  113. %{python_sitearch}/qubesmanager/create_new_vm.py
  114. %{python_sitearch}/qubesmanager/create_new_vm.pyc
  115. %{python_sitearch}/qubesmanager/create_new_vm.pyo
  116. %{python_sitearch}/qubesmanager/thread_monitor.py
  117. %{python_sitearch}/qubesmanager/thread_monitor.pyc
  118. %{python_sitearch}/qubesmanager/thread_monitor.pyo
  119. %{python_sitearch}/qubesmanager/resources_rc.py
  120. %{python_sitearch}/qubesmanager/resources_rc.pyc
  121. %{python_sitearch}/qubesmanager/resources_rc.pyo
  122. %{python_sitearch}/qubesmanager/ui_backupdlg.py
  123. %{python_sitearch}/qubesmanager/ui_backupdlg.pyc
  124. %{python_sitearch}/qubesmanager/ui_backupdlg.pyo
  125. %{python_sitearch}/qubesmanager/ui_globalsettingsdlg.py
  126. %{python_sitearch}/qubesmanager/ui_globalsettingsdlg.pyc
  127. %{python_sitearch}/qubesmanager/ui_globalsettingsdlg.pyo
  128. %{python_sitearch}/qubesmanager/ui_mainwindow.py
  129. %{python_sitearch}/qubesmanager/ui_mainwindow.pyc
  130. %{python_sitearch}/qubesmanager/ui_mainwindow.pyo
  131. %{python_sitearch}/qubesmanager/ui_multiselectwidget.py
  132. %{python_sitearch}/qubesmanager/ui_multiselectwidget.pyc
  133. %{python_sitearch}/qubesmanager/ui_multiselectwidget.pyo
  134. %{python_sitearch}/qubesmanager/ui_newappvmdlg.py
  135. %{python_sitearch}/qubesmanager/ui_newappvmdlg.pyc
  136. %{python_sitearch}/qubesmanager/ui_newappvmdlg.pyo
  137. %{python_sitearch}/qubesmanager/ui_newfwruledlg.py
  138. %{python_sitearch}/qubesmanager/ui_newfwruledlg.pyc
  139. %{python_sitearch}/qubesmanager/ui_newfwruledlg.pyo
  140. %{python_sitearch}/qubesmanager/ui_restoredlg.py
  141. %{python_sitearch}/qubesmanager/ui_restoredlg.pyc
  142. %{python_sitearch}/qubesmanager/ui_restoredlg.pyo
  143. %{python_sitearch}/qubesmanager/ui_settingsdlg.py
  144. %{python_sitearch}/qubesmanager/ui_settingsdlg.pyc
  145. %{python_sitearch}/qubesmanager/ui_settingsdlg.pyo
  146. %{python_sitearch}/qubesmanager/ui_logdlg.py
  147. %{python_sitearch}/qubesmanager/ui_logdlg.pyc
  148. %{python_sitearch}/qubesmanager/ui_logdlg.pyo
  149. /usr/share/applications/qubes-manager.desktop
  150. /etc/xdg/autostart/qubes-manager.desktop
  151. /etc/dbus-1/system.d/org.qubesos.QubesManager.conf
  152. /usr/share/dbus-1/interfaces/org.qubesos.QubesManager.xml