From 519be08edb8227c897e5353da3f0f469c29737f5 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 16 Sep 2025 11:17:34 +0000 Subject: automatic import of python-parver --- .gitignore | 1 + python-parver.spec | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 69 insertions(+) create mode 100644 python-parver.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..0627424 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/parver-0.5.tar.gz 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 - 0.5-1 +- Update to 0.5 +- Bump actions/setup-python from 4 to 5 + + +* Sat Jun 24 2023 Dongxing Wang - 0.4-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..f44e02a --- /dev/null +++ b/sources @@ -0,0 +1 @@ +6f05af5f865d8df9fe95718c4de65af8 parver-0.5.tar.gz -- cgit v1.2.3