qubes-core-admin-client.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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: python-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. %description -n python2-qubesadmin
  34. Python2 module qubesadmin.
  35. %if 0%{?rhel} >= 7
  36. %package -n python34-qubesadmin
  37. Summary: Python34 module qubesadmin
  38. Requires: python-daemon
  39. Requires: python34-docutils
  40. Conflicts: qubes-manager < 4.0.6
  41. %description -n python34-qubesadmin
  42. Python34 module qubesadmin.
  43. %else
  44. %package -n python3-qubesadmin
  45. Summary: Python3 module qubesadmin
  46. Requires: python3-daemon
  47. Requires: python3-docutils
  48. Conflicts: qubes-manager < 4.0.6
  49. %description -n python3-qubesadmin
  50. Python3 module qubesadmin.
  51. %endif
  52. %prep
  53. %if !0%{?qubes_builder}
  54. %setup -q
  55. %endif
  56. %build
  57. %if 0%{?rhel} >= 7
  58. make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build man
  59. %else
  60. make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} man
  61. %endif
  62. %install
  63. rm -rf build
  64. %make_install PYTHON=%{__python2}
  65. rm -rf build
  66. %make_install PYTHON=%{__python3}
  67. %if 0%{?rhel} >= 7
  68. make -C doc DESTDIR=$RPM_BUILD_ROOT \
  69. PYTHON=%{__python3} SPHINXBUILD=sphinx-build \
  70. install
  71. %else
  72. make -C doc DESTDIR=$RPM_BUILD_ROOT \
  73. PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} \
  74. install
  75. %endif
  76. %files
  77. %defattr(-,root,root,-)
  78. %doc LICENSE
  79. %config /etc/xdg/autostart/qvm-start-gui.desktop
  80. %{_bindir}/qubes-*
  81. %{_bindir}/qvm-*
  82. %{_mandir}/man1/qvm-*.1*
  83. %{_mandir}/man1/qubes*.1*
  84. %files -n python2-qubesadmin
  85. %{python_sitelib}/qubesadmin-*egg-info
  86. %{python_sitelib}/qubesadmin
  87. %if 0%{?rhel} >= 7
  88. %files -n python34-qubesadmin
  89. %else
  90. %files -n python3-qubesadmin
  91. %endif
  92. %{python3_sitelib}/qubesadmin-*egg-info
  93. %{python3_sitelib}/qubesadmin
  94. %changelog