diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-04-12 05:29:55 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-04-12 05:29:55 +0000 |
| commit | 179f8bfc1b92cbc25e31aa418cc0c1c5a530b5a0 (patch) | |
| tree | db9c5ee7f51edbaeedece4225ceae9e9d45e1092 /python-pyezviz.spec | |
| parent | 4b014165ed1d49852b701bb37d73bb6a72190f30 (diff) | |
automatic import of python-pyezviz
Diffstat (limited to 'python-pyezviz.spec')
| -rw-r--r-- | python-pyezviz.spec | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/python-pyezviz.spec b/python-pyezviz.spec new file mode 100644 index 0000000..6d8e0b5 --- /dev/null +++ b/python-pyezviz.spec @@ -0,0 +1,80 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyezviz +Version: 0.2.0.12 +Release: 1 +Summary: Pilot your Ezviz cameras +License: Apache Software License 2.0 +URL: http://github.com/baqs/pyEzviz/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/4e/495159259806c9eeba8efa865c9cfa9ec61d0c318824881d283aa810af36/pyezviz-0.2.0.12.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-pandas +Requires: python3-paho-mqtt +Requires: python3-xmltodict +Requires: python3-pycryptodome + +%description +Pilot your Ezviz cameras with this module. Please view readme on github + + +%package -n python3-pyezviz +Summary: Pilot your Ezviz cameras +Provides: python-pyezviz +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyezviz +Pilot your Ezviz cameras with this module. Please view readme on github + + +%package help +Summary: Development documents and examples for pyezviz +Provides: python3-pyezviz-doc +%description help +Pilot your Ezviz cameras with this module. Please view readme on github + + +%prep +%autosetup -n pyezviz-0.2.0.12 + +%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-pyezviz -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0.12-1 +- Package Spec generated |
