Blame python-myrepos-utils.spec

72be77b
%bcond_without check
72be77b
72be77b
%global srcname myrepos-utils
72be77b
72be77b
Name:           python-%{srcname}
8e406d0
Version:        0.0.2
72be77b
Release:        %autorelease
72be77b
Summary:        Additional utilities for myrepos
72be77b
57954d5
License:        GPLv2+
72be77b
URL:            https://git.sr.ht/~michel-slm/myrepos-utils
72be77b
Source0:        %{pypi_source}
72be77b
72be77b
BuildArch:      noarch
72be77b
BuildRequires:  python3-devel
72be77b
72be77b
%global _description %{expand:
72be77b
Additional utilities for myrepos.}
72be77b
72be77b
%description %_description
72be77b
72be77b
72be77b
%package -n %{srcname}
72be77b
Summary:        %{summary}
72be77b
Requires:       myrepos
72be77b
72be77b
%description -n %{srcname} %_description
72be77b
72be77b
72be77b
%prep
72be77b
%autosetup -p1 -n %{srcname}-%{version}
72be77b
72be77b
%generate_buildrequires
72be77b
%pyproject_buildrequires %{?with_check:-r requirements-test.txt}
72be77b
72be77b
72be77b
%build
72be77b
%pyproject_wheel
72be77b
72be77b
72be77b
%install
72be77b
%pyproject_install
72be77b
%pyproject_save_files myrepos_utils
72be77b
72be77b
72be77b
%check
72be77b
%pyproject_check_import myrepos_utils
72be77b
%if %{with check}
8e406d0
%pytest -v
72be77b
%endif
72be77b
72be77b
72be77b
%files -n %{srcname} -f %{pyproject_files}
72be77b
%doc README.md
72be77b
%license COPYING.md
72be77b
%{_bindir}/mr-utils
72be77b
72be77b
72be77b
%changelog
72be77b
%autochangelog