Blame python-ansible-pygments.spec

cb14015
%global srcname ansible-pygments
cb14015
%global pypiname ansible_pygments
cb14015
%global pkgname python-%{srcname}
cb14015
%global forgeurl https://github.com/ansible-community/%{srcname}
cb14015
cb14015
Name:    %{pkgname}
cb14015
Version: 0.1.0
cb14015
Release: 1%{?dist}
cb14015
Summary: Provides Pygments highlighter for Ansible output for use in Sphinx
cb14015
%forgemeta
cb14015
URL:       %{forgeurl}
cb14015
Source:    %{forgesource}
cb14015
License:   BSD
cb14015
BuildArch: noarch
cb14015
cb14015
BuildRequires: python3-devel
cb14015
cb14015
%global _description %{expand:
cb14015
This project provides a Pygments lexer that is able to handle Ansible output.
cb14015
It may be used anywhere Pygments is integrated. The lexer is registered
cb14015
globally under the name ansible-output.
cb14015
cb14015
It also provides a Pygments style for tools needing to highlight code snippets.
cb14015
}
cb14015
cb14015
%description %{_description}
cb14015
cb14015
%package -n python3-%{srcname}
cb14015
Summary: %summary
cb14015
cb14015
%py_provides python3-%{srcname}
cb14015
cb14015
%description -n python3-%{srcname} %{_description}
cb14015
cb14015
%prep
cb14015
%autosetup -p1 -n %{srcname}-%{version}
cb14015
cb14015
%generate_buildrequires
cb14015
%pyproject_buildrequires -t
cb14015
cb14015
%build
cb14015
%{pyproject_wheel}
cb14015
cb14015
%install
cb14015
%{pyproject_install}
cb14015
cb14015
%pyproject_save_files %{pypiname}
cb14015
cb14015
%check
cb14015
%{tox}
cb14015
cb14015
cb14015
%files -n python3-%{srcname} -f %{pyproject_files}
cb14015
%doc     README.md
cb14015
%license LICENSE.md
cb14015
cb14015
cb14015
%changelog
cb14015
* Sun Oct 03 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.1.0-1
cb14015
- Initial commit version 0.1.0