Пакет python3-module-Cheetah: Specfile

%define pypi_name Cheetah

%def_with check

Name: python3-module-%pypi_name
Version: 3.3.3
Release: alt1

Summary: Template engine and code-generator

License: MIT
Group: Development/Python3
URL: https://pypi.org/project/Cheetah3
VCS: https://github.com/CheetahTemplate3/cheetah3

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel

%description
Cheetah is an open source template engine and code generation tool, written
in Python. It can be used standalone or combined with other tools and
frameworks. Web development is its principle use, but Cheetah is very
flexible and is also being used to generate C++ game code, Java, sql,
form emails and even Python code.

%package tests
Summary: Tests for Cheetah, template engine and code-generator
Group: Development/Python3
Requires: %name = %EVR

%description tests
Cheetah is an open source template engine and code generation tool, written
in Python. It can be used standalone or combined with other tools and
frameworks. Web development is its principle use, but Cheetah is very
flexible and is also being used to generate C++ game code, Java, sql,
form emails and even Python code.

This package contains tests for Cheetah.

%prep
%setup

%build
%pyproject_build

%install
%pyproject_install

%check
%tox_check_pyproject

%files
%doc LICENSE *.rst
%_bindir/cheetah
%_bindir/cheetah-analyze
%_bindir/cheetah-compile
%python3_sitelibdir/%pypi_name
%python3_sitelibdir/CT3-%version.dist-info
%exclude %python3_sitelibdir/%pypi_name/Tests

%files tests
%python3_sitelibdir/%pypi_name/Tests
%exclude %python3_sitelibdir/%pypi_name/Tests/Performance.py*

%changelog
* Tue Oct 24 2023 Grigory Ustinov <grenka@altlinux.org> 3.3.3-alt1
- Automatically updated to 3.3.3.

* Tue Aug 22 2023 Grigory Ustinov <grenka@altlinux.org> 3.3.2-alt1
- Automatically updated to 3.3.2.

* Thu Jun 15 2023 Grigory Ustinov <grenka@altlinux.org> 3.3.1-alt3
- Build with check.
- Spec refactored.

* Mon Jan 09 2023 Grigory Ustinov <grenka@altlinux.org> 3.3.1-alt2
- Bootstrap for python3.11.

* Mon Dec 26 2022 Grigory Ustinov <grenka@altlinux.org> 3.3.1-alt1
- Automatically updated to 3.3.1.
- Build with check.

* Wed Oct 12 2022 Grigory Ustinov <grenka@altlinux.org> 3.3.0-alt1
- Automatically updated to 3.3.0.

* Mon Dec 06 2021 Grigory Ustinov <grenka@altlinux.org> 3.2.6-alt2
- Disable check for python3.10.

* Thu Oct 07 2021 Grigory Ustinov <grenka@altlinux.org> 3.2.6-alt1
- Automatically updated to 3.2.6.
- Enable check.

* Wed May 26 2021 Grigory Ustinov <grenka@altlinux.org> 3.2.3-alt3
- Drop python2 support.

* Tue Sep 3 2019 Vladimir Didenko <cow@altlinux.org> 3.2.3-alt2
- Don't use 2to3 conversion because it breaks python3 package

* Tue Sep 3 2019 Vladimir Didenko <cow@altlinux.org> 3.2.3-alt1
- Version 3.2.3

* Tue Mar 27 2018 Aleksei Nikiforov <darktemplar@altlinux.org> 3.1.0-alt1.1
- (NMU) Rebuilt with python-3.6.4.

* Tue Mar 27 2018 Andrey Bychkov <mrdrew@altlinux.org> 3.1.0-alt1
- Version 3.1.0-alt1

* Thu Mar 17 2016 Ivan Zakharyaschev <imz@altlinux.org> 2.4.4-alt2.git20121217.1.1
- (NMU) rebuild with python3-3.5 & rpm-build-python3-0.1.10
  (for ABI dependence and new python3(*) reqs)

* Thu Jan 28 2016 Mikhail Efremov <sem@altlinux.org> 2.4.4-alt2.git20121217.1
- NMU: Use buildreq for BR.

* Tue Aug 26 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.4-alt2.git20121217
- Snapshot from git

* Mon Apr 15 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.4-alt2
- Use 'find... -exec...' instead of 'for ... $(find...'

* Fri Mar 22 2013 Aleksey Avdeev <solo@altlinux.ru> 2.4.4-alt1.1
- Rebuild with Python-3.3

* Fri Apr 13 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.4-alt1
- Version 2.4.4
- Added module for Python 3

* Thu Apr 12 2012 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.3-alt2.1.1
- Rebuild to remove redundant libpython2.7 dependency

* Mon Oct 24 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 2.4.3-alt2.1
- Rebuild with Python-2.7

* Sun Mar 27 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.3-alt2
- Rebuilt for debuginfo

* Fri Nov 19 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.4.3-alt1
- Version 2.4.3
- Extracted tests into separate package

* Fri Nov 13 2009 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.2.1-alt1.1
- Rebuilt with python 2.6

* Wed Jul 29 2009 Mikhail Pokidko <pma@altlinux.org> 2.2.1-alt1
- Version up

* Sat Apr 05 2008 Mikhail Pokidko <pma@altlinux.org> 2.0.1-alt1
- Initial ALT build