N
NiceOS Build Portal
Enterprise build observability for published NiceOS package builds.

input/ansible.spec

raw · 3.6 KiB

Name:           ansible
Version:        2.20.5
Release:        1%{?dist}
Summary:        A utility for automation of deployment and configuration management
Summary(ru):    Утилита для автоматизации развертывания и управления конфигурациями
License:        GPL-3.0-or-later
URL:            https://github.com/ansible/ansible
BuildArch:      noarch

Packager:       NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor:         NiceSOFT
Distribution:   NiceOS.Core
BugURL:         https://bugs.niceos.ru/
VCS:            https://specs.niceos.ru/rmps/%{name}

Source0:        https://github.com/ansible/ansible/archive/refs/tags/v%{version}.tar.gz#%{name}-%{version}.tar.gz
Source1:        tdnf.py
Source2:        macros.ansible
Source3:        ansible_collection.py

BuildRequires:  python3-devel
BuildRequires:  python3-pip
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  python3-resolvelib
BuildRequires:  python3-setuptools

%if 0%{?with_check}
BuildRequires:  python3-cryptography
BuildRequires:  python3-jinja2 >= 3.1.2
BuildRequires:  python3-pip
BuildRequires:  python3-PyYAML
BuildRequires:  python3-pytest
%endif

Requires:       python3
Requires:       python3-curses
Requires:       python3-jinja2 >= 3.1.2
Requires:       python3-paramiko
Requires:       python3-PyYAML
Requires:       python3-resolvelib
Requires:       python3-xml

%description
Ansible is an automation tool for configuration management, application deployment, and orchestration.
It uses human-readable YAML playbooks to manage systems across a wide range of platforms and environments.

%description -l ru
Ansible — инструмент автоматизации для управления конфигурациями, развертывания приложений и оркестрации.
Он использует читаемые YAML-playbook'и для управления системами на широком спектре платформ и окружений.

%package        devel
Summary:        Development tools and libraries for Ansible
Summary(ru):    Разработка и инструменты для Ansible
Requires:       %{name} = %{version}-%{release}

%description -n %{name}-devel
The %{name}-devel subpackage provides RPM macro and helper tooling used when packaging Ansible
content (collections) and related integration.

%description -l ru -n %{name}-devel
Подпакет %{name}-devel содержит RPM-макрос и вспомогательные инструменты, используемые при пакетировании
контента Ansible (коллекций) и связанной интеграции.

%prep
%autosetup -p1
cp -vp %{SOURCE1} lib/%{name}/modules/

%build
%{pyproject_wheel}

%install
%{pyproject_install}

install -Dpm 0644 %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.%{name}
touch -r %{SOURCE2} %{buildroot}%{_rpmmacrodir}/macros.%{name}
install -Dpm 0744 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/%{name}_collection.py
touch -r %{SOURCE3} %{buildroot}%{_rpmconfigdir}/%{name}_collection.py

%files
%defattr(-,root,root,-)
%{_bindir}/*
%{python3_sitelib}/*

%files devel
%defattr(-,root,root,-)
%{_rpmmacrodir}/macros.%{name}
%{_rpmconfigdir}/%{name}_collection.py

%changelog
* Tue Apr 28 2026 NiceOS Team <support@niceos.ru> - 2.20.5-1
- EN: - Update ansible to 2.20.5
- RU: - Обновление ansible до версии 2.20.5


* Sun Jan 11 2026 NiceOS Team <niceos@ncsgp.ru> - 2.20.1-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)