qubes-core-admin-client.spec.in 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. Name: qubes-core-admin-client
  2. Version: @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. Source0: %{name}-%{version}.tar.gz
  25. %description
  26. This package include managemt tools, like qvm-*.
  27. %package -n python2-qubesadmin
  28. Summary: Python2 module qubesadmin
  29. Requires: python-daemon
  30. Requires: python-docutils
  31. Requires: python2-lxml
  32. %description -n python2-qubesadmin
  33. Python2 module qubesadmin.
  34. %if 0%{?rhel} >= 7
  35. %package -n python34-qubesadmin
  36. Summary: Python34 module qubesadmin
  37. Requires: python-daemon
  38. Requires: python34-docutils
  39. Requires: python34-lxml
  40. Requires: python34-xcffib
  41. Conflicts: qubes-manager < 4.0.6
  42. %description -n python34-qubesadmin
  43. Python34 module qubesadmin.
  44. %else
  45. %package -n python3-qubesadmin
  46. Summary: Python3 module qubesadmin
  47. Requires: python3-daemon
  48. Requires: python3-docutils
  49. Requires: python3-lxml
  50. Requires: python3-xcffib
  51. Conflicts: qubes-manager < 4.0.6
  52. %description -n python3-qubesadmin
  53. Python3 module qubesadmin.
  54. %endif
  55. %prep
  56. %setup -q
  57. %build
  58. make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} man
  59. %install
  60. rm -rf build
  61. %make_install PYTHON=%{__python2}
  62. rm -rf build
  63. %make_install PYTHON=%{__python3}
  64. make -C doc DESTDIR=$RPM_BUILD_ROOT \
  65. PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} \
  66. install
  67. %files
  68. %defattr(-,root,root,-)
  69. %doc LICENSE
  70. %config /etc/xdg/autostart/qvm-start-gui.desktop
  71. %{_bindir}/qubes-*
  72. %{_bindir}/qvm-*
  73. %{_mandir}/man1/qvm-*.1*
  74. %{_mandir}/man1/qubes*.1*
  75. %files -n python2-qubesadmin
  76. %{python2_sitelib}/qubesadmin-*egg-info
  77. %{python2_sitelib}/qubesadmin
  78. %if 0%{?rhel} >= 7
  79. %files -n python34-qubesadmin
  80. %else
  81. %files -n python3-qubesadmin
  82. %endif
  83. %{python3_sitelib}/qubesadmin-*egg-info
  84. %{python3_sitelib}/qubesadmin
  85. %changelog
  86. @CHANGELOG@