qmgr.spec 6.7 KB

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