diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:37:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 22:37:09 +0000 |
commit | 1328050f9414eb8d3dd4f4e49f49a5b8ca05bee9 (patch) | |
tree | 4829b8049c3241b41dd305772174cda99ee96088 | |
parent | 8a1a689cf5e7b3842af67845428b320208ded76e (diff) |
automatic import of python-pretend
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pretend.spec | 72 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 74 insertions, 0 deletions
@@ -0,0 +1 @@ +/pretend-1.0.9.tar.gz diff --git a/python-pretend.spec b/python-pretend.spec new file mode 100644 index 0000000..7615dfc --- /dev/null +++ b/python-pretend.spec @@ -0,0 +1,72 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pretend +Version: 1.0.9 +Release: 1 +Summary: A library for stubbing in Python +License: BSD +URL: https://github.com/alex/pretend +Source0: https://mirrors.nju.edu.cn/pypi/web/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 for stubbing in Python +Provides: python-pretend +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%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-1.0.9 + +%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 help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.9-1 +- Package Spec generated @@ -0,0 +1 @@ +ad53883ede48aeac7ae584f0de0240e8 pretend-1.0.9.tar.gz |