60 lines
1.2 KiB
RPMSpec
60 lines
1.2 KiB
RPMSpec
%global srcname re_assert
|
|
%global pkgname re-assert
|
|
|
|
Name: python-%{pkgname}
|
|
Version: 1.1.0
|
|
Release: 2%{?dist}
|
|
Summary: Show where your regex match assertion failed!
|
|
|
|
# SPDX
|
|
License: MIT
|
|
URL: https://github.com/asottile/re-assert
|
|
# The PyPI sdist lacks the tests, so we must use the GitHub archive
|
|
Source0: %{url}/archive/v%{version}/re-assert-%{version}.tar.gz
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3dist(setuptools)
|
|
|
|
# For tests
|
|
BuildRequires: python3dist(pytest)
|
|
BuildRequires: python3dist(regex)
|
|
|
|
%global _description %{expand:
|
|
Show where your regex match assertion failed!}
|
|
|
|
%description %{_description}
|
|
|
|
%package -n python3-%{pkgname}
|
|
Summary: %summary
|
|
|
|
%py_provides python3-%{pkgname}
|
|
%description -n python3-%{pkgname} %{_description}
|
|
|
|
%prep
|
|
%autosetup -n %{pkgname}-%{version}
|
|
|
|
%build
|
|
%py3_build
|
|
|
|
%install
|
|
%py3_install
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files -n python3-%{pkgname}
|
|
%license LICENSE
|
|
%{python3_sitelib}/re_assert.py
|
|
%{python3_sitelib}/__pycache__/re_assert.*.pyc
|
|
%{python3_sitelib}/%{srcname}-*.egg-info/
|
|
|
|
|
|
%changelog
|
|
* Thu Oct 13 2022 Benjamin A. Beasley <code@musicinmybrain.net> - 1.1.0-2
|
|
- Run the tests from the GitHub archive
|
|
|
|
* Sun Mar 21 2021 Chedi Toueiti <chedi.toueiti@gmail.com> - 1.1.0-1
|
|
- Initial commit
|