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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. Name: qubes-core-admin-client
  2. Version: @VERSION@
  3. Release: 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. BuildRequires: python%{python3_pkgversion}-setuptools
  11. BuildRequires: python%{python3_pkgversion}-devel
  12. BuildRequires: python%{python3_pkgversion}-sphinx
  13. BuildRequires: python%{python3_pkgversion}-dbus
  14. Requires: python%{python3_pkgversion}-qubesadmin
  15. Requires: python%{python3_pkgversion}-yaml
  16. BuildArch: noarch
  17. Source0: %{name}-%{version}.tar.gz
  18. %description
  19. This package include managemt tools, like qvm-*.
  20. %package -n python2-qubesadmin
  21. Summary: Python2 module qubesadmin
  22. Requires: python-daemon
  23. Requires: python-docutils
  24. Requires: python2-lxml
  25. %description -n python2-qubesadmin
  26. Python2 module qubesadmin.
  27. %package -n python%{python3_pkgversion}-qubesadmin
  28. Summary: Python%{python3_pkgversion} module qubesadmin
  29. %if 0%{?rhel} >= 7
  30. Requires: python-daemon
  31. %else
  32. Requires: python3-daemon
  33. %endif
  34. Requires: python%{python3_pkgversion}-docutils
  35. Requires: python%{python3_pkgversion}-lxml
  36. Requires: python%{python3_pkgversion}-xcffib
  37. Conflicts: qubes-manager < 4.0.6
  38. %description -n python%{python3_pkgversion}-qubesadmin
  39. Python3 module qubesadmin.
  40. %prep
  41. %setup -q
  42. %build
  43. make -C doc PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} man
  44. %install
  45. rm -rf build
  46. %make_install PYTHON=%{__python2}
  47. rm -rf build
  48. %make_install PYTHON=%{__python3}
  49. make -C doc DESTDIR=$RPM_BUILD_ROOT \
  50. PYTHON=%{__python3} SPHINXBUILD=sphinx-build-%{python3_version} \
  51. install
  52. %files
  53. %defattr(-,root,root,-)
  54. %doc LICENSE
  55. %config /etc/xdg/autostart/qvm-start-gui.desktop
  56. %{_bindir}/qubes-*
  57. %{_bindir}/qvm-*
  58. %{_mandir}/man1/qvm-*.1*
  59. %{_mandir}/man1/qubes*.1*
  60. %files -n python2-qubesadmin
  61. %{python2_sitelib}/qubesadmin-*egg-info
  62. %{python2_sitelib}/qubesadmin
  63. %files -n python%{python3_pkgversion}-qubesadmin
  64. %{python3_sitelib}/qubesadmin-*egg-info
  65. %{python3_sitelib}/qubesadmin
  66. %changelog
  67. @CHANGELOG@