Blame python-ansible-pygments.spec

cb14015
%global srcname ansible-pygments
cb14015
%global pypiname ansible_pygments
cb14015
%global pkgname python-%{srcname}
cb14015
cb14015
Name:    %{pkgname}
98431e4
Version: 0.1.1
98431e4
Release: 1%{?dist}
cb14015
Summary: Provides Pygments highlighter for Ansible output for use in Sphinx
98431e4
URL:       https://github.com/ansible-community/%{srcname}
98431e4
Source:    %{url}/archive/%{version}/%{pypiname}-%{version}.tar.gz
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
98431e4
* Mon Feb 07 2022 Karolina Surma <ksurma@redhat.com> - 0.1.1-1
98431e4
- Update to 0.1.1
98431e4
Resolves: rhbz#2042303
98431e4
8ad1155
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-2
8ad1155
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
8ad1155
cb14015
* Sun Oct 03 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 0.1.0-1
cb14015
- Initial commit version 0.1.0