qmgr.spec 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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/appmenu_select.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  32. cp qubesmanager/backup.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  33. cp qubesmanager/backup_utils.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  34. cp qubesmanager/firewall.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  35. cp qubesmanager/global_settings.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  36. cp qubesmanager/multiselectwidget.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  37. cp qubesmanager/restore.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  38. cp qubesmanager/settings.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  39. cp qubesmanager/log_dialog.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  40. cp qubesmanager/create_new_vm.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  41. cp qubesmanager/thread_monitor.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  42. cp qubesmanager/resources_rc.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  43. cp qubesmanager/__init__.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  44. cp qubesmanager/ui_backupdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  45. cp qubesmanager/ui_globalsettingsdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  46. cp qubesmanager/ui_mainwindow.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  47. cp qubesmanager/ui_multiselectwidget.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  48. cp qubesmanager/ui_newappvmdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  49. cp qubesmanager/ui_newfwruledlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  50. cp qubesmanager/ui_restoredlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  51. cp qubesmanager/ui_settingsdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  52. cp qubesmanager/ui_logdlg.py{,c,o} $RPM_BUILD_ROOT%{python_sitearch}/qubesmanager
  53. mkdir -p $RPM_BUILD_ROOT/usr/share/applications
  54. cp qubes-manager.desktop $RPM_BUILD_ROOT/usr/share/applications
  55. mkdir -p $RPM_BUILD_ROOT/etc/xdg/autostart/
  56. cp qubes-manager.desktop $RPM_BUILD_ROOT/etc/xdg/autostart/
  57. install -D org.qubesos.QubesManager.conf $RPM_BUILD_ROOT/etc/dbus-1/system.d/org.qubesos.QubesManager.conf
  58. install -D org.qubesos.QubesManager.xml $RPM_BUILD_ROOT/usr/share/dbus-1/interfaces/org.qubesos.QubesManager.xml
  59. %post
  60. update-desktop-database &> /dev/null || :
  61. killall -1 qubes-manager || :
  62. %postun
  63. update-desktop-database &> /dev/null || :
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %files
  67. %defattr(-,root,root,-)
  68. /usr/bin/qubes-manager
  69. /usr/bin/qubes-vm-settings
  70. /usr/libexec/qubes-manager/mount_for_backup.sh
  71. %dir %{python_sitearch}/qubesmanager
  72. %{python_sitearch}/qubesmanager/__init__.py
  73. %{python_sitearch}/qubesmanager/__init__.pyo
  74. %{python_sitearch}/qubesmanager/__init__.pyc
  75. %{python_sitearch}/qubesmanager/main.py
  76. %{python_sitearch}/qubesmanager/main.pyc
  77. %{python_sitearch}/qubesmanager/main.pyo
  78. %{python_sitearch}/qubesmanager/appmenu_select.py
  79. %{python_sitearch}/qubesmanager/appmenu_select.pyc
  80. %{python_sitearch}/qubesmanager/appmenu_select.pyo
  81. %{python_sitearch}/qubesmanager/backup.py
  82. %{python_sitearch}/qubesmanager/backup.pyc
  83. %{python_sitearch}/qubesmanager/backup.pyo
  84. %{python_sitearch}/qubesmanager/backup_utils.py
  85. %{python_sitearch}/qubesmanager/backup_utils.pyc
  86. %{python_sitearch}/qubesmanager/backup_utils.pyo
  87. %{python_sitearch}/qubesmanager/firewall.py
  88. %{python_sitearch}/qubesmanager/firewall.pyc
  89. %{python_sitearch}/qubesmanager/firewall.pyo
  90. %{python_sitearch}/qubesmanager/global_settings.py
  91. %{python_sitearch}/qubesmanager/global_settings.pyc
  92. %{python_sitearch}/qubesmanager/global_settings.pyo
  93. %{python_sitearch}/qubesmanager/multiselectwidget.py
  94. %{python_sitearch}/qubesmanager/multiselectwidget.pyc
  95. %{python_sitearch}/qubesmanager/multiselectwidget.pyo
  96. %{python_sitearch}/qubesmanager/restore.py
  97. %{python_sitearch}/qubesmanager/restore.pyc
  98. %{python_sitearch}/qubesmanager/restore.pyo
  99. %{python_sitearch}/qubesmanager/settings.py
  100. %{python_sitearch}/qubesmanager/settings.pyc
  101. %{python_sitearch}/qubesmanager/settings.pyo
  102. %{python_sitearch}/qubesmanager/log_dialog.py
  103. %{python_sitearch}/qubesmanager/log_dialog.pyc
  104. %{python_sitearch}/qubesmanager/log_dialog.pyo
  105. %{python_sitearch}/qubesmanager/create_new_vm.py
  106. %{python_sitearch}/qubesmanager/create_new_vm.pyc
  107. %{python_sitearch}/qubesmanager/create_new_vm.pyo
  108. %{python_sitearch}/qubesmanager/thread_monitor.py
  109. %{python_sitearch}/qubesmanager/thread_monitor.pyc
  110. %{python_sitearch}/qubesmanager/thread_monitor.pyo
  111. %{python_sitearch}/qubesmanager/resources_rc.py
  112. %{python_sitearch}/qubesmanager/resources_rc.pyc
  113. %{python_sitearch}/qubesmanager/resources_rc.pyo
  114. %{python_sitearch}/qubesmanager/ui_backupdlg.py
  115. %{python_sitearch}/qubesmanager/ui_backupdlg.pyc
  116. %{python_sitearch}/qubesmanager/ui_backupdlg.pyo
  117. %{python_sitearch}/qubesmanager/ui_globalsettingsdlg.py
  118. %{python_sitearch}/qubesmanager/ui_globalsettingsdlg.pyc
  119. %{python_sitearch}/qubesmanager/ui_globalsettingsdlg.pyo
  120. %{python_sitearch}/qubesmanager/ui_mainwindow.py
  121. %{python_sitearch}/qubesmanager/ui_mainwindow.pyc
  122. %{python_sitearch}/qubesmanager/ui_mainwindow.pyo
  123. %{python_sitearch}/qubesmanager/ui_multiselectwidget.py
  124. %{python_sitearch}/qubesmanager/ui_multiselectwidget.pyc
  125. %{python_sitearch}/qubesmanager/ui_multiselectwidget.pyo
  126. %{python_sitearch}/qubesmanager/ui_newappvmdlg.py
  127. %{python_sitearch}/qubesmanager/ui_newappvmdlg.pyc
  128. %{python_sitearch}/qubesmanager/ui_newappvmdlg.pyo
  129. %{python_sitearch}/qubesmanager/ui_newfwruledlg.py
  130. %{python_sitearch}/qubesmanager/ui_newfwruledlg.pyc
  131. %{python_sitearch}/qubesmanager/ui_newfwruledlg.pyo
  132. %{python_sitearch}/qubesmanager/ui_restoredlg.py
  133. %{python_sitearch}/qubesmanager/ui_restoredlg.pyc
  134. %{python_sitearch}/qubesmanager/ui_restoredlg.pyo
  135. %{python_sitearch}/qubesmanager/ui_settingsdlg.py
  136. %{python_sitearch}/qubesmanager/ui_settingsdlg.pyc
  137. %{python_sitearch}/qubesmanager/ui_settingsdlg.pyo
  138. %{python_sitearch}/qubesmanager/ui_logdlg.py
  139. %{python_sitearch}/qubesmanager/ui_logdlg.pyc
  140. %{python_sitearch}/qubesmanager/ui_logdlg.pyo
  141. /usr/share/applications/qubes-manager.desktop
  142. /etc/xdg/autostart/qubes-manager.desktop
  143. /etc/dbus-1/system.d/org.qubesos.QubesManager.conf
  144. /usr/share/dbus-1/interfaces/org.qubesos.QubesManager.xml