!2 Update package to version 7.0.3

From: @jxy_git 
Reviewed-by: @xiyuanwang 
Signed-off-by: @xiyuanwang
This commit is contained in:
openeuler-ci-bot 2022-12-05 03:42:39 +00:00 committed by Gitee
commit 68de1b4834
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 57 additions and 32 deletions

View File

@ -1,54 +1,79 @@
%global pypi_name testfixtures %global _empty_manifest_terminate_build 0
Name: python-testfixtures
Name: python-%{pypi_name} Version: 7.0.3
Version: 6.18.5 Release: 1
Release: 3%{?dist} Summary: Collection of helpers and mock objects for unit tests
Summary: Collection of helpers and mock objects for unit tests License: MIT
URL: https://github.com/Simplistix/testfixtures
License: MIT Source0: https://files.pythonhosted.org/packages/fe/73/db6852e7bf43c19f2df0604d4e9eba77aa76d34a49952b409641ab8de006/testfixtures-7.0.3.tar.gz
URL: https://github.com/Simplistix/testfixtures BuildArch: noarch
Source0: %{pypi_source}
BuildArch: noarch
%description %description
Testfixtures is a collection of helpers and mock objects that are useful Testfixtures is a collection of helpers and mock objects that are useful
when writing automated tests in Python. when writing automated tests in Python.
%package -n python3-%{pypi_name} %package -n python3-testfixtures
Summary: %{summary} Summary: Collection of helpers and mock objects for unit tests
Provides: python-testfixtures = %{version}-%{release}
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-twisted
BuildRequires: python3-zope-component
BuildRequires: python3-sybil
%description -n python3-testfixtures
Testfixtures is a collection of helpers and mock objects that are useful
when writing automated tests in Python.
BuildRequires: python3-devel %package help
BuildRequires: python3-setuptools Summary: Development documents and examples for testfixtures
BuildRequires: python3-twisted Provides: python3-testfixtures-doc
BuildRequires: python3-zope-component %description help
BuildRequires: python3-sybil
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
Testfixtures is a collection of helpers and mock objects that are useful Testfixtures is a collection of helpers and mock objects that are useful
when writing automated tests in Python. when writing automated tests in Python.
%prep %prep
%autosetup -n %{pypi_name}-%{version} %autosetup -n testfixtures-%{version}
rm -rf %{pypi_name}.egg-info
%build %build
%py3_build %py3_build
%install %install
%py3_install %py3_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 .
#%%check %files -n python3-testfixtures -f filelist.lst
# Upstream has a different idea about how Open Source works %dir %{python3_sitelib}/*
# and is hostile against everything that doesn't match that idea.
# Thus, the only thing that matters is that tests work in their CI
%files -n python3-%{pypi_name} %files help -f doclist.lst
%doc CHANGELOG.rst README.rst %{_docdir}/*
%license LICENSE.txt
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/*.egg-info/
%changelog %changelog
* Tue Nov 22 2022 jiangxinyu <jiangxinyu@kylinos.cn> - 7.0.3-1
- Update package to version 7.0.3
* Mon Jul 25 2022 Dongjiao <dongjiao@kylinos.cn> - 6.18.5-3 * Mon Jul 25 2022 Dongjiao <dongjiao@kylinos.cn> - 6.18.5-3
- Initial package. - Initial package.

Binary file not shown.

BIN
testfixtures-7.0.3.tar.gz Normal file

Binary file not shown.