Update package to version 3.0.0
Signed-off-by: chendexi <chendexi@kylinos.cn> add source fix build error Signed-off-by: chendexi <chendexi@kylinos.cn> add setup use pyproject instead add buildrequire add buildrequire
This commit is contained in:
parent
98adf699c1
commit
e4d8255ee8
Binary file not shown.
BIN
pytest_metadata-3.0.0.tar.gz
Normal file
BIN
pytest_metadata-3.0.0.tar.gz
Normal file
Binary file not shown.
@ -1,11 +1,11 @@
|
||||
%global _empty_manifest_terminate_build 0
|
||||
Name: python-pytest-metadata
|
||||
Version: 2.0.4
|
||||
Release: 2
|
||||
Version: 3.0.0
|
||||
Release: 1
|
||||
Summary: pytest plugin for test session metadata
|
||||
License: MPL-2.0
|
||||
URL: https://github.com/pytest-dev/pytest-metadata
|
||||
Source0: https://files.pythonhosted.org/packages/4e/57/e26bd9b5caba5bfdb6b2916fcc875018c1c6ee80b159aee7acb19f8a81f1/pytest_metadata-2.0.4.tar.gz
|
||||
Source0: https://files.pythonhosted.org/packages/fa/0a/2d380e69561a2fea3f395ef2504461cdb52387fba780d13796bfddc6a416/pytest_metadata-3.0.0.tar.gz
|
||||
BuildArch: noarch
|
||||
%description
|
||||
pytest plugin for test session metadata
|
||||
@ -15,10 +15,8 @@ pytest plugin for test session metadata
|
||||
Summary: pytest plugin for test session metadata
|
||||
Provides: python-pytest-metadata
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-pip python3-wheel python3-hatchling python3-hatch-vcs
|
||||
BuildRequires: python3-pbr
|
||||
BuildRequires: python3-setuptools_scm
|
||||
Requires: python3-pytest
|
||||
%description -n python3-pytest-metadata
|
||||
pytest plugin for test session metadata
|
||||
@ -32,46 +30,28 @@ pytest plugin for test session metadata
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n pytest_metadata-2.0.4
|
||||
%autosetup -n pytest_metadata-%{version}
|
||||
|
||||
%build
|
||||
%py3_build
|
||||
%pyproject_build
|
||||
|
||||
%install
|
||||
%py3_install
|
||||
%pyproject_install
|
||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
||||
pushd %{buildroot}
|
||||
if [ -d usr/lib ]; then
|
||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/lib64 ]; then
|
||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/bin ]; then
|
||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
if [ -d usr/sbin ]; then
|
||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
||||
fi
|
||||
touch doclist.lst
|
||||
if [ -d usr/share/man ]; then
|
||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
||||
fi
|
||||
popd
|
||||
mv %{buildroot}/filelist.lst .
|
||||
mv %{buildroot}/doclist.lst .
|
||||
|
||||
%files -n python3-pytest-metadata -f filelist.lst
|
||||
%dir %{python3_sitelib}/*
|
||||
%files -n python3-pytest-metadata
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%files help -f doclist.lst
|
||||
%files help
|
||||
%{_docdir}/*
|
||||
|
||||
%changelog
|
||||
* Wed Jun 21 2023 chendexi <chendexi@kylinos.cn> - 3.0.0-1
|
||||
- Update package to version 3.0.0
|
||||
|
||||
* Fri Dec 09 2022 liukuo <liukuo@kylinos.cn> - 2.0.4-2
|
||||
- License compliance rectification
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user