diff options
Diffstat (limited to 'python-parver.spec')
| -rw-r--r-- | python-parver.spec | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/python-parver.spec b/python-parver.spec new file mode 100644 index 0000000..a4d186e --- /dev/null +++ b/python-parver.spec @@ -0,0 +1,67 @@ +%global _empty_manifest_terminate_build 0 +%global pypi_name parver + +Name: python-%{pypi_name} +Version: 0.5 +Release: 1 +Summary: Parse and manipulate version numbers. + +License: MIT +URL: https://github.com/RazerM/parver +Source0: https://files.pythonhosted.org/packages/ce/a5/0a2f93e7bb5ab3c35b37c991885264864c5803f4da830cf519c663991d78/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +BuildRequires: python3-wheel +BuildRequires: python3-hatchling +BuildRequires: python3-hypothesis +#for test +BuildRequires: python3-pytest +BuildRequires: python3-pretend +BuildRequires: python3-Arpeggio + +%description +Parver allows parsing and manipulation of PEP 440 version numbers. + + +%package -n python3-%{pypi_name} +Summary: %{summary} + +%description -n python3-%{pypi_name} +Parver allows parsing and manipulation of PEP 440 version numbers. + + +%prep +%autosetup -p1 -n %{pypi_name}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" \ +PATH="%{buildroot}%{_bindir}:$PATH" \ +PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitearch}:%{buildroot}%{python3_sitelib}}" \ +PYTHONDONTWRITEBYTECODE=1 \ +%{?__pytest_addopts:PYTEST_ADDOPTS="${PYTEST_ADDOPTS:-} %{__pytest_addopts}"} \ +PYTEST_XDIST_AUTO_NUM_WORKERS=%{_smp_build_ncpus} \ +%{_bindir}/pytest -v + +%files -n python3-%{pypi_name} +%doc README.rst +%license LICENSE +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}*.dist-info/ + +%changelog +* Mon Mar 04 2024 wangqiang <wangqiang1@kylinos.cn> - 0.5-1 +- Update to 0.5 +- Bump actions/setup-python from 4 to 5 + + +* Sat Jun 24 2023 Dongxing Wang <dxwangk@isoftstone.com> - 0.4-1 +- Initial package |
