From 3413008f8021cbbb8e77908cc7caef098144caac Mon Sep 17 00:00:00 2001 From: Michel Alexandre Salim Date: Fri, 25 Mar 2022 12:58:11 -0700 Subject: + python/python-myrepos-utils --- python/python-myrepos-utils.spec | 62 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 python/python-myrepos-utils.spec diff --git a/python/python-myrepos-utils.spec b/python/python-myrepos-utils.spec new file mode 100644 index 0000000..32b1d47 --- /dev/null +++ b/python/python-myrepos-utils.spec @@ -0,0 +1,62 @@ +%bcond_without check + +%global srcname myrepos-utils + +Name: python-%{srcname} +Version: 0.0.1.1 +Release: %autorelease +Summary: Additional utilities for myrepos + +License: MIT +URL: https://git.sr.ht/~michel-slm/myrepos-utils +Source0: %{pypi_source} + +BuildArch: noarch +BuildRequires: python3-devel + +%global _description %{expand: +Tomli-W is a Python library for writing TOML. It is a write-only counterpart +to Tomli, which is a read-only TOML parser. Tomli-W is fully compatible +with TOML v1.0.0.} + +%description %_description + +%package -n %{srcname} +Summary: %{summary} +Requires: myrepos + +%description -n %{srcname} %_description + + +%prep +%autosetup -p1 -n %{srcname}-%{version} + + +%generate_buildrequires +%pyproject_buildrequires %{?with_check:-r requirements-test.txt} + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files myrepos_utils + + +%check +%pyproject_check_import myrepos_utils +%if %{with check} +%pytest +%endif + + +%files -n %{srcname} -f %{pyproject_files} +%doc README.md +%license COPYING.md +%{_bindir}/mr-utils + + +%changelog +%autochangelog -- cgit