blob: a4d186eb7afbd479682acb1adb97f485d1adb829 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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
|