qmgr.spec 7.6 KB

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