diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:12:22 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 17:12:22 +0000 |
| commit | 794bcaaf94548810e116ab01766c92a88292348a (patch) | |
| tree | 6bc7a2f0cd21721427904426ba958edc358f0274 /python-nflx-genie-client.spec | |
| parent | d6a62007223d6404cd1cfe752bb82020be9f9598 (diff) | |
automatic import of python-nflx-genie-client
Diffstat (limited to 'python-nflx-genie-client.spec')
| -rw-r--r-- | python-nflx-genie-client.spec | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/python-nflx-genie-client.spec b/python-nflx-genie-client.spec new file mode 100644 index 0000000..bf3aefd --- /dev/null +++ b/python-nflx-genie-client.spec @@ -0,0 +1,78 @@ +%global _empty_manifest_terminate_build 0 +Name: python-nflx-genie-client +Version: 3.6.16 +Release: 1 +Summary: Genie Python Client. +License: Apache 2.0 +URL: http://netflix.github.io/genie/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/13/fd/2fe320f1c1e82ed1d852c901dba989cc7e6c7e6f8f9c79434d53c1de9e17/nflx-genie-client-3.6.16.tar.gz +BuildArch: noarch + +Requires: python3-decorator +Requires: python3-multipledispatch +Requires: python3-pyconfigurator +Requires: python3-dateutil +Requires: python3-requests +Requires: python3-six + +%description + + +%package -n python3-nflx-genie-client +Summary: Genie Python Client. +Provides: python-nflx-genie-client +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-nflx-genie-client + + +%package help +Summary: Development documents and examples for nflx-genie-client +Provides: python3-nflx-genie-client-doc +%description help + + +%prep +%autosetup -n nflx-genie-client-3.6.16 + +%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-nflx-genie-client -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 3.6.16-1 +- Package Spec generated |
