Update package to version 7.0.3

This commit is contained in:
jxy_git 2022-11-22 16:03:18 +08:00
parent 7e0b716071
commit cb06835fb0
3 changed files with 57 additions and 32 deletions

View File

@ -1,54 +1,79 @@
%global pypi_name testfixtures
Name: python-%{pypi_name}
Version: 6.18.5
Release: 3%{?dist}
%global _empty_manifest_terminate_build 0
Name: python-testfixtures
Version: 7.0.3
Release: 1
Summary: Collection of helpers and mock objects for unit tests
License: MIT
URL: https://github.com/Simplistix/testfixtures
Source0: %{pypi_source}
Source0: https://files.pythonhosted.org/packages/fe/73/db6852e7bf43c19f2df0604d4e9eba77aa76d34a49952b409641ab8de006/testfixtures-7.0.3.tar.gz
BuildArch: noarch
%description
Testfixtures is a collection of helpers and mock objects that are useful
when writing automated tests in Python.
%package -n python3-%{pypi_name}
Summary: %{summary}
%package -n python3-testfixtures
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
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-testfixtures
Testfixtures is a collection of helpers and mock objects that are useful
when writing automated tests in Python.
%description -n python3-%{pypi_name}
%package help
Summary: Development documents and examples for testfixtures
Provides: python3-testfixtures-doc
%description help
Testfixtures is a collection of helpers and mock objects that are useful
when writing automated tests in Python.
%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
%autosetup -n testfixtures-%{version}
%build
%py3_build
%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
# Upstream has a different idea about how Open Source works
# 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-testfixtures -f filelist.lst
%dir %{python3_sitelib}/*
%files -n python3-%{pypi_name}
%doc CHANGELOG.rst README.rst
%license LICENSE.txt
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/*.egg-info/
%files help -f doclist.lst
%{_docdir}/*
%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
- Initial package.

Binary file not shown.

BIN
testfixtures-7.0.3.tar.gz Normal file

Binary file not shown.