diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 01:27:23 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 01:27:23 +0000 |
| commit | f97b2624c496e59c60da2b80201df478a965989d (patch) | |
| tree | 38edeb7e43a8ba7b3eafd87450ce8977bca97eb4 /python-formant.spec | |
| parent | 3791dc812add5b94f9deafff7f3d1ed78b2752aa (diff) | |
automatic import of python-formant
Diffstat (limited to 'python-formant.spec')
| -rw-r--r-- | python-formant.spec | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/python-formant.spec b/python-formant.spec new file mode 100644 index 0000000..06a9a40 --- /dev/null +++ b/python-formant.spec @@ -0,0 +1,92 @@ +%global _empty_manifest_terminate_build 0 +Name: python-formant +Version: 1.118.72 +Release: 1 +Summary: Formant python package +License: MIT License +URL: https://formant.io +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/00/bb/075b4635d88c34fc7f9637d62a95617e007fa685f13641c2a155a28d03f5/formant-1.118.72.tar.gz +BuildArch: noarch + +Requires: python3-grpcio-status +Requires: python3-grpcio +Requires: python3-jsonschema +Requires: python3-numpy +Requires: python3-dateutil +Requires: python3-lzf +Requires: python3-requests +Requires: python3-typing-extensions +Requires: python3-protobuf +Requires: python3-httpx +Requires: python3-protobuf + +%description +Formant Python Package + + + + +%package -n python3-formant +Summary: Formant python package +Provides: python-formant +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-formant +Formant Python Package + + + + +%package help +Summary: Development documents and examples for formant +Provides: python3-formant-doc +%description help +Formant Python Package + + + + +%prep +%autosetup -n formant-1.118.72 + +%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-formant -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.118.72-1 +- Package Spec generated |
