| |
@@ -1,7 +1,7 @@
|
| |
%global pypi_name parver
|
| |
Name: python-%{pypi_name}
|
| |
- Version: 0.3.0
|
| |
- Release: 3%{?dist}
|
| |
+ Version: 0.3.1
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Parse and manipulate version numbers
|
| |
|
| |
License: MIT
|
| |
@@ -10,15 +10,7 @@
|
| |
BuildArch: noarch
|
| |
|
| |
BuildRequires: python3-devel
|
| |
- BuildRequires: python3dist(arpeggio)
|
| |
- BuildRequires: python3dist(attrs) >= 17.4
|
| |
- BuildRequires: python3dist(hypothesis)
|
| |
- BuildRequires: python3dist(pretend)
|
| |
- BuildRequires: python3dist(pytest)
|
| |
- BuildRequires: python3dist(setuptools)
|
| |
- BuildRequires: python3dist(six)
|
| |
-
|
| |
- %?python_enable_dependency_generator
|
| |
+ BuildRequires: pyproject-rpm-macros
|
| |
|
| |
%description
|
| |
Parver allows parsing and manipulation of PEP 440 version numbers.
|
| |
@@ -36,26 +28,31 @@
|
| |
%autosetup -n %{pypi_name}-%{version}
|
| |
|
| |
|
| |
+ %generate_buildrequires
|
| |
+ %pyproject_buildrequires -x test -x doctest
|
| |
+
|
| |
+
|
| |
%build
|
| |
- %py3_build
|
| |
+ %pyproject_wheel
|
| |
|
| |
|
| |
%install
|
| |
- %py3_install
|
| |
-
|
| |
+ %pyproject_install
|
| |
+ %pyproject_save_files parver
|
| |
|
| |
%check
|
| |
- PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest -v
|
| |
+ %pytest -v
|
| |
|
| |
|
| |
- %files -n python3-%{pypi_name}
|
| |
+ %files -n python3-%{pypi_name} -f %{pyproject_files}
|
| |
%license LICENSE
|
| |
%doc README.rst
|
| |
- %{python3_sitelib}/%{pypi_name}
|
| |
- %{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Mon Oct 12 2020 Tomas Hrnciar <thrnciar@redhat.com> - 0.3.1-1
|
| |
+ - Update to 0.3.1 (#1883344)
|
| |
+
|
| |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
|
| |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
| |
|
| |
Tested in Copr.
Converted to use
pyproject-rpm-macros
.