diff --git a/pretend-1.0.8.tar.gz b/pretend-1.0.8.tar.gz deleted file mode 100644 index 6c7f93f16631d6479a6c1b92669a25dfdf587f7c..0000000000000000000000000000000000000000 Binary files a/pretend-1.0.8.tar.gz and /dev/null differ diff --git a/pretend-1.0.9.tar.gz b/pretend-1.0.9.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..c381fa12124ca180fc774041cb40a5f515308d68 Binary files /dev/null and b/pretend-1.0.9.tar.gz differ diff --git a/python-pretend.spec b/python-pretend.spec index 9d9d4c78d0ba5650d1edd0665990ce7fcc987c4c..35c256d18bb99ef9e9fbf5cac596c113fd981a95 100644 --- a/python-pretend.spec +++ b/python-pretend.spec @@ -1,41 +1,75 @@ -Name: python-pretend -Version: 1.0.8 -Release: 17 -Summary: A library to make stubbing with Python easier -License: BSD-3-Clause -URL: https://github.com/alex/pretend -Source0: https://pypi.python.org/packages/source/p/pretend/pretend-%{version}.tar.gz -BuildArch: noarch -BuildRequires: python3-devel python3-setuptools +%global _empty_manifest_terminate_build 0 +Name: python-pretend +Version: 1.0.9 +Release: 1 +Summary: A library to make stubbing with Python easier +License: BSD-3-Clause +URL: https://github.com/alex/pretend +Source0: https://files.pythonhosted.org/packages/3c/f8/7c86fd40c9e83deb10891a60d2dcb1af0b3b38064d72ebdb12486acc824f/pretend-1.0.9.tar.gz +BuildArch: noarch + %description Pretend is a library to make stubbing with Python easier. %package -n python3-pretend -Summary: A library to make stubbing with Python easier -License: BSD -%{?python_provide:%python_provide python3-pretend} - - +Summary: A library to make stubbing with Python easier +Provides: python-pretend = %{version}-%{release} +BuildRequires: python3-devel +BuildRequires: python3-setuptools %description -n python3-pretend Pretend is a library to make stubbing with Python easier. +%package help +Summary: Development documents and examples for pretend +Provides: python3-pretend-doc +%description help +Pretend is a library to make stubbing with Python easier. + %prep -%autosetup -n pretend-%{version} -p1 +%autosetup -n pretend-%{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 . + +%files -n python3-pretend -f filelist.lst +%dir %{python3_sitelib}/* -%files -n python3-pretend -%defattr(-,root,root) -%license LICENSE.rst -%doc PKG-INFO README.rst -%{python3_sitelib}/* +%files help -f doclist.lst +%{_docdir}/* %changelog +* Thu Nov 24 2022 wangjunqi - 1.0.9-1 +- Update package to version 1.0.9 + * Wed May 11 2022 wulei - 1.0.8-17 - License compliance rectification