You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.5 KiB

  1. %global srcname ansible_kubespray
  2. %{!?upstream_version: %global upstream_version %{version}%{?milestone}}
  3. Name: ansible-kubespray
  4. Version: XXX
  5. Release: XXX
  6. Summary: Ansible modules for installing Kubernetes
  7. Group: System Environment/Libraries
  8. License: ASL 2.0
  9. Vendor: Kubespray <smainklh@gmail.com>
  10. Url: https://github.com/kubernetes-incubator/kubespray
  11. Source0: https://github.com/kubernetes-incubator/kubespray/archive/%{upstream_version}.tar.gz
  12. BuildArch: noarch
  13. BuildRequires: git
  14. BuildRequires: python2-devel
  15. BuildRequires: python-setuptools
  16. BuildRequires: python-d2to1
  17. BuildRequires: python-pbr
  18. Requires: ansible
  19. Requires: python-jinja2
  20. Requires: python-netaddr
  21. %description
  22. Ansible-kubespray is a set of Ansible modules and playbooks for
  23. installing a Kubernetes cluster. If you have questions, join us
  24. on the https://slack.k8s.io, channel '#kubespray'.
  25. %prep
  26. %autosetup -n %{name}-%{upstream_version} -S git
  27. %build
  28. %{__python2} setup.py build
  29. %install
  30. export PBR_VERSION=%{version}
  31. export SKIP_PIP_INSTALL=1
  32. %{__python2} setup.py install --skip-build --root %{buildroot}
  33. %files
  34. %doc README.md
  35. %doc inventory/inventory.example
  36. %config /etc/kubespray/ansible.cfg
  37. %config /etc/kubespray/inventory/group_vars/all.yml
  38. %config /etc/kubespray/inventory/group_vars/k8s-cluster.yml
  39. %license LICENSE
  40. %{python2_sitelib}/%{srcname}-%{version}-py%{python2_version}.egg-info
  41. /usr/local/share/kubespray/roles/
  42. /usr/local/share/kubespray/playbooks/
  43. %defattr(-,root,root)
  44. %changelog