diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:49:14 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 08:49:14 +0000 |
| commit | 0da2de828fec822baae931d24a7510a782e458f7 (patch) | |
| tree | e10bc300140a39f9dae10cbe843d154b55646d74 /python-pyzm.spec | |
| parent | 74f105febabce933ca1c6c2e22db805769fe0630 (diff) | |
automatic import of python-pyzm
Diffstat (limited to 'python-pyzm.spec')
| -rw-r--r-- | python-pyzm.spec | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/python-pyzm.spec b/python-pyzm.spec new file mode 100644 index 0000000..c74c144 --- /dev/null +++ b/python-pyzm.spec @@ -0,0 +1,87 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pyzm +Version: 0.3.57 +Release: 1 +Summary: ZoneMinder API, Logger and other base utilities for python programmers +License: GPL +URL: https://github.com/ZoneMinder/pyzm/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1b/17/7350d84cd2e5c63a32052b440b3909f47444cdf637ad53379068f6911570/pyzm-0.3.57.tar.gz +BuildArch: noarch + + +%description +Pythonic ZoneMinder wrapper +- API +- Event Server +- Logger +- Memory +- Machine Learning Modules + +%package -n python3-pyzm +Summary: ZoneMinder API, Logger and other base utilities for python programmers +Provides: python-pyzm +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pyzm +Pythonic ZoneMinder wrapper +- API +- Event Server +- Logger +- Memory +- Machine Learning Modules + +%package help +Summary: Development documents and examples for pyzm +Provides: python3-pyzm-doc +%description help +Pythonic ZoneMinder wrapper +- API +- Event Server +- Logger +- Memory +- Machine Learning Modules + +%prep +%autosetup -n pyzm-0.3.57 + +%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-pyzm -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Wed May 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.57-1 +- Package Spec generated |
