diff options
author | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-03-25 12:58:11 -0700 |
---|---|---|
committer | Michel Alexandre Salim <salimma@fedoraproject.org> | 2022-03-25 12:58:11 -0700 |
commit | 3413008f8021cbbb8e77908cc7caef098144caac (patch) | |
tree | 1495a1e24f63e3cfdd54803685dbb759ff2469a8 | |
parent | 675b75e14a540a2cacf66dc464a4f21335f6e762 (diff) | |
download | specs-3413008f8021cbbb8e77908cc7caef098144caac.tar.gz specs-3413008f8021cbbb8e77908cc7caef098144caac.tar.xz specs-3413008f8021cbbb8e77908cc7caef098144caac.zip |
+ python/python-myrepos-utils
-rw-r--r-- | python/python-myrepos-utils.spec | 62 |
1 files changed, 62 insertions, 0 deletions
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 |