qubes-core-admin-client.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Name: qubes-core-admin-client
  2. Version: %(cat version)
  3. Release: 0.1%{?dist}
  4. Summary: Qubes OS admin client tools
  5. Group: Qubes
  6. License: LGPLv2.1+
  7. URL: https://www.qubes-os.org
  8. BuildRequires: python2-setuptools
  9. BuildRequires: python2-devel
  10. %if 0%{?rhel} >= 7
  11. BuildRequires: python34-setuptools
  12. BuildRequires: python34-devel
  13. BuildRequires: python34-sphinx
  14. BuildRequires: python34-dbus
  15. Requires: python34-qubesadmin
  16. %else
  17. BuildRequires: python3-setuptools
  18. BuildRequires: python3-devel
  19. BuildRequires: python3-sphinx
  20. BuildRequires: python3-dbus
  21. Requires: python3-qubesadmin
  22. %endif
  23. BuildArch: noarch
  24. %if 0%{?qubes_builder}
  25. %define _builddir %(pwd)
  26. %endif
  27. %description
  28. This package include managemt tools, like qvm-*.
  29. %package -n python2-qubesadmin
  30. Summary: Python2 module qubesadmin
  31. Requires: python-daemon
  32. Requires: python-docutils
  33. Requires: python2-lxml
  34. %description -n python2-qubesadmin
  35. Python2 module qubesadmin.
  36. %if 0%{?rhel} >= 7
  37. %package -n python34-qubesadmin
  38. Summary: Python34 module qubesadmin
  39. Requires: python-daemon
  40. Requires: python34-docutils
  41. Requires: python34-lxml
  42. Requires: python34-xcffib
  43. Conflicts: qubes-manager < 4.0.6
  44. %description -n python34-qubesadmin
  45. Python34 module qubesadmin.
  46. %else
  47. %package -n python3-qubesadmin
  48. Summary: Python3 module qubesadmin
  49. Requires: python3-daemon
  50. Requires: python3-docutils
  51. Requires: python3-lxml
  52. Requires: python3-xcffib
  53. Conflicts: qubes-manager < 4.0.6
  54. %description -n python3-qubesadmin
  55. Python3 module qubesadmin.
  56. %endif
  57. %prep
  58. %if !0%{?qubes_builder}
  59. %setup -q
  60. %endif
  61. %build
  62. make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} man
  63. %install
  64. rm -rf build
  65. %make_install PYTHON=%{__python2}
  66. rm -rf build
  67. %make_install PYTHON=%{__python3}
  68. make -C doc DESTDIR=$RPM_BUILD_ROOT \
  69. PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} \
  70. install
  71. %files
  72. %defattr(-,root,root,-)
  73. %doc LICENSE
  74. %config /etc/xdg/autostart/qvm-start-gui.desktop
  75. %{_bindir}/qubes-*
  76. %{_bindir}/qvm-*
  77. %{_mandir}/man1/qvm-*.1*
  78. %{_mandir}/man1/qubes*.1*
  79. %files -n python2-qubesadmin
  80. %{python_sitelib}/qubesadmin-*egg-info
  81. %{python_sitelib}/qubesadmin
  82. %if 0%{?rhel} >= 7
  83. %files -n python34-qubesadmin
  84. %else
  85. %files -n python3-qubesadmin
  86. %endif
  87. %{python3_sitelib}/qubesadmin-*egg-info
  88. %{python3_sitelib}/qubesadmin
  89. %changelog