python-pytest-env/python-pytest-env.spec
mengzhaoa b68436350f Upgrade python-pytest-env version to 0.8.2.
'#' 开始的行将被忽略,而一个空的提交
2023-07-06 16:11:12 +08:00

83 lines
2.5 KiB
RPMSpec

%global _empty_manifest_terminate_build 0
Name: python-pytest-env
Version: 0.8.2
Release: 1
Summary: py.test plugin that allows you to add environment variables.
License: MIT
URL: https://github.com/pytest-dev/pytest-env
Source0: https://github.com/pytest-dev/pytest-env/archive/refs/tags/0.8.2.tar.gz#/pytest-env-%{version}.tar.gz
BuildArch: noarch
%description
py.test plugin that allows you to add environment variables.
%package -n python3-pytest-env
Summary: py.test plugin that allows you to add environment variables.
Provides: python-pytest-env
# Base build requires
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-pytest
BuildRequires: python3-hatchling
BuildRequires: python3-hatch-vcs
%description -n python3-pytest-env
py.test plugin that allows you to add environment variables.
%package help
Summary: py.test plugin that allows you to add environment variables.
Provides: python3-pytest-env-doc
%description help
py.test plugin that allows you to add environment variables.
%prep
%autosetup -n pytest-env-%{version}
%build
%pyproject_build
%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-env -f filelist.lst
%dir %{python3_sitelib}/*
%{python3_sitelib}/pytest_env/__pycache__/
%files help -f doclist.lst
%{_docdir}/*
%changelog
* Wed Jul 5 2023 mengzhaoa <mengzhaoa@isoftstone.com> - 0.8.2-1
- Upgrade package python3-pytest-env of version 0.8.2
* Thu Jun 23 2022 OpenStack_SIG <openstack@openeuler.org> - 0.6.2-1
- Init package python3-pytest-env of version 0.6.2