64 lines
1.7 KiB
RPMSpec
64 lines
1.7 KiB
RPMSpec
%global _empty_manifest_terminate_build 0
|
|
%global pypi_name pytest-enabler
|
|
|
|
Name: python-%{pypi_name}
|
|
Version: 3.0.0
|
|
Release: 1
|
|
Summary: Enable installed pytest plugins.
|
|
|
|
License: MIT
|
|
URL: https://github.com/jaraco/pytest-enabler
|
|
Source0: https://github.com/jaraco/pytest-enabler/archive/refs/tags/%{pypi_name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
|
|
%description
|
|
The enabler plugin allows configuration of plugins if present,
|
|
but omits the settings if the plugin is not present.
|
|
|
|
%package -n python3-%{pypi_name}
|
|
Summary: %{summary}
|
|
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
BuildRequires: python3-pbr
|
|
BuildRequires: python3-pip
|
|
BuildRequires: python3-wheel
|
|
BuildRequires: python3-hatchling
|
|
BuildRequires: python3-toml
|
|
BuildRequires: python3-jaraco-functools
|
|
BuildRequires: python3-jaraco-context
|
|
BuildRequires: python3-importlib-resources
|
|
|
|
%description -n python3-%{pypi_name}
|
|
The enabler plugin allows configuration of plugins if present,
|
|
but omits the settings if the plugin is not present.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{pypi_name}-%{version}
|
|
|
|
# Remove upstreams egg info
|
|
rm -rf *.egg*
|
|
|
|
%build
|
|
%pyproject_build
|
|
|
|
%install
|
|
%pyproject_install
|
|
|
|
%files -n python3-%{pypi_name}
|
|
%doc README.rst NEWS.rst
|
|
%license LICENSE
|
|
%{python3_sitelib}/pytest_enabler
|
|
%{python3_sitelib}/pytest_enabler-*.dist-info/
|
|
|
|
%changelog
|
|
* Mon Mar 04 2024 yueyuankun<yueyuankun@kylinos.cn> - 3.0.0-1
|
|
- Type:update
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:Update to version 3.0.0
|
|
|
|
* Thu Jul 6 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.2.0-1
|
|
- Initial packaging
|