diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:25:26 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 04:25:26 +0000 |
commit | 726eb2c210cd8fab38a509c8ce610e5185e9568e (patch) | |
tree | da61eadb02ade43db2d9159307f5d5c61b412152 | |
parent | 5d2b1db7760c13b3f073fa66ba01426416981023 (diff) |
automatic import of python-any-face
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-any-face.spec | 77 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 79 insertions, 0 deletions
@@ -0,0 +1 @@ +/any_face-2.4.2.tar.gz diff --git a/python-any-face.spec b/python-any-face.spec new file mode 100644 index 0000000..223d84c --- /dev/null +++ b/python-any-face.spec @@ -0,0 +1,77 @@ +%global _empty_manifest_terminate_build 0 +Name: python-any-face +Version: 2.4.2 +Release: 1 +Summary: Anonymize human faces with Multi-Cascaded CNN +License: MIT License +URL: https://pypi.org/project/any-face/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/18/b6/0aa002b8493ea9837c875f1c0439974e16fe0f10ead09fca627f783e6cc6/any_face-2.4.2.tar.gz +BuildArch: noarch + +Requires: python3-Click +Requires: python3-matplotlib +Requires: python3-mtcnn +Requires: python3-opencv-python +Requires: python3-tensorflow + +%description + + +%package -n python3-any-face +Summary: Anonymize human faces with Multi-Cascaded CNN +Provides: python-any-face +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-any-face + + +%package help +Summary: Development documents and examples for any-face +Provides: python3-any-face-doc +%description help + + +%prep +%autosetup -n any-face-2.4.2 + +%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-any-face -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.2-1 +- Package Spec generated @@ -0,0 +1 @@ +bbb39494c2b7adfd045247a54d035016 any_face-2.4.2.tar.gz |