2018-01-18 15:22:37 +00:00
|
|
|
%global srcname kubespray
|
|
|
|
|
|
|
|
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}
|
|
|
|
|
|
|
|
Name: kubespray
|
|
|
|
Version: master
|
|
|
|
Release: %(git describe | sed -r 's/v(\S+-?)-(\S+)-(\S+)/\1.dev\2+\3/')
|
|
|
|
Summary: Ansible modules for installing Kubernetes
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: ASL 2.0
|
2021-07-05 08:12:55 +00:00
|
|
|
Url: https://github.com/kubernetes-sigs/kubespray
|
|
|
|
Source0: https://github.com/kubernetes-sigs/kubespray/archive/%{upstream_version}.tar.gz#/%{name}-%{release}.tar.gz
|
2018-01-18 15:22:37 +00:00
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: git
|
|
|
|
BuildRequires: python2
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
|
|
|
BuildRequires: python-d2to1
|
|
|
|
BuildRequires: python2-pbr
|
|
|
|
|
2018-10-16 22:33:30 +00:00
|
|
|
Requires: ansible >= 2.5.0
|
2018-01-18 15:22:37 +00:00
|
|
|
Requires: python-jinja2 >= 2.10
|
|
|
|
Requires: python-netaddr
|
2018-03-05 10:53:51 +00:00
|
|
|
Requires: python-pbr
|
2018-01-18 15:22:37 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
|
|
|
|
Ansible-kubespray is a set of Ansible modules and playbooks for
|
|
|
|
installing a Kubernetes cluster. If you have questions, join us
|
|
|
|
on the https://slack.k8s.io, channel '#kubespray'.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{name}-%{upstream_version} -S git
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
export PBR_VERSION=%{release}
|
|
|
|
%{__python2} setup.py build bdist_rpm
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
export PBR_VERSION=%{release}
|
|
|
|
export SKIP_PIP_INSTALL=1
|
|
|
|
%{__python2} setup.py install --skip-build --root %{buildroot} bdist_rpm
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc %{_docdir}/%{name}/README.md
|
2018-02-01 06:42:34 +00:00
|
|
|
%doc %{_docdir}/%{name}/inventory/sample/hosts.ini
|
2018-01-18 15:22:37 +00:00
|
|
|
%config %{_sysconfdir}/%{name}/ansible.cfg
|
2018-02-01 06:42:34 +00:00
|
|
|
%config %{_sysconfdir}/%{name}/inventory/sample/group_vars/all.yml
|
2021-04-29 12:20:50 +00:00
|
|
|
%config %{_sysconfdir}/%{name}/inventory/sample/group_vars/k8s_cluster.yml
|
2018-01-18 15:22:37 +00:00
|
|
|
%license %{_docdir}/%{name}/LICENSE
|
|
|
|
%{python2_sitelib}/%{srcname}-%{release}-py%{python2_version}.egg-info
|
|
|
|
%{_datarootdir}/%{name}/roles/
|
|
|
|
%{_datarootdir}/%{name}/playbooks/
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|