fix build
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ansible?expand=0&rev=20
This commit is contained in:
parent
33f54fb95b
commit
4eac4678ff
16
ansible.spec
16
ansible.spec
@ -21,16 +21,15 @@ Summary: SSH-based configuration management, deployment, and orchestratio
|
|||||||
License: GPL-3.0+
|
License: GPL-3.0+
|
||||||
Url: http://www.ansibleworks.com
|
Url: http://www.ansibleworks.com
|
||||||
Group: System/Management
|
Group: System/Management
|
||||||
# http://ansibleworks.com/releases/ansible-%{version}.tar.gz
|
# http://ansibleworks.com/releases/ansible-%%{version}.tar.gz
|
||||||
Source0: %{name}-%{version}.tar.bz2
|
Source0: %{name}-%{version}.tar.bz2
|
||||||
Source1: %{name}-rpmlintrc
|
Source1: %{name}-rpmlintrc
|
||||||
# https://raw.github.com/ansible/ansible/release%{version}/CHANGELOG.md
|
# https://raw.github.com/ansible/ansible/release%%{version}/CHANGELOG.md
|
||||||
Source2: CHANGELOG.md
|
Source2: CHANGELOG.md
|
||||||
#
|
#
|
||||||
# (open)SUSE
|
# (open)SUSE
|
||||||
#
|
#
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
Requires: python-PyYAML
|
Requires: python-PyYAML
|
||||||
Requires: python-jinja2
|
Requires: python-jinja2
|
||||||
@ -51,15 +50,9 @@ BuildArch: noarch
|
|||||||
#
|
#
|
||||||
# RHEL
|
# RHEL
|
||||||
#
|
#
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 5
|
%if 0%{?rhel} && 0%{?rhel} <= 5
|
||||||
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 5
|
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
#BuildRequires: python26-devel
|
|
||||||
Requires: python26-PyYAML
|
Requires: python26-PyYAML
|
||||||
Requires: python26-paramiko
|
Requires: python26-paramiko
|
||||||
Requires: python26-jinja2
|
Requires: python26-jinja2
|
||||||
@ -82,6 +75,7 @@ Requires: python-paramiko
|
|||||||
Requires: python-jinja2
|
Requires: python-jinja2
|
||||||
Requires: python-keyczar
|
Requires: python-keyczar
|
||||||
%endif
|
%endif
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -103,9 +97,8 @@ install -m644 %{SOURCE2} .
|
|||||||
mkdir -p %{buildroot}%{_sysconfdir}/ansible/
|
mkdir -p %{buildroot}%{_sysconfdir}/ansible/
|
||||||
cp examples/hosts %{buildroot}%{_sysconfdir}/ansible/
|
cp examples/hosts %{buildroot}%{_sysconfdir}/ansible/
|
||||||
cp examples/ansible.cfg %{buildroot}%{_sysconfdir}/ansible/
|
cp examples/ansible.cfg %{buildroot}%{_sysconfdir}/ansible/
|
||||||
mkdir -p %{buildroot}%{_mandir}/{man1,man3}/
|
mkdir -p %{buildroot}%{_mandir}/man1/
|
||||||
cp -v docs/man/man1/*.1 %{buildroot}%{_mandir}/man1/
|
cp -v docs/man/man1/*.1 %{buildroot}%{_mandir}/man1/
|
||||||
cp -v docs/man/man3/*.3 %{buildroot}%{_mandir}/man3/
|
|
||||||
mkdir -p %{buildroot}%{_datadir}/ansible
|
mkdir -p %{buildroot}%{_datadir}/ansible
|
||||||
cp -vr library/* %{buildroot}%{_datadir}/ansible/
|
cp -vr library/* %{buildroot}%{_datadir}/ansible/
|
||||||
%if 0%{?suse_version} > 01020
|
%if 0%{?suse_version} > 01020
|
||||||
@ -121,7 +114,6 @@ cp -vr library/* %{buildroot}%{_datadir}/ansible/
|
|||||||
%config(noreplace) %{_sysconfdir}/%{name}
|
%config(noreplace) %{_sysconfdir}/%{name}
|
||||||
%doc README.md PKG-INFO COPYING CHANGELOG.md
|
%doc README.md PKG-INFO COPYING CHANGELOG.md
|
||||||
%doc %{_mandir}/man1/ansible*
|
%doc %{_mandir}/man1/ansible*
|
||||||
%doc %{_mandir}/man3/ansible*
|
|
||||||
%doc examples/playbooks
|
%doc examples/playbooks
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user