diff --git a/python-testfixtures.spec b/python-testfixtures.spec index a2396cf..35bf156 100644 --- a/python-testfixtures.spec +++ b/python-testfixtures.spec @@ -1,54 +1,79 @@ -%global pypi_name testfixtures - -Name: python-%{pypi_name} -Version: 6.18.5 -Release: 3%{?dist} -Summary: Collection of helpers and mock objects for unit tests - -License: MIT -URL: https://github.com/Simplistix/testfixtures -Source0: %{pypi_source} -BuildArch: noarch +%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: 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 +%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 -BuildRequires: python3-setuptools -BuildRequires: python3-twisted -BuildRequires: python3-zope-component -BuildRequires: python3-sybil -%{?python_provide:%python_provide python3-%{pypi_name}} - -%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 - 7.0.3-1 +- Update package to version 7.0.3 + * Mon Jul 25 2022 Dongjiao - 6.18.5-3 - Initial package. diff --git a/testfixtures-6.18.5.tar.gz b/testfixtures-6.18.5.tar.gz deleted file mode 100644 index 02ef2ae..0000000 Binary files a/testfixtures-6.18.5.tar.gz and /dev/null differ diff --git a/testfixtures-7.0.3.tar.gz b/testfixtures-7.0.3.tar.gz new file mode 100644 index 0000000..3581549 Binary files /dev/null and b/testfixtures-7.0.3.tar.gz differ