File python3-pystache.spec of Package python3-pystache-0.6.5-fedora
# tests are enabled by default
%bcond_without tests
%define __python /usr/bin/python3
#%%define python3_pkgversion 3.11.2
#%%{?!python_module:%%define python_module() python-%%{**} python3-%%{**}}
Name: python-pystache
Version: 0.6.5
Release: %{?dist}
Summary: Mustache for Python
License: MIT
Group: Development/Languages/Python
URL: https://github.com/defunkt/pystache
#Source: https://files.pythonhosted.org/packages/source/p/pystache/pystache-%%{version}.tar.gz
Source0: %{pypi_source pystache}
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python-rpm-macros
%if %{with tests}
BuildRequires: python3-pytest
BuildRequires: python3-tkinter
%endif
%global _description %{expand:
Pystache is a Python implementation of Mustache. Mustache is a
framework-agnostic, logic-free templating system inspired by
ctemplate and etc. Like ctemplate, Mustache "emphasises separating
logic from presentation: it is impossible to embed application
logic in this template language."
The mustache(5) man page provides a good introduction to Mustache's
syntax. For a more complete (and more current) description of
Mustache's behaviour, see the official Mustache spec:
https://github.com/mustache/spec.}
%description %{_description}
%package -n python3-pystache
Summary: %{summary}
%description -n python3-pystache %{_description}
%prep
%autosetup -p1 -n pystache-%{version}
%generate_buildrequires
%pyproject_buildrequires -r
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files pystache
%if %{with tests}
%check
%pytest
%endif
%files -n python3-pystache -f %{pyproject_files}
%exclude %dir /usr/bin
%license LICENSE
%doc HISTORY.md
/usr/bin
%changelog
* Sun Oct 29 2023 kimi <noreply@nodomain.org>
- Initial version